---
title: "exp"
description: "e raised to the value."
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#L174"
---

# exp

e raised to the value.

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

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

With a negative argument it is the classic smooth falloff.

## Parameters

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

## Example

```ts
const glow = exp(neg(mul(dist, params.uniforms.falloff)))
```

## See also

- [`exp2`](/docs/primitives/math/exp2) — 2 raised to the value.
- [`log`](/docs/primitives/math/log) — The natural logarithm of a value.
- [`gaussBell`](/docs/primitives/math/gaussbell) — A bell curve: 1 at zero, falling toward 0 on both sides.

## Used by

[Aurora](/docs/components/aurora), [Chrome](/docs/components/chrome), [Goo](/docs/components/goo), [Heatmap](/docs/components/heatmap), [Hologram](/docs/components/hologram), [MeshGradient](/docs/components/meshgradient), [Prism](/docs/components/prism), [StudioBackground](/docs/components/studiobackground)