Home :: Examples :: Natural Logarithm Surface

Natural Logarithm Surface

The Natural Logarithm is the logarithm to the base e, where e is an irrational constant approximately equal to 2.718281828.

The graph of the Natural Logarithm function slowly grows to positive infinity as x increases and slowly goes to negative infinity as x approaches 0

To plot Natural Logarithm Surface use the folowing script:

# Example
# 3D. Natural Logarithm Surface

# Grid
xgrid = 20
ygrid = 20

# Calculations
z = ln(x^2 + y^2 + 0.1)