Re: [Bug-apl] Circle

2015-09-02 Thread Juergen Sauermann
Hi Mike, thanks, fixed in SVN 672. /// Jürgen On 08/31/2015 04:21 PM, Mike Duvos wrote: Hi, ¯4○ is supposed to be equal to  5○¯6○.  While trying

Re: [Bug-apl] Circle

2015-09-02 Thread Juergen Sauermann
Hi Mikke, thanks, fixed in SVN 671. /// Jürgen On 08/31/2015 08:24 AM, Mike Duvos wrote: Hi, I looked into the ¯4○ thing a bit more and have identified the discrepancy between A

Re: [Bug-apl] Circle

2015-08-31 Thread Mike Duvos
Hi, ¯4○ is supposed to be equal to 5○¯6○. While trying to check this on GNU APL, I noticed your ARCCOSH gives a domain error on my vector. ⎕IO←0 X←1D45*⍳8 8 1⍴¯6○X DOMAIN ERROR 8 1⍴¯6○X ^ ^ APL2 returns the answer. If I write my own ARCCOSH... ∇ [0]

Re: [Bug-apl] Circle

2015-08-30 Thread Mike Duvos
Hi, I looked into the ¯4○ thing a bit more and have identified the discrepancy between APL2 and GNU APL, which may or not be a bug depending on whether the ISO spec agrees with APL2 on this function. According to the APL2 language reference, if the real part is greater than or equal to zero, or t

Re: [Bug-apl] Circle

2015-08-30 Thread Mike Duvos
Dropped an iota in the prior post. X←1D1*⍳360 +/¯4○X ¯3.814090113E¯8J3.814086508E¯8 That changes the IBM result slightly, but the GNU APL one is still off by a large amount. On Sun, Aug 30, 2015 at 9:13 PM, Mike Duvos wrote: > )CLEAR > CLEAR WS > ⎕IO←0 > X←1

[Bug-apl] Circle

2015-08-30 Thread Mike Duvos
)CLEAR CLEAR WS ⎕IO←0 X←1D1*360 +/(¯1+X×X)*0.5 5.393937829E¯8J¯5.393937829E¯8 [IBM APL2] +/¯4○X 5.393937829E¯8J¯5.393937829E¯8 [GNU APL] +/¯4○X 122.0040743J2.828427087 I think this is wrong.

Re: [Bug-apl] Circle bugs

2015-06-30 Thread Juergen Sauermann
Hi Kacper, thanks, fixed in SVN 642. /// Jürgen On 06/30/2015 01:13 AM, Kacper Gutowski wrote: There is a number of problems with circle functions. Inverse trigonometric and hyperbolic functions ¯1 ¯2 ¯6 ¯7 as well a

[Bug-apl] Circle bugs

2015-06-29 Thread Kacper Gutowski
There is a number of problems with circle functions. Inverse trigonometric and hyperbolic functions ¯1 ¯2 ¯6 ¯7 as well as function 0 are not properly extended to complex values when given argument is real; they work correctly with real-valued complex cells: 0 ¯1 ¯2 ¯6 ¯7 ∘.○ ¯2 ¯2J0 0.