Hi Rene,
they do:
(%i1) sqrt(0.1)-sqrt(1/10);
(%o1) .3162277660168379 - 1/sqrt(10)
(%i2) ev(sqrt(0.1)-sqrt(1/10),numer);
(%o2) 0.0
You just have to invoke numeric evaluation.
Hope this helps
On Thu, Nov 10, 2011 at 17:51, rene kaelin <renekaelin at gmx.ch> wrote:
> Dear maxima users
> Why don't both expressions simplify to zero?
> (%i1)?sqrt(0.1)-sqrt(1/10);
> (%o1) .3162277660168379-1/sqrt(10)
> (%i2)?0.1^0.5-(1/10)^0.5;
> (%o2) 0.0
> Manual:
> Function:?SQRT?(X)the square root of X. It is represented internally by
> X^(1/2). Also see ROOTSCONTRACT. RADEXPAND[TRUE] - if TRUE will cause nth
> roots of factors of a product which are powers of n to be pulled outside of
> the radical, e.g. SQRT(16*X^2) will become 4*X only if RADEXPAND is TRUE.
> Maxima version: 5.21.1Maxima build date: 16:28 5/16/2010Host type:
> i686-apple-darwin10.3.0Lisp implementation type: SBCLLisp implementation
> version: 1.0.38
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>