Exponential functions (sqrt, exp, logn )
Help Contents
Logo and Mathematics
Mathematical functions (guide)
Exponential functions (sqrt, exp, logn )
Exponential functions (sqrt, exp, logn )
Exponential fnctions deal with powers of numbers.
There are three functions which Logo learns from logo.eli file.
Sqrt is used to calculate squares of numbers,
exp is used to raise e to a given power (e is an important mathematical constant which is approximately 2.718 - a more precise value is calculate by exp 1).
The third function is logn and it is the reverse function for exp.
print sqrt 3 ; 9
print exp 1 ; 2.71828182845905
print logn 10 ; 2.30258509299405