next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: abs

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 :