Strange float behavior



I would have to see the internal form of %%c or %o5 to be sure,
but it sems to me that it is not simplified, but perhaps is marked
as simplified.

A correct form would look something like

((mtimes simp) ((rat) 4496... 25) $km  ((mexpt simp) $%min -1))

RJF


C Y wrote:
> Hi all.  I'm seeing some odd behavior of the float command when I try
> using it on output from the current units package.  Can anyone
> reproduce this or is this just a local quirk?  (Using latest cvs
> everything + sbcl 0.8.20 + post_eval_function patches.)
> 
> Thanks,
> CY
> 
> Maxima 5.9.1.1cvs http://maxima.sourceforge.net
> Using Lisp SBCL 0.8.20
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> This is a development version of Maxima. The function bug_report()
> provides bug reporting information.
> (%i1) load("./newunits.mac");
> ******************************************************************* 
> *                       Units version 0.11                        * 
> *          Definitions based on the NIST Reference on             * 
> *              Constants, Units, and Uncertainty                  * 
> *       Conversion factors from various sources including         * 
> *                   NIST and the GNU units package                * 
> ******************************************************************* 
>  
> Initializing unit arrays... 
> Done. 
> (%o1)                           ./newunits.mac
> (%i2) load("physics/physconst.mac");
> (%o2)   /usr/local/share/maxima/5.9.1.1cvs/share/physics/physconst.mac
> (%i3) ev(%%c,numer);
>                                   299792458 m
> (%o3)                             -----------
>                                        s
> (%i4) setunits([km,minutes]);
> (%o4)                                done
> (%i5) ev(%%c,numer);
>                                  449688687 km
> (%o5)                            ------------
>                                    25 %min
> (%i6) %o3-%o5;
> (%o6)                                  0
> (%i7) float(%o5);
>                                   35975095 km
> (%o7)                             -----------
>                                     2 %min
> (%i8) %o3-%o7;
>                                        km
> (%o8)                              - -------
>                                      50 %min
> (%i9) %o5-%o7;
>                                        km
> (%o9)                              - -------
>                                      50 %min
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima