Macaulay2 » Documentation
Packages » Macaulay2Doc » analytic functions » sqrt
next | previous | forward | backward | up | index | toc

sqrt -- square root function

Description

i1 : sqrt 2p200

o1 = 1.41421356237309504880168872420969807856967187537694807317668

o1 : RR (of precision 200)
i2 : sqrt(+ii)

o2 = .7071067811865476+.7071067811865475*ii

o2 : CC (of precision 53)
i3 : sqrt(interval(2,3))

o3 = [1.414213562373095,1.732050807568877]

o3 : RRi (of precision 53)
i4 : sqrt(interval(1+2*ii,3+4*ii))

o4 = [.9999999813735485,2.000000007450581]+[0,1.414213571697474]*ii

o4 : CCi (of precision 53)

Ways to use sqrt:

  • sqrt(InexactNumber)
  • sqrt(ZZ,ZZ) -- modular square root

For the programmer

The object sqrt is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Macaulay2Doc/operators.m2:167:0.