Files
modeling-app/docs/kcl/sin.md
Jess Frazelle ca3a88b4df Bump kittycad and friends (#3377)
* bump all the things

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* bump

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* bump images

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
2024-08-12 13:06:30 -07:00

158 KiB

title, excerpt, layout
title excerpt layout
sin Compute the sine of a number (in radians). manual

Compute the sine of a number (in radians).

sin(num: number) -> number

Tags

  • math

Examples

const exampleSketch = startSketchOn("XZ")
  |> startProfileAt([0, 0], %)
  |> angledLine({
       angle: 50,
       length: 15 / sin(toDegrees(135))
     }, %)
  |> yLineTo(0, %)
  |> close(%)

const example = extrude(5, exampleSketch)

Rendered example of sin 0

Arguments

  • num: number (REQUIRED)

Returns

number