Files
modeling-app/docs/kcl/tan.md
Nick Cameron 66f6b741c4 Support = in record initialisation (#4519)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2024-11-24 20:21:55 +00:00

81 KiB

title, excerpt, layout
title excerpt layout
tan Compute the tangent of a number (in radians). manual

Compute the tangent of a number (in radians).

tan(num: number) -> number

Tags

  • math

Arguments

Name Type Description Required
num number Yes

Returns

number

Examples

exampleSketch = startSketchOn("XZ")
  |> startProfileAt([0, 0], %)
  |> angledLine({ angle = 50, length = 50 * tan(1 / 2) }, %)
  |> yLineTo(0, %)
  |> close(%)

example = extrude(5, exampleSketch)

Rendered example of tan 0