Macaulay2 » Documentation
Packages » Macaulay2Doc :: abs
next | previous | forward | backward | up | index | toc

abs -- absolute value function

Synopsis

Description

abs x computes the absolute value of x.
i1 : abs(-pi)

o1 = 3.14159265358979

o1 : RR (of precision 53)
i2 : abs(1+ii)

o2 = 1.4142135623731

o2 : RR (of precision 53)

Ways to use abs :

For the programmer

The object abs is a method function.