> it works if you use a python function:
>
> def z(x):
>     return ((floor(log(x,10)))+1)*(1+x-((10^floor(log(x,10)))))
>
> for some reason it does not evaluate floor when evaluating symbolic
> functions.

This is because floor?? says that


       #. If none of the above work, Sage returns a
           symbolic ``Expression`` object.

However, if you numerically evaluated the logs before passing them to
the floor, that should work.  This is a feature, so that people don't
have to have log(3143,10) always be turned into a decimal, even if
inside other symbolic functions.

Please let us know if these things don't help.

- kcrisman

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to