2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1 +1,28 @@
|
|||
is_perfect_rational=: 2 = (1 + i.) +/@:%@([ #~ 0 = |) ]
|
||||
| _3r4 NB. absolute value
|
||||
3r4
|
||||
-2r5 NB. negation
|
||||
_2r5
|
||||
3r4+2r5 NB. addition
|
||||
23r20
|
||||
3r4-2r5 NB. subtraction
|
||||
7r20
|
||||
3r4*2r5 NB. multiplication
|
||||
3r10
|
||||
3r4%2r5 NB. division
|
||||
15r8
|
||||
3r4 <.@% 2r5 NB. integer division
|
||||
1
|
||||
3r4 (-~ <.)@% 2r5 NB. remainder
|
||||
_7r8
|
||||
3r4 < 2r5 NB. less than
|
||||
0
|
||||
3r4 <: 2r5 NB. less than or equal
|
||||
0
|
||||
3r4 > 2r5 NB. greater than
|
||||
1
|
||||
3r4 >: 2r5 NB. greater than or equal
|
||||
1
|
||||
3r4 = 2r5 NB. equal
|
||||
0
|
||||
3r4 ~: 2r5 NB. not equal
|
||||
1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue