Re: [Maxima] Numerical function evaluation with complex numbers



hi toy



> 
> 
> Try this:
> 
> (C3) sin(1+%i);
> 
> (D3) 				  SIN(%I + 1)
> (C4) ev(%,numer);
> 
> (D4) 				  SIN(%I + 1)
> 

(C3) trigexpand(sin(1+%i);

(D3) %I COS(1) SINH(1) +COSH(1) SIN(1)

(C4)%,numer ;

OK

so i think that you define sin1(Z),
(C5) sin1(z) := trigexpand(sin(rectform(z));

(C6)sin1((1+%i)/sqrt(2));
(d6) %ICOS(1/sqrt(2))SINH(1/sqrt(2))+COSH(1/sqrt(2))SIN(1/sqrt(2))


gosei furuya (go_furuya@infoseek.jp)











> Should maxima return something more like
> 
>   1.2984575814159773 + 0.6349639147847361d0 %I
> 
> instead?
> 
> I rather miss this, especially since Lisp handles complex numbers.
> 
> Ray
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
> 
>