Skip to content

Constants and operators

π ≈ 3.14159

τ = 2π ≈ 6.28318

(cos(t), sin(t)) @ domain: 0..tau
Open in playground →

Greek letter θ

The polar angle. r = … in terms of theta is a polar curve, and theta cannot be defined.

r = 1 + cos(theta)
Open in playground →

Euler’s number ≈ 2.71828

∞

a = 1 / infinity
b = arctan(infinity)
Open in playground →

Boolean true

A metadata value only: Desmos has no booleans in an expression.

(1, 2) @ showLabel: true, label: "P"
Open in playground →

Boolean false

A metadata value only: Desmos has no booleans in an expression.

y = x @ lines: false
Open in playground →

Written out, a Greek letter is drawn as the letter. It is a name like any other: it may be defined, used as a parameter, or left undefined for Desmos to offer as a slider.

NameLetter
alphaα
betaβ
gammaγ
deltaδ
epsilonε
zetaζ
etaη
iotaι
kappaκ
lambdaλ
muμ
nuν
xiξ
rhoρ
sigmaσ
phiφ
chiχ
psiψ
omegaω
GammaΓ
DeltaΔ
ThetaΘ
LambdaΛ
XiΞ
PiΠ
SigmaΣ
PhiΦ
PsiΨ
OmegaΩ

Words Desmos reads as operators rather than as functions or variables. None of them takes parentheses.

Viewport width, in graph units

Follows the viewport as it is panned and zoomed.

Viewport height, in graph units

Follows the viewport as it is panned and zoomed.

List comprehension: [i ^ 2 for i = [1…10]]

Builds a list by running the expression before it over every element of a list. More than one binding, for i = A, j = B, runs over every pair.

S = [i ^ 2 for i = [1...10]]
[(i, i ^ 2) for i = [1...5]]
Open in playground →

Local definition: f(x) = x n with n = length(a)

Substitutes values into the expression before it. The bindings run to the end of the bracket or statement.

y = a x ^ 2 with a = 0.5
Open in playground →

The element’s 1-based position, inside a list filter or a clickable action

Which element of a list was clicked, counting from 1.

n = 0
P = [(1, 1), (2, 2), (3, 3)] @ onClick: n -> index, pointSize: 20
Open in playground →

Milliseconds since the last tick - only valid in a ticker handler

Written anywhere but the ticker’s handler it is an error, dt-outside-ticker.

n = 0
ticker n -> n + dt @ playing
Open in playground →