sqrt

sqrt, function

def const dash autodiff pure sqrt(a: number): number

Returns the square root of a.

Example

x = 4.2
y = sqrt(x)
show scalar "sqrt(4.2)" with y

This outputs the following scalar:

sqrt(4.2)
2.04939

Errors

Negative inputs are not allowed and will fail.

See also

User Contributed Notes
0 notes + add a note