plotting (sin (x))^2 +(cos(x))^2)



I don't use wxMaxima or wxplot2d, but probably what is happening here is
that they are showing the result at very great magnification of the y scale
(because the range of the result is very small), so you are seeing the tiny
variations from 1.0 that will happen in a floating-point calculation.

Try wxplot2d( [ sin(x)^2+cos(x)^2], [x, -5, 5], [y, -1.5,1.5 ]) to see the
result on a less magnified y-scale.

                 -s

On Fri, Dec 11, 2009 at 3:02 PM, Doug Edmunds (gmail) <dougedmunds at gmail.com
> wrote:

> Using wxMaxima 0.8.3 / Maxima 5.19.2
>
> wxplot2d([(sin (x))^2,(cos(x))^2], [x,-5,5])$
> looks correct.
>
> wxplot2d([(sin (x))^2 +(cos(x))^2], [x,-5,5])$
> should produce a straight line (y=1),
> but doesn't.  What do I need to do?
>
> - dae
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>