Rational Examples Index   <<   >>


 
   (1÷2) + (1÷3)
0.8333333333

   1r2 + 1r3
5r6

   (5÷6) - (1÷2) + (1÷3)
1.110223025E¯16

   5r6 - 1r2 + 1r3
0

   +∘÷\ 7 ⍴ 1
1 2 1.5 1.666666667 1.6 1.625 1.615384615

   +∘÷\ 7 ⍴ 1r1
1 2 3r2 5r3 8r5 13r8 21r13 

   +∘÷/ 7 ⍴ 1r1
21r13

   +∘÷ / 180 ⍴ 1r1
30010821454963453907530667147829489881r185477076...

   60 ⍕ +∘÷/ 180 ⍴ 1r1
 1.618033988749894848204586834365638117720309179805762862135449

   60 ⍕ +∘÷/ 180 ⍴ 1
 1.618033988749895_____________________________________________

   H ← {÷1+∘.+⍨⍳⍵}

   H 5
1            0.5          0.3333333333 0.25         0.2         
0.5          0.3333333333 0.25         0.2          0.1666666667
0.3333333333 0.25         0.2          0.1666666667 0.1428571429
0.25         0.2          0.1666666667 0.1428571429 0.125       
0.2          0.1666666667 0.1428571429 0.125        0.1111111111

   H 5r1
  1 1r2 1r3 1r4 1r5
1r2 1r3 1r4 1r5 1r6
1r3 1r4 1r5 1r6 1r7
1r4 1r5 1r6 1r7 1r8
1r5 1r6 1r7 1r8 1r9

   x +.× ⌹ x ← H 5
1.000000000E0    0.000000000E0    0.000000000E0   0.000000000E0    0.000000000E0  
2.842170943E¯14  1.000000000E0   ¯1.818989404E¯12 0.000000000E0    9.094947018E¯13
1.421085472E¯14  2.273736754E¯13  1.000000000E0   0.000000000E0   ¯9.094947018E¯13
2.842170943E¯14 ¯4.547473509E¯13  9.094947018E¯13 1.000000000E0    9.094947018E¯13
0.000000000E0   ¯2.273736754E¯13  0.000000000E0   1.818989404E¯12  1.000000000E0  

   q +.× ⌹ q ← H 5r1
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1

   x +.× ⌹ x ← H 20
DOMAIN ERROR
   x+.×⌹x←H 20
       ∧

   q +.× ⌹ q ← H 20r1
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1