I think it is pretty easy to make one using piecewise.
On Feb 4, 2008 9:19 AM, vgermrk <[EMAIL PROTECTED]> wrote: > > I think it would be nice to have a signum-function (i.e. > sign(x)=abs(x)/x or sign(x)=cmp(x,0) ) in sage. > There is none, right? > > Of course it should work on integers, floats, lists, etc. > > > -vgermrk- > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---