Ruslan Mullakhmetov <ruslan at mullakh.com> writes:
> Could you suggest how to overcome non-proper evaluation.
What do you mean by this?
> And generally, is maxima capable to simplify such expression?
>
> The expression: cos( %pi n x) at point x=1/2. That should be 0.
>
> Here the trace:
>
> -------------------------------------------------------
> (%i1) declare(n, integer);
> (%o1) done
> (%i2) cos( %pi * n * x);
> (%o2) cos(%pi n x)
> (%i3) ev( %, x=1/2,pred, expand, simp,eval );
> %pi n
> (%o3) cos(-----)
> 2
> (%i4)
> ------------------------------------------------------
Well, cos(?/2) = 0 but cos((2*?)/2) = -1 so Maxima is being quite
reasonable here. What would you like it to output?
Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20120528/afc704ec/attachment.pgp>