Arithmetic/Rational: Difference between revisions

m
→‎Icon and Unicon: header simplification
m (→‎Icon and Unicon: header simplification)
Line 596:
For a sample implementation of <code>Ratio</code>, see [http://www.haskell.org/onlinereport/ratio.html the Haskell 98 Report].
 
== {{header|Icon}} and {{header|Unicon }}==
==={{headerworks with|Unicon}}===
==={{header|Icon}}===
The IPL provides support for rational arithmetic
* The data type is called 'rational' not 'frac'.
Line 737:
 
gcd(i, j) # returns greatest common divisor of i and j</lang>
 
==={{header|Unicon}}===
 
The Icon solution works in Unicon.
 
=={{header|J}}==
Anonymous user