According to the documentation for plot_options, the syntax of make_transform is as follows:
make_transform([x,y,z], [f1(x,y,z),f2(x,y,z),f3(x,y,z)])
Attempting to use the example, though, gives an error:
(C2) set_plot_option([TRANSFORM_XY, make_transform([r,th,z],[r*cos(th),r*sin(th),z])); Incorrect syntax: Missing ] s(th),r*sin(th),z])) ^ (C2) Incorrect syntax: Premature termination of input at ;. ; ^
Running grep -i make_transform on all of the files in /sw/shar/maxima/5.9.0/src yields the following result:
plot.lisp:(defun $make_transform (lvars fx fy fz &aux ( $numer t)) plot.lisp: (setq trans ($make_transform
I know only a little about lisp, but it appears that the first line contains the inconsistency. The function is being defined to accept three functions instead of a list of three functions.
Also, digging around in plot.lisp, I noticed the use of a function called nth. I cannot find any equivalent in the documentation (i.e. a way to access nth arbitrary element of a list). Does such a function exist? If not, would it be possible to expose nth for use in maxima?
One last request. I'm trying to use the transform_xy property to generate a log-log-log plot. I use the following command to setup the transform:
set_plot_option([TRANSFORM_XY, make_transform([x,y,z],log(x)/log(10),log(y)/log(10),log(z)/log(10))]);
When I try to plot, though, I get the following:
plot3d(5*x^3*y^2, [x, 0.0001, 1000], [y, 0.0001, 1000]);
*** - argument to COMMON-LISP:FLOAT should be a real number: ((MTIMES SIMP) -9.210340371976182 ((MEXPT SIMP) ((%LOG SIMP) 10) -1))
Is there some way to get this to work (I tried taking the real part of everything in the make_transform function, but still no joy)?
All in all I must admit that I really like maxima. It serves just about all of my needs, when I can find the relevent info in the documentation.
How is work coming on improving the plotting interface? Mostly I'm curious about the menu that I can make pop up in the upper left hand corner, but can't seem to do anything with.
Thanx:) Sean
P.S. Might I suggest that you add to the documentation some mention of making 2d log plots using parametric functions. That bit was driving me nuts recently until I figured out how just now.
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users