This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Possible errors in Complex functions,
JJ Gomez-Cadenas writes:
> z1 = Complex(0.37082,-1.14127)
> z2 = Complex(0.965809,-2.19709)
>
> Testing pow (z1,z2).This function gives z1**z2
>
> Expect pow (z1,z2) = Complex(-0.4342397,-0.090085)
> Obtain pow (z1,z2) = ( -0.00327587, -0.0753357 )
Where are you getting your 'expect' values? Here's what I get.
octave:1> z1 = 0.37082+I*-1.14127
z1 = 0.37082 - 1.14127i
octave:2> z2 = 0.965809+I*-2.19709
z2 = 0.96581 - 2.19709i
octave:3> z1**z2
ans = -0.0032759 - 0.0753357i
Brian