[Maxima] complex function works only after defining it twice
macrakis at alum.mit.edu
Fri May 16 15:29:11 CDT 2008
On Fri, May 16, 2008 at 3:40 PM, Christoph Sarnowski <pixelbrei at h3c.de> wrote:
> But one thing about expressions vs. functions: I need to apply those
> functions (e.g., f and error_f) to some numerical values. With both
> being functions, i write apply(f, list_of_arguments), same for the
> error. With expressions, i need the at(f, [x=x1, y=y1, ...]) notation,
I'd recommend subst.
Or something like block([x, y], [x,y]:list_of_arguments,''f).
That won't work. Remember ''f evaluates at *definition time*. It is
really only useful in interactive contexts. What you want here is
ev(f), though that has its own issues -- so I would recommend sticking
> Or is there a way to use a named expression like a function?
Maybe something like this:
or you can build a lambda if you really need a function, but that
isn't as natural in the Maxima world (maybe it should be, but it
More information about the Maxima