This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]