rational numbers only



Hi Richard and Stravos.

My original idea was avoid manual convertion like 0.5 to 1/2. But as this is 
not automatically make for maxima the original idea was changed:

Need a function that view an generic numerical expression of any lenght like:

0.5 + 1/3 - 3/8 +0.3*1/4

detect the decimal number, convert it for rational number, show the convertion 
of this decimal to rational and show the result in a rational number.

This is for teaching childrens to calculate the num?rical expressions and 
return its value in a simplificated form.

Thanks.

Em Wed 04 Jan 2006 14:58, Richard Fateman escreveu:
> Don't put any floating point numbers into maxima.  Use 1/2   not 0.5
>
> Or you can use the program  rat(......)
> to convert to rational approximations, in some contexts.

-- 
Data Estelar 2453738.308414
http://www.solar.com.br/~ficmatin
Desejo-lhe Paz, Vida Longa e Prosperidade.
S?o Bem Vindas Mensagens no Formato Texto Gen?rico com Acentos.