This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
RE: Possible errors in Complex functions,
- From: "JJ Gomez-Cadenas" <gomez at ific dot uv dot es>
- To: "Brian Gough" <bjg at network-theory dot co dot uk>, "JJ Gomez-Cadenas" <gomez at hal dot ific dot uv dot es>
- Cc: <gsl-discuss at sources dot redhat dot com>
- Date: Wed, 27 Feb 2002 20:58:51 +0100
- Subject: RE: Possible errors in Complex functions,
It was our stupid mistake. I am sorry!
jj gomez-cadenas
-----Mensaje original-----
De: Brian Gough [mailto:bjg@network-theory.co.uk]
Enviado el: martes, 26 de febrero de 2002 21:21
Para: JJ Gomez-Cadenas
CC: gsl-discuss@sources.redhat.com
Asunto: 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