|
Contents | Previous | Next | Subchapters |
| Syntax |
sqrt(x)
|
| See Also: | log , exp , hypot |
a = 3.0
b = 4.0
sqrt(a^2 + b^2)
returns
5
sqrt function unless one of the
elements of x is less than zero in which case the return
value is complex.
If you enter
sqrt([1., -1.])
O-Matrix will respond
[ (1,0), (0,1) ]