[Maxima] defining a function
sds at gnu.org
Wed Apr 1 10:06:30 CDT 2009
thanks for your kind reply!
On Tue, Mar 31, 2009 at 6:40 PM, Robert Dodier <robert.dodier at gmail.com> wrote:
> On Tue, Mar 31, 2009 at 4:16 PM, Sam Steingold <sds at gnu.org> wrote:
>> (%i32) g(t):=(%o31);
>> (%o32) g(t) := %o31
> Probably what you want is g(t) := ''%o31 (two single quotes, not a
> double quote).
interesting, so in maxima '' is an "unquote".
qhere is it documented?
> Maxima does not evaluate the right hand side of a function definition
> (nor the body of a lambda expression).
> The right hand side is evaluated just once when the function is called.
when I use '', it works.
before, "g(3);" printed the original expression in t without
substituting 3 for t.
Sam Steingold <http://sds.podval.org>
More information about the Maxima