Message105517
hi Mark,
that may very well be so, but I'd naively standardize on C/Fortran behaviour (but that's probably my physicist bias)
on my platform, the following piece of C-code:
$ cat test_cmath.c
#include <complex.h>
#include <stdio.h>
int main(int argc, char** argv)
{
complex c = casinh(-2*I);
printf("asinh(-2j) = %g + %gi\n", creal(c), cimag(c));
return 0;
}
/* EOF */
gives:
$ ./a.out
asinh(-2j) = -1.31696 + -1.5708i
cheers,
sebastien. |
|
Date |
User |
Action |
Args |
2010-05-11 14:05:17 | bins | set | recipients:
+ bins, gvanrossum, loewis, jcea, mark.dickinson, alanmcintyre, inducer, christian.heimes |
2010-05-11 14:05:17 | bins | set | messageid: <1273586717.3.0.549109788708.issue1381@psf.upfronthosting.co.za> |
2010-05-11 14:05:16 | bins | link | issue1381 messages |
2010-05-11 14:05:15 | bins | create | |
|