Alexander Batalshikov wrote:
> 
> Hello,
> I try:
> 
> -> real(%i^%i)
> 
>    >> Error detected within library code:
>    ker2trigs: cannot convert kernel to gaussian function
> 
> I expect to get exp(-%pi/2) but get this error.
> This is normal?
>

This is a limitation of current implementation.  Try:

(4) -> real(normalize(%i^%i))

          1
   (4)  -----
          %pi
          ---
           2
        %e

Apparently real was originally written to work on output of
normalize.

I will look at this problem, but I am not sure how much can be done
quickly.  Currently real tries hard to produce simple answer.  In
general I am affraid it is hard to do better than
'(%i^%i + (-%i)^(-%i))/2)', that is average of expression and
its conjugate.  However, such answer while mathematically correct
in FriCAS would be more or less incorrect, because real is supposed
to elliminate all complex subexpressions.
 
-- 
                              Waldek Hebisch
[email protected] 

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to