

last edited 4 years ago by Bill Page 
1 2 3 4  
Editor: Bill Page
Time: 2014/07/15 03:40:42 GMT+0 

Note: change ** to ^ 
changed: draw(5*besselJ(0,sqrt(x**2+y**2)), x=20..20, y=20..20) draw(5*besselJ(0,sqrt(x^2+y^2)), x=20..20, y=20..20); changed: gnuDraw(5*besselJ(0,sqrt(x**2+y**2)), x=20..20, y=20..20,"GraphicsOnMathAction1.dat") gnuDraw(5*besselJ(0,sqrt(x^2+y^2)), x=20..20, y=20..20,"GraphicsOnMathAction1.dat")
Try this
draw(5*besselJ(0,sqrt(x^2+y^2)), x=20..20, y=20..20);
Compiling function %B with type (DoubleFloat,DoubleFloat) > DoubleFloat Transmitting data...
Not clear why latex is not rendered properly ...
The reason why this did not originally render properly was because I had not defined \axiomType as a valid LaTeX command in the LatexTemplate page. The output of the draw command generates this as part of it's LaTeX output.
Anticipating the next question:
Where is the graphic??
Although graphics is available in the most recent version of Axiom from the Savannah CVS (see AxiomBinaries?), the problem is that graphics has not yet been integrated into MathAction. Doing so will require solving some problems about using Xwindows on the MathAction server.
draw
function to produce graphics from and Axiom and display it on the MathAction web page. Eg.
First load the library
)lib GDRAW
OldGnuDraw is now explicitly exposed in frame initial OldGnuDraw will be automatically loaded when needed from /var/aw/var/LatexWiki/GDRAW.NRLIB/GDRAW
Now include a file name in the draw
command::
gnuDraw(5*besselJ(0,sqrt(x^2+y^2)), x=20..20, y=20..20, "GraphicsOnMathAction1.dat")
Compiling function %C with type (DoubleFloat,DoubleFloat) > DoubleFloat
Refer to this file name when calling gnuplot:
\begin{gnuplot}[terminal=pslatex,terminaloptions=color,scale=1.3] set parametric set hidden set view 20,30 set xlabel "x" set ylabel "y" set zrange [3:3] set mxtics set pm3d depthorder load "GraphicsOnMathAction1.dat" \end{gnuplot}