---
title: "sin"
description: "The sine of an angle in radians, −1..1."
group: "space"
groupTitle: "Shapes, frames & warps"
categoryId: "math"
categorySlug: "math"
categoryTitle: "Math"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/math.ts#L195"
---

# sin

The sine of an angle in radians, −1..1.

```ts
sin(x: Val): Expr
```

Import `math` from `shaders/std` and use `math.sin`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `x` | `Val` |  |

## Example

```ts
const wave = sin(add(mul(uv.member('x'), 12), time))
```

> **Tip.** A degrees prop needs `mul(angle, 0.017453292519943295)` first.

## See also

- [`cos`](/docs/primitives/math/cos) — The cosine of an angle in radians, −1..1.
- [`tan`](/docs/primitives/math/tan) — The tangent of an angle in radians.

## Used by

[BrushedMetal](/docs/components/brushedmetal), [CarbonFiber](/docs/components/carbonfiber), [Chrome](/docs/components/chrome), [Crystal](/docs/components/crystal), [FlowingGradient](/docs/components/flowinggradient), [Frost](/docs/components/frost), [Goo](/docs/components/goo), [Hologram](/docs/components/hologram), [Holographic](/docs/components/holographic), [LiquidMetal](/docs/components/liquidmetal), [Marble](/docs/components/marble), [MeshGradient](/docs/components/meshgradient), [ReactionDiffusion](/docs/components/reactiondiffusion), [Voxels](/docs/components/voxels), [Water](/docs/components/water)