|
|
last edited 9 years ago by Bill Page |
1 2 3 4 | ||
Editor: page
Time: 2008/06/25 20:36:12 GMT-7 |
||
Note: gnuplot on mathaction |
added: First load the library added: \end{axiom} Now include a file name in the 'draw' command:: \begin{axiom} added: 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}
Try this
draw(5*besselJ(0,sqrt(x**2+y**2)), x=-20..20, y=-20..20)
There are no library operations named ** Use HyperDoc Browse or issue )what op ** to learn if there is any operation containing " ** " in its name.
Cannot find a definition or applicable library operation named ** with argument type(s) Variable(x) PositiveInteger
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.
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 X-windows 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
)library cannot find the file 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")
There are no library operations named ** Use HyperDoc Browse or issue )what op ** to learn if there is any operation containing " ** " in its name.
Cannot find a definition or applicable library operation named ** with argument type(s) Variable(x) PositiveInteger
Perhaps you should use "@" to indicate the required return type,or "$" to specify which version of the function you need.
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}