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.141592653589793

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

o2 = 1.414213562373095

o2 : RR (of precision 53)

Ways to use abs:

For the programmer

The object abs is a method function.