kcl library referencestdmathln

lnFunction in std::math

Compute the natural logarithm of the number.

ln(@input: number): number

Arguments

NameTypeDescriptionRequired
inputnumberA numberYes

Returns

number - A number

Examples

exampleSketch = startSketchOn(XZ)
  |> startProfile(at = [0, 0])
  |> line(end = [ln(100), 15])
  |> line(end = [5, -6])
  |> line(end = [-10, -10])
  |> close()

example = extrude(exampleSketch, length = 5)

Rendered example of ln 0