Problem with circular and hyperbolic function - v16

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !

Problem with circular and hyperbolic function - v16

Postby jmosk on Mon Oct 02, 2017 9:41 pm

Why does the value of 0○100 come out as 0J99.99499987?

Here is another example:

0○¨10*⍳6
0J9.949874371 0J99.99499987 0J999.9995 0J9999.99995 0J100000 0J1000000
+←--------------------------------------------------------------→
+ Jay Moskowitz
+←--------------------------------------------------------------→
+ http://www.linkedin.com/in/jay-moskowitz-5745b83
+
User avatar
jmosk
 
Posts: 69
Joined: Thu Jul 18, 2013 5:15 am

Re: Problem with circular and hyperbolic function - v16

Postby Jay|Dyalog on Tue Oct 03, 2017 8:39 am

The definition of 0○Y is (1-Y*2)*.5. Hence:

Code: Select all
      (1-100*2)*.5
0J99.99499987


Jay.
Jay|Dyalog
 


Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest