Using Desmos: List of Supported Functions
Created: 2025/3/25
Last Update: 2025/3/27

Graph Calculator

Trigonometric Functions

FunctionInput ExampleMeaning
sin\sinsin(x)Sine
cos\coscos(x)Cosine
tan\tantan(x)Tangent
csc\csccsc(x)Cosecant (=1/sinx)(=1/\sin x)
sec\secsec(x)Secant (=1/cosx)(=1/\cos x)
cot\cotcot(x)Cotangent (=1/tanx)(=1/\tan x)

Inverse Trigonometric Functions

FunctionInput ExampleMeaning
arcsin\arcsinarcsin(x)Arcsine
arccos\arccosarccos(x)Arccosine
arctan\arctanarctan(x)Arctangent
arccsc\mathrm{arccsc}arccsc(x)Arccosecant
arcsec\mathrm{arcsec}arcsec(x)Arcsecant
arccot\mathrm{arccot}arccot(x)Arccotangent

Statistics

FunctionInput ExampleMeaning
mean\mathrm{mean}mean([1,3,4])Mean
median\mathrm{median}median([1,3,4])Median
min\mathrm{min}min([1,3,4])Minimum
max\mathrm{max}max([1,3,4])Maximum
quartile\mathrm{quartile}quartile([1,3,4],2)Quartile
quantile\mathrm{quantile}quantile([1,3,4],0.2)Quantile
stdev\mathrm{stdev}stdev([1,3,4])Sample Standard Deviation
stdevp\mathrm{stdevp}stdevp([1,3,4])Population Standard Deviation
var\mathrm{var}var([1,3,4])Sample Variance
varp\mathrm{varp}varp([1,3,4])Population Variance
mad\mathrm{mad}mad([1,3,4])Mean Absolute Deviation
cov\mathrm{cov}cov([2,4,5],[1,3,2])Sample Covariance
covp\mathrm{covp}covp([2,4,5],[1,3,2])Population Covariance
corr\mathrm{corr}corr([2,4,5],[1,3,2])Pearson Correlation Coefficient
spearman\mathrm{spearman}spearman([2,4,5],[1,3,2])Spearman's Rank Correlation Coefficient
stats\mathrm{stats}stats([1,3,3,4,5])Five-Number Summary
count\mathrm{count}count([1,3,3,4,5])Element Count
total\mathrm{total}total([1,3,4])Total Value

List Operations

FunctionInput ExampleMeaning
join\mathrm{join}join([1,2],[3,4])List Concatenation
sort\mathrm{sort}sort([1,5,4])List Sorting
shuffle\mathrm{shuffle}shuffle([1,5,4])List Shuffling
unique\mathrm{unique}unique([1,5,5,6])Create a List with Unique Values
for\mathrm{for}(a,0)for1<a<3Parameter Display, etc.

Visualization

FunctionInput ExampleMeaning
histogram\mathrm{histogram}histogram([1,5,5,10])Histogram
The second argument can specify the width
dotplot\mathrm{dotplot}dotplot([1,5,5,10])Dot Plot
The second argument can specify the width
boxplot\mathrm{boxplot}boxplot([1,5,5,10])Box Plot

Probability Distributions

FunctionInput ExampleMeaning
normaldist\mathrm{normaldist}normaldist(0,1)Normal Distribution with a Given Mean and Standard Deviation
tdist\mathrm{tdist}tdist(10)t-Distribution with a Given Degree of Freedom
chisqdist\mathrm{chisqdist}chisqdist(5)Chi-Square Distribution with a Given Degree of Freedom
poissondist\mathrm{poissondist}poissondist(5.5)Poisson Distribution with a Given Mean
binomialdist\mathrm{binomialdist}binomialdist(10,0.3)Binomial Distribution with a Given Number of Trials and Success Probability
uniformdist\mathrm{uniformdist}uniformdist(0,1)Uniform Distribution over a Given Interval
pdf\mathrm{pdf}pdf(D,x)Probability Density Function of a Given Distribution
cdf\mathrm{cdf}cdf(D,x)Cumulative Distribution Function of a Given Distribution
inversecdf\mathrm{inversecdf}inversecdf(C,x)Quantile Function (Inverse Cumulative Distribution Function) of a Given Distribution
random\mathrm{random}random()Random Number between 0 and 1
Returns a Random Element for a List

Statistical Tests

FunctionInput ExampleMeaning
ttest\mathrm{ttest}ttest([20,31,51],40)t-Test for a Sample and a Value
tscore\mathrm{tscore}tscore([20,31,51],40)T-Score for a Sample and a Value
ittest\mathrm{ittest}ittest([10,13],[21,23])t-Test for Two Samples

Calculus

FunctionInput ExampleMeaning
exp\mathrm{exp}exp(x)Exponential Function with Base ee
ln\mathrm{ln}ln(x)Natural Logarithm
log\mathrm{log}log(x)Common Logarithm
loga\mathrm{log_a}log_a(x)Logarithm with an Arbitrary Base
ddx\dfrac d{dx}d/dxDifferentiate with Respect to xx
f(x)f'(x)f'(x)Derivative
\displaystyle\intintIntegral
\displaystyle\sumsumSum of a Sequence
\displaystyle\prodprodProduct of a Sequence

Hyperbolic Functions

FunctionInput ExampleMeaning
sinh\mathrm{sinh}sinh(x)Hyperbolic Sine
cosh\mathrm{cosh}cosh(x)Hyperbolic Cosine
tanh\mathrm{tanh}tanh(x)Hyperbolic Tangent
csch\mathrm{csch}csch(x)Hyperbolic Cosecant
sech\mathrm{sech}sech(x)Hyperbolic Secant
coth\mathrm{coth}coth(x)Hyperbolic Cotangent

Color Customization

FunctionInput ExampleMeaning
rgb\mathrm{rgb}c=rgb(255,165,0)Create a Color by Specifying Red, Green, and Blue Amounts
Each Ranges from 0 to 255
hsv\mathrm{hsv}c=hsv(25,0.8,1)Create a Color by Specifying Hue, Saturation, and Brightness
Each Ranges from 0~360, 0~1, 0~1

Sound

FunctionInput ExampleMeaning
tone\mathrm{tone}tone(440)Play a Sound of a Given Frequency
The Second Argument Can Specify Gain

Number Theory

FunctionInput ExampleMeaning
lcm\mathrm{lcm}lcm(2,3,4)Least Common Multiple
gcd\mathrm{gcd}gcd(6,12,18)Greatest Common Divisor
mod\mathrm{mod}mod(17,5)Remainder
ceil\mathrm{ceil}ceil(13.5)Smallest Integer Not Less Than the Number
floor\mathrm{floor}floor(13.5)Largest Integer Not Greater Than the Number
round\mathrm{round}round(1.32,2)Round to a Given Place
sign\mathrm{sign}sign(-20)Sign
nthroot\mathrm{nthroot}nthrootnth Root
nPk{}_n \mathrm{P}_knPr(6,2)Permutation
nCk{}_n \mathrm{C}_knCr(6,2)Binomial Coefficient

Advanced

FunctionInput ExampleMeaning
\mathrm{\to}a->a+1Variable Update
with\mathrm{with}y=x+awitha=2Variable Substitution

Complex Numbers

FunctionInput ExampleMeaning
real\mathrm{real}real(2+4i)Real Part
imag\mathrm{imag}imag(2+4i)Imaginary Part
conj\mathrm{conj}conj(2+4i)Complex Conjugate
arg\mathrm{arg}arg(2+4i)Argument
\mathrm{||}|2+4i|Absolute Value

Geometry

FunctionInput ExampleMeaning
midpoint\mathrm{midpoint}midpoint((1,0),(2,1))Midpoint of Two Points
distance\mathrm{distance}distance((1,0),(2,1))Distance between Two Points
polygon\mathrm{polygon}polygon((0,0),(1,0),(0,1))Polygon
\mathrm{\cdot}(1,0)*(0,1)Dot Product
×\mathrm{\times}(1,0,0)cross(0,1,0)Cross Product (3D)
\mathrm{||}|(1,2)|Magnitude

Polar Coordinates

FunctionInput ExampleMeaning
θ\thetathetaAngle
rrrDistance from Origin

Constants, etc.

FunctionInput ExampleMeaning
π\pipiPi
τ\tautauTwice Pi
eeeEuler's Number
\sim~Regression Model
\inftyinfinityInfinity
width\mathrm{width}widthDisplay Area Width
height\mathrm{height}heightDisplay Area Height

3D Calculator

Most of the functions above can be used as is. Additionally, the following functions are available.

Polar Coordinates (Spherical Coordinates)

FunctionInput ExampleMeaning
ρ\rhorhoDistance from Origin in Spherical Coordinates
θ\thetathetaAzimuth Angle
ϕ\phiphiZenith Angle
rrrDistance from z-Axis in Cylindrical Coordinates

Geometry

FunctionInput ExampleMeaning
segment\mathrm{segment}segment((0,0,0),(2,2,2))Line Segment
triangle\mathrm{triangle}triangle((0,0,0),(2,2,2),(1,3,2))Triangle
sphere\mathrm{sphere}sphere((0,0,0),1)Sphere with a Given Center and Radius
vector\mathrm{vector}vector((0,0,0),(1,1,1))Vector with a Given Start and End Point
length\mathrm{length}length(v1)Magnitude of a Vector or Line Segment
.start\mathrm{.start}v1.startStart Point of a Vector
.end\mathrm{.end}v1.endEnd Point of a Vector

Reference

Supported Functions - Desmos Help Center
SHARE
Images are created with the Desmos Graphing Calculator, used with permission from Desmos Studio PBC.
© 2024 UNS Physics. All Rights Reserved.