Supported Functions
Graphing Calculator
Trigonometry
| Function | Input | Meaning |
|---|---|---|
sin(x) | Sine | |
cos(x) | Cosine | |
tan(x) | Tangent | |
csc(x) | Cosecant | |
sec(x) | Secant | |
cot(x) | Cotangent |
Inverse trigonometry
| Function | Input | Meaning |
|---|---|---|
arcsin(x) | Inverse sine | |
arccos(x) | Inverse cosine | |
arctan(x) | Inverse tangent | |
arccsc(x) | Inverse cosecant | |
arcsec(x) | Inverse secant | |
arccot(x) | Inverse cotangent |
Statistics
| Function | Input | Meaning |
|---|---|---|
mean([1,3,4]) | Mean | |
median([1,3,4]) | Median | |
min([1,3,4]) | Minimum / maximum | |
quartile([1,3,4],2) | Quartile | |
quantile([1,3,4],0.2) | Quantile | |
stdev([1,3,4]) | Sample / population standard deviation | |
var([1,3,4]) | Sample / population variance | |
mad([1,3,4]) | Mean absolute deviation | |
cov([2,4,5],[1,3,2]) | Sample / population covariance | |
corr([2,4,5],[1,3,2]) | Pearson correlation coefficient | |
spearman([2,4,5],[1,3,2]) | Spearman rank correlation | |
stats([1,3,3,4,5]) | Five-number summary | |
count([1,3,3,4,5]) | Number of elements | |
total([1,3,4]) | Sum of elements |
List operations
| Function | Input | Meaning |
|---|---|---|
join([1,2],[3,4]) | Join lists | |
sort([1,5,4]) | Sort a list | |
shuffle([1,5,4]) | Shuffle a list | |
unique([1,5,5,6]) | Remove duplicate values | |
(a,0) for 1<a<3 | Parameters and list iteration |
Visualizations
| Function | Input | Meaning |
|---|---|---|
histogram([1,5,5,10]) | Histogram; optional width as second argument | |
dotplot([1,5,5,10]) | Dot plot; optional width as second argument | |
boxplot([1,5,5,10]) | Box plot |
Probability distributions
| Function | Input | Meaning |
|---|---|---|
normaldist(0,1) | Normal distribution | |
tdist(10) | Student’s t distribution | |
chisqdist(5) | Chi-square distribution | |
poissondist(5.5) | Poisson distribution | |
binomialdist(10,0.3) | Binomial distribution | |
uniformdist(0,1) | Uniform distribution | |
pdf(D,x) | Probability density function | |
cdf(D,x) | Cumulative distribution function | |
inversecdf(D,x) | Quantile / inverse CDF | |
random() | Random number in , or random list element |
Statistical tests
| Function | Input | Meaning |
|---|---|---|
ttest([20,31,51],40) | One-sample t test | |
tscore([20,31,51],40) | t score | |
ittest([10,13],[21,23]) | Two-sample t test |
Calculus
| Function or symbol | Input | Meaning |
|---|---|---|
exp(x) | Exponential function with base | |
ln(x) | Natural logarithm | |
log(x) | Common logarithm | |
log_a(x) | Logarithm with any base | |
d/dx | Differentiate with respect to | |
f'(x) | Derivative | |
int | Integral | |
sum | Sum of a sequence | |
prod | Product of a sequence |
Hyperbolic functions
| Function | Input | Meaning |
|---|---|---|
sinh(x) | Hyperbolic sine | |
cosh(x) | Hyperbolic cosine | |
tanh(x) | Hyperbolic tangent | |
csch(x) | Hyperbolic cosecant | |
sech(x) | Hyperbolic secant | |
coth(x) | Hyperbolic cotangent |
Color and sound
| Function | Input | Meaning |
|---|---|---|
c=rgb(255,165,0) | Create a color from red, green, and blue values | |
c=hsv(25,0.8,1) | Create a color from hue, saturation, and value | |
tone(440) | Play a frequency; optional gain as second argument |
Number theory and rounding
| Function | Input | Meaning |
|---|---|---|
lcm(2,3,4) | Least common multiple | |
gcd(6,12,18) | Greatest common divisor | |
mod(17,5) | Remainder | |
ceil(13.5) | Least integer not below the value | |
floor(13.5) | Greatest integer not above the value | |
round(1.32,2) | Round to a specified place | |
sign(-20) | Sign | |
nthroot(x,n) | nth root | |
nPr(6,2) | Permutations | |
nCr(6,2) | Binomial coefficient |
Actions and local variables
| Syntax | Input | Meaning |
|---|---|---|
a->a+1 | Update a variable | |
y=x+a with a=2 | Substitute a variable locally |
Complex numbers
| Function | Input | Meaning |
|---|---|---|
real(2+4i) | Real part | |
imag(2+4i) | Imaginary part | |
conj(2+4i) | Complex conjugate | |
arg(2+4i) | Argument | |
|2+4i| | Magnitude |
Geometry
| Function or symbol | Input | Meaning |
|---|---|---|
midpoint((1,0),(2,1)) | Midpoint of two points | |
distance((1,0),(2,1)) | Distance between two points | |
polygon((0,0),(1,0),(0,1)) | Polygon | |
(1,0)*(0,1) | Dot product | |
(1,0,0)cross(0,1,0) | Cross product in 3D | |
|(1,2)| | Vector magnitude |
Polar coordinates, constants, and viewport
| Symbol or value | Input | Meaning |
|---|---|---|
theta | Polar angle | |
r | Distance from the origin | |
pi | Pi | |
tau | Two times pi | |
e | Euler’s number | |
~ | Regression model | |
infinity | Infinity | |
width | Viewport width | |
height | Viewport height |
3D Calculator
The functions above generally remain available, with these additional coordinates and functions.
Spherical and cylindrical coordinates
| Symbol | Input | Meaning |
|---|---|---|
rho | Distance from the origin in spherical coordinates | |
theta | Azimuth | |
phi | Polar angle | |
r | Distance from the axis in cylindrical coordinates |
3D geometry
| Function or property | Input | Meaning |
|---|---|---|
segment((0,0,0),(2,2,2)) | Line segment | |
triangle((0,0,0),(2,2,2),(1,3,2)) | Triangle | |
sphere((0,0,0),1) | Sphere from a center and radius | |
vector((0,0,0),(1,1,1)) | Vector from start and end points | |
length(v_1) | Length of a vector or segment | |
v_1.start | Vector start point | |
v_1.end | Vector end point |