float evaluation of erfi



On 12/03/2012 05:15 PM, Raymond Toy wrote:
>      Jaime> Shouldn't this be:
>
>      Jaime> For a < 0, we have z =|a|*exp(-%i*%pi/2),
>      Jaime> so sqrt(z^2) = sqrt(|a|^2*exp(+%i*%pi)) =|a|*exp(+%i*%pi/2).
>
> As I mentioned, that depends on whether you convert -%i*%pi to
> %i*%pi.  I think most texts define the phase not to include -%pi, so
> your interpretation would be correct.
I was not arguing about that. I agree that exp(-%i*%pi) should be 
changed to exp(+%i*%pi) to remain in the same branch.
I was pointing out that you mistankingly replaced z by a*exp(-%i*%pi/2) 
when it should be |a|*exp(-%i*%pi/2)

Jaime