Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: SourceForge.net <noreply@so...>  20080831 17:54:49

Bugs item #2085440, was opened at 20080831 13:44 Message generated for change (Comment added) made by rvh2007 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2085440&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core  Simplification Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: The Henman (rvh2007) Assigned to: Nobody/Anonymous (nobody) Summary: Factor of Compiled Function error message Initial Comment: Try the following. (%i1) f(x) := x$ (%i2) f(1,2); Too many arguments supplied to f(x): [1,2] (%i3) compile(f)$ (%i4) f(1,2); Maxima encountered a Lisp error: Error in MACSYMATOPLEVEL [or a callee]: MACSYMATOPLEVEL [or a callee] requires less than two arguments. "The error message tells the user almost nothing. I consider that a bug. Barton" Rich Hennessy  Maxima version: 5.16.2 Maxima build date: 7:44 8/18/2008 host type: i686pcmingw32 lispimplementationtype: GNU Common Lisp (GCL)lispimplementationversion: GCL 2.6.8   >Comment By: The Henman (rvh2007) Date: 20080831 13:54 Message: Logged In: YES user_id=2055069 Originator: YES I think I figured it out, you have to have a function defined and it also has to be compiled. this works (%i1) factor(hbar^2/(2*m)*diff(f(x),x,2)=E*f(x)mu*x^4*f(x)); (%o1) (hbar^2*('diff(f(x),x,2)))/(2*m)=f(x)*(Emu*x^4) if f is defined as a function of two or more variables and it is not compiled then you get this error. (%i1) f(x,y):=x^2*y; (%o1) f(x,y):=x^2*y (%i2) factor(hbar^2/(2*m)*diff(f(x),x,2)=E*f(x)mu*x^4*f(x)); Too few arguments supplied to f(x,y):[x]  an error. To debug this try debugmode(true); which is a better error message. but if you compile f then you get (%i1) f(x,y):=x^2*y; (%o1) f(x,y):=x^2*y (%i2) compile(f); Compiling C:/DOCUME~1/RICHAR~1/LOCALS~1/Temp/gazonk_3888_0.lsp. End of Pass 1. End of Pass 2. OPTIMIZE levels: Safety=2, Space=3, Speed=3 Finished compiling C:/DOCUME~1/RICHAR~1/LOCALS~1/Temp/gazonk_3888_0.lsp. (%o2) [f] (%i3) factor(hbar^2/(2*m)*diff(f(x),x,2)=E*f(x)mu*x^4*f(x)); Maxima encountered a Lisp error: Error in MACSYMATOPLEVEL [or a callee]: MACSYMATOPLEVEL [or a callee] requires more than one argument. Automatically continuing. To reenable the Lisp debugger set *debuggerhook* to nil. Which is a harder message to debug. I think I may have had a definition for f after all and it was compiled too since I have a workbook which does just that and I was playing around with that workbook last night before I got this error. So it only happens on compiled functions so far in my testing.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2085440&group_id=4933 