Re: [Maxima-bugs] [ maxima-Bugs-1407378 ] polarform returns a rectangular expression for float argumen
Subject: Re: [Maxima-bugs] [ maxima-Bugs-1407378 ] polarform returns a rectangular expression for float argumen
From: Raymond Toy
Date: Mon, 16 Jan 2006 16:37:31 -0500
>>>>> "Stavros" == Stavros Macrakis <macrakis at gmail.com> writes:
Stavros> 1. (*) text/plain ( ) text/html
>>
>> >> polarform (1.0 + %i); => 1.414213562373095 (.7071067811865475 %i
>> + .7071067811865476)
Stavros> it's nice that exp(1.0*%i) gets evalutated numerically, but we don't
>> want this to happen in polarform.
>>
Stavros> Polarform tries to prevent this sort of simplification by explicitly adding
Stavros> a simp flag. You can test whether the simp flag is being ignored by
Stavros> constructing the expression yourself:
Stavros> ?list(?list(?mexpt,?simp),%e,0.78*%i)
Hmm. This particular form is left unevaluated. But polarform(1.0+%i)
is still evaluated. And by tracing simpexpt, I can see that there is
no simp flag for mexpt. So perhaps I should check to make sure
polarform is setting the simp flag.
Thanks for the hint!
Ray