{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d1588981e0248aaa0174906c99df180e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d1588981e0248aaa0174906c99df180e","url":"https://api.github.com/users/petdance","login":"petdance","id":41100},"assignee":null,"updated_at":"2011-11-01T05:39:47Z","labels":[{"name":"bug","color":"AF3AC4","url":"https://api.github.com/repos/petdance/scratch/labels/bug"},{"name":"core","color":"683FB1","url":"https://api.github.com/repos/petdance/scratch/labels/core"},{"name":"Pri-normal","color":"5B4E39","url":"https://api.github.com/repos/petdance/scratch/labels/Pri-normal"},{"name":"Sev-medium","color":"F9ECA1","url":"https://api.github.com/repos/petdance/scratch/labels/Sev-medium"}],"closed_at":null,"comments":0,"url":"https://api.github.com/repos/petdance/scratch/issues/1277","body":"Hello,\nWhile doing [http://www.google-melange.com/gci/task/show/google/gci2010/parrot_perl_foundations/t129193205977 this GCI task] I had some problems with \"acosh\".\r\n\r\nHere is the output of tests that I wrote:\r\n{{{\r\nnot ok 529 - acosh of 0-1i\r\n# Have: -0.881374+1.570796i\r\n# Want: 0.881374-1.570796i\r\n\r\nnot ok 530 - acosh of 0-0.5i\r\n# Have: -0.481212+1.570796i\r\n# Want: 0.481212-1.570796i\r\n\r\nnot ok 535 - acosh of 2-3i\r\n# Have: -1.983387+1.000144i\r\n# Want: 1.983387-1.000144i\r\n\r\nnot ok 537 - acosh of -2-3i\r\n# Have: -1.983387+2.141449i\r\n# Want: 1.983387-2.141449i\r\n}}}\r\n\r\nThe \"want\" values were taken from WolframAlpha (ex [http://www.wolframalpha.com/input/?i=acosh(2-3i)]).\r\n\r\nSome other methods that relies on \"acosh\" are also returning a wrong value, like \"asech\".\r\n\r\n{{{\r\nnot ok 587 - asech of 0.5+0i\r\n# Have: -1.316958+0.000000i\r\n# Want: 1.316958+0.000000i\r\n\r\nnot ok 593 - asech of 0+0.5i\r\n# Have: -1.443635+1.570796i\r\n# Want: 1.443635-1.570796i\r\n\r\nnot ok 594 - asech of 0+1i\r\n# Have: -0.881374+1.570796i\r\n# Want: 0.881374-1.570796i\r\n\r\nnot ok 595 - asech of 0+2i\r\n# Have: -0.481212+1.570796i\r\n# Want: 0.481212-1.570796i\r\n\r\nnot ok 596 - asech of 2+3i\r\n# Have: -0.231335+1.420411i\r\n# Want: 0.231335-1.420411i\r\n\r\nnot ok 598 - asech of -2+3i\r\n# Have: -0.231335+1.721182i\r\n# Want: 0.231335-1.721182i\r\n}}}\r\n\r\nI also found some errors in  \"atanh\" and \"acoth\":\r\n{{{\r\nnot ok 538 - atanh of -2+0i\r\n# Have: -0.549306-1.570796i\r\n# Want: -0.549306+1.570796i\r\n\r\nnot ok 554 - acoth of -0.5+0i\r\n# Have: -0.549306-1.570796i\r\n# Want: -0.549306+1.570796i\r\n}}}\r\n\r\nThe tests that I wrote can be found here: https://github.com/fernandobrito/parrot/commits/gci_tests\r\n\r\nEnvironment: Ubuntu 10.10, Parrot 2.10.1 (master branch), Perl 5.10.1 i686-linux-gnu-thread-multi, cc (gcc 4.4), i386, linux\r\n\r\nOriginally http://trac.parrot.org/parrot/ticket/1891","html_url":"https://github.com/petdance/scratch/issues/1277","title":"Problems with acosh, asech, atanh and acoth  in Complex PMC","number":1277,"id":2106982,"created_at":"2011-11-01T05:39:47Z"},"action":"opened"}