HomeManualTopicsTypesSymbols

std::sqrt

computes the square root of its argument

Parameter

value
a real number

Result

result
the computed square root

Description

This function calls the sqrt-function of the C library.

Example

println! sqrt(9)

Output

3

Example

println! sqrt(8)

Output

2.82842712474619

Topic

Numbers

See also

std::exp computes the exponential function of its argument
std::ln computes the logarithm to the base e
std::pow computes the power of its first argument to the second argument