A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,4 @@
|
|||
Inf=: _
|
||||
NegInf=: __
|
||||
NB. Negative zero cannot be represented in J.
|
||||
NaN=. _.
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
(1 % 0) , (_1 % 0)
|
||||
_ __
|
||||
(1e234 * 1e234) , (_1e234 * 1e234)
|
||||
_ __
|
||||
_ + __ NB. generates NaN error, rather than NaN
|
||||
|NaN error
|
||||
| _ +__
|
||||
|
||||
_ - _ NB. generates NaN error, rather than NaN
|
||||
|NaN error
|
||||
| _ -_
|
||||
%_
|
||||
0
|
||||
%__ NB. Under the covers, the reciprocal of NegInf produces NegZero, but this fact isn't exposed to the user, who just sees zero
|
||||
0
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
_ + _
|
||||
_
|
||||
__ + __
|
||||
__
|
||||
Inf + 0
|
||||
_
|
||||
NegInf * 0
|
||||
0
|
||||
Loading…
Add table
Add a link
Reference in a new issue