How can I square root a uInt64 in F#?
I've tried:
sqrt(1UL) // the type 'uint64' does not support the operator 'Sqrt'
//and
1UL**0.5 //the type 'uint64' does not support the operator 'Pow'
You can do integer exponents using pown
, but it doesn't work to replace sqrt
because the power can only be an int.
pown 4 2 // 16