Am 3 Oct 2006 um 18:04 hat Robert Dodier geschrieben:
> On 10/2/06, Barton Willis <willisb at unk.edu> wrote:
>
> > The functions ?round and ?truncate should be removed from the Maxima user
> > documentation.
> > They are just Common Lisp functions, so they do not work for anything
> > except integers and
> > double floats. A fun project would be to define functions round and
> > truncate...
>
> Agreed, let?s cut ?round and ?truncate from the docs.
I just cut them out (docs en, es, pt, de).
> We already have a simplifying floor function, right?
Yes, in nummod.lisp, and there is ceiling too.
> So it should be easy to create round and truncate.
Do you want the user to do that or should they both be implemented?
Volker
> Maybe something as simple as truncate(x) := floor(x)
> and round(x) := floor(x + 1/2).
>
> best
> Robert
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima