Make cf(2^(1/3)) work



Let express it another way. I need to get the entier of a number like 
x=2^(1/3). Maxima's ENTIER function fails to compute it. So I tried a 
line (floor ($float x)), but got an error "argument to FLOOR should be a 
real number: ((MEXPT) 2.0 ((RAT SIMP) 1 3))", which means that the lisp 
function $float behaves differently from the Maxima's command FLOAT. 
That's why I had to write (floor (fl2flo ($bfloat x))), $bfloat DOES 
convert aan expression to an ultimate number. Or should it be ($entier 
($bfloat x))?

--
Andrei Zorine

Robert Dodier wrote:
> Andrei,
> 
> 
>>If somebody knows what command computes entier of radicals pleas tell
>>since my radical->bfloat->float->integer conversion looks ugly.
> 
> 
> Maybe the function inrt is what you want.
> 
>  (%i1) l: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]$
>  (%i2) map (lambda ([a], inrt (10^a, 3)), l);
>  (%o2) [2, 4, 10, 21, 46, 100, 215, 464, 1000, 2154, 4641, 10000]
> 
> Hope this helps,
> Robert Dodier
> 
> 
> 		
> __________________________________ 
> Yahoo! Mail Mobile 
> Take Yahoo! Mail with you! Check email on your mobile phone. 
> http://mobile.yahoo.com/learn/mail 
> 
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
> 
>