Maxima Manual - Example Page 15 - different result for ''sin(1);
Subject: Maxima Manual - Example Page 15 - different result for ''sin(1);
From: Robert Dodier
Date: Thu, 18 Dec 2008 09:04:16 -0700
On 12/18/08, Peter Gardner <geep999 at yahoo.co.uk> wrote:
> The manual shows:
> (%i1) sin (1);
> (%o1) sin(1)
> (%i2) ''sin (1);
> (%o2) 0.8414709848079
> but on my PC I get:
> (%i1) sin (1);
> (%o1) sin(1)
> (%i2) ''sin (1);
> (%o2) sin(1)
Until recently, ''foo(x) => numerical evaluation of foo for many
built-in functions, but that was changed a few months ago.
I'll update the manual, thanks for pointing out the discrepancy.
> On my PC I also see this:
> (%i3) ''sin(1.0);
> (%o3) .8414709848078965
Actually foo(x) => numerical evaluation when x is a floating point
number (or when the float or numer flags are enabled).
That is, sin(1.0) => 0.84... (the quote-quote is superfluous in this case).
Hope this helps, & thanks for your interest in Maxima.
best
Robert Dodier