float2rational or exact takes as argument a
floating point number d and returns
a rational number q approaching
d such that abs(d-q)<epsilon.
epsilon is defined in the cas configuration
(Cfg menu) or with the cas_setup command.
Input :
Output when epsilon=1e-10:
Input :
Output :
Input :
Output :
If two representations are mixed, for example :
the rational is converted to a float, output :
Input :
Output :