Function reference
Every function you can write inside nerdamer('...'). Each page shows how to call it in Notation and from JavaScript, its parameters, and examples.
solve solves one equation. solveeqs solves systems: linear and nonlinear, with free variables, complex solutions, more equations than unknowns, or numerically.Algebra
factor(expression)Factors a polynomial or an integer.
gcd(arg1, arg2)Returns the greatest common divisor of two polynomials or numbers.
groebner(arg1, [arg2])Computes a Gröbner basis of a polynomial system.
lcm(arg1, arg2)Returns the least common multiple of two polynomials or numbers.
partfrac(arg1, [arg2])Splits a fraction of polynomials into partial fractions.
pfactor(value)Returns the prime factors of a positive integer, smallest first, with repeats.
pfactord(value)Returns the prime factors of a positive integer with their counts.
polyfactors(arg1)Returns the factors of a polynomial as separate entries of a vector.
simplify(arg1)Rewrites an expression in a simpler, equivalent form.
sqcomp(arg1, [arg2])Rewrites a quadratic as a square plus a constant.
Assumptions and sets
assume(arg1)Tells Nerdamer that a variable lies in a range of real numbers.
difference(arg1, arg2)Returns the values of the first set that aren't in the second.
forget(arg1)Removes the assumptions about a variable, or all assumptions.
intersection(arg1, arg2, ...)Returns the set of values that are in every one of the given sets.
intersects(arg1, arg2)Tests whether two sets have a value in common.
is_subset(arg1, arg2)Deprecated Use issubset instead.
issubset(arg1, arg2)Documentation for issubset.
unassign(arg1)Removes the value assigned to a variable.
union(arg1, arg2, ...)Returns the set of values that are in any of the given sets.
Calculus
C(x)Returns the Fresnel cosine integral, the integral of cos(πt²/2) from 0 to x.
defint(arg1, arg2, arg3, arg4)Computes a definite integral between two numeric bounds.
diff(expression[, variable][, order])Differentiates an expression with respect to a variable.
ilaplace(arg1, arg2, arg3)Computes the inverse Laplace transform of an expression.
ilt(arg1, arg2, arg3)Computes the inverse Laplace transform of an expression.
integrate(expression[, variable])Finds an antiderivative of an expression.
laplace(arg1, arg2, arg3)Computes the Laplace transform of an expression.
limit(expression, variable, value[, direction])Computes the limit of an expression as a variable approaches a value.
product(arg1, arg2, arg3, arg4)Multiplies an expression over a range of an integer index.
S(x)Returns the Fresnel sine integral, the integral of sin(πt²/2) from 0 to x.
sum(arg1, arg2, arg3, arg4)Adds up an expression over a range of an integer index.
taylor(expression, variable, center, degree)Computes a Taylor polynomial of an expression around a point.
Complex
arg(arg1)Returns the argument (angle) of a complex number, from -π to π.
conjugate(arg1)Returns the complex conjugate: i becomes -i.
csgn(arg1)Returns the sign of a complex number: 1 or -1.
imagpart(arg1)Returns the imaginary part of a complex expression.
magnitude(arg1)Returns the absolute value of an expression.
phase(arg1)Returns the argument (angle) of a complex number, from -π to π.
polarform(arg1)Writes a complex expression in polar form, r·e^(iθ).
realpart(arg1)Returns the real part of a complex expression.
rectform(arg1)Writes a complex expression in rectangular form, a + b·i.
Linear algebra
augment(left, right)Joins two matrices side by side.
cross(arg1, arg2)Computes the cross product of two three-dimensional vectors.
determinant(arg1)Computes the determinant of a square matrix.
dot(arg1, arg2)Computes the dot product of two vectors.
imatrix(arg1)Creates an identity matrix of a given size.
invert(arg1)Returns the inverse of a square matrix.
line(arg1, arg2, [arg3])Returns the line through two points, as an expression in `x`.
matrix(row1[, row2, ...])Creates a matrix from its rows.
nullspace(matrix[, prime])Returns a basis of the nullspace of a matrix.
rank(matrix)Returns the rank of a matrix: the number of linearly independent rows.
rref(matrix[, prime])Returns the reduced row-echelon form of a matrix.
trace(matrix)Returns the trace of a square matrix: the sum of its diagonal entries.
transpose(matrix)Swaps the rows and columns of a matrix.
Math
abs(arg1)Returns the absolute value of an expression.
append(arg1, arg2)Returns a vector with one more element at the end.
binom(n, k)Computes a binomial coefficient: the number of ways to choose `k` items from `n`.
cbrt(arg1)Returns the cube root of an expression.
ceil(arg1)Rounds a number up to the nearest integer.
ceiling(arg1)Rounds a number up to the nearest integer.
contains(arg1, arg2)Returns 1 if a vector, set, solution set or dictionary contains a value, and 0 otherwise.
continued_fraction(arg1, [arg2])Returns the continued fraction of a number.
count(arg1)Returns the number of entries in a vector, set, solution set or dictionary.
degrees(arg1)Converts radians to degrees, exactly.
delta(arg1)Returns the Dirac delta.
dfact(arg1)Returns the double factorial, n·(n-2)·(n-4)·….
dfactorial(arg1)Returns the double factorial, n·(n-2)·(n-4)·….
exp(arg1)Returns e raised to a power.
expand(arg1)Multiplies out products and powers into a sum of terms.
fact(arg1)Returns the factorial, n!.
factorial(arg1)Returns the factorial, n!.
floor(arg1)Rounds a number down to the nearest integer.
heaviside(arg1)Returns the Heaviside step: 0 for negative values, 1/2 at zero, and 1 for positive values.
hypot(arg1, arg2)Returns the length of the vector (x, y): sqrt(x^2+y^2).
is_in(arg1, arg2)Deprecated Use contains instead.
log(arg1, [arg2])Returns the natural logarithm, or the logarithm in a given base.
log10(arg1)Returns the base-10 logarithm of an expression.
max(arg1, arg2, ...)Returns the largest of its arguments.
min(arg1, arg2, ...)Returns the smallest of its arguments.
mod(arg1, arg2)Returns the remainder of a division.
modinv(arg1, arg2)Returns the inverse of a modulo m: the x for which a·x leaves remainder 1.
nthroot(arg1, arg2)Returns the nth root, as the principal power `x^(1/n)`.
numeric(value[, precision])Evaluates a number to a given number of significant digits.
parens(arg1)Keeps parentheses around an expression in the output.
powmod(base, exponent, modulus)Computes `base^exponent mod modulus` exactly, without computing the full power.
radians(arg1)Converts degrees to radians, exactly.
rect(arg1)Returns a rectangular pulse of width 1 centered at 0.
round(arg1, [arg2])Rounds a number, to an integer or to a number of decimal places.
scientific(value[, significantDigits])Writes a number in scientific notation.
sign(arg1)Returns 1, -1 or 0: the sign of a real expression.
significant(arg1, arg2)Rounds a number to a number of significant figures.
size(value)Returns the dimensions of a vector, matrix, set or dictionary.
sqrt(arg1)Returns the principal square root of an expression.
step(arg1)Returns the unit step: 0 for negative values and 1 for zero and positive ones.
subst(arg1, arg2, arg3)Replaces a variable or a subexpression with another expression.
tri(arg1)Returns a triangular pulse centered at 0.
trunc(arg1)Drops the fractional part of a number, rounding toward zero.
vars(expression)Lists the variables in an expression.
Polynomials
coeffs(expression[, variable])Returns the coefficients of a polynomial, from the constant term up.
content(arg1)Returns the greatest common divisor of a polynomial's coefficients.
deg(arg1, [arg2])Returns the degree of a polynomial.
div(arg1, arg2)Divides one polynomial by another and returns the quotient and remainder.
divide(arg1, arg2)Divides one polynomial by another and returns the result as one expression.
Solving
realsolutions(solutionSet, lower, upper) | realsolutions(systems, variable, lower, upper)Returns the real solutions in an interval.
roots(expression[, variable[, method]])Returns the roots of a polynomial as a vector.
solve(expressionOrEquation, variable[, onInterval])Solves an equation for one variable and returns every solution it finds.
solveeqs(arg1)Solves a system of equations and returns the solutions.
solveEquations(arg1)Deprecated Use solveeqs instead.
Special functions
Chi(arg1)Returns the hyperbolic cosine integral.
Ci(arg1)Returns the cosine integral.
Ei(arg1)Returns the exponential integral.
erf(arg1)Returns the error function.
erfc(arg1)Returns the complementary error function, 1-erf(x).
fib(arg1)Returns a Fibonacci number.
gamma(arg1)Returns the gamma function.
gamma_incomplete(arg1, arg2)Documentation for gamma_incomplete.
gamma_incomplete_lower(arg1, arg2)Documentation for gamma_incomplete_lower.
isprime(arg1)Returns 1 if an integer is prime, and 0 otherwise.
Li(arg1)Returns the logarithmic integral.
nextprime(value)Returns the smallest prime greater than an integer.
Shi(arg1)Returns the hyperbolic sine integral.
Si(arg1)Returns the sine integral, the integral of sin(t)/t from 0 to x.
sinc(arg1)Returns sin(x)/x.
Statistics
mean(arg1, ...)Returns the average of the values.
median(arg1, ...)Returns the middle value.
mode(arg1, ...)Returns the value that occurs most often.
smpstdev(arg1, ...)Returns the sample standard deviation: the square root of the [sample variance](/docs/functions/smpvar/).
smpvar(arg1, ...)Returns the sample variance, which divides by n-1.
stdev(arg1, ...)Returns the population standard deviation: the square root of the [variance](/docs/functions/variance/).
variance(arg1, ...)Returns the population variance: the average squared distance from the mean.
zscore(arg1, arg2, arg3)Returns how many standard deviations a value is from the mean: (x - mean)/sd.
Trigonometry
acos(arg1)Returns the arccosine, in radians from 0 to π.
acosh(arg1)Returns the inverse hyperbolic cosine.
acot(arg1)Returns the inverse cotangent, in radians from 0 to π.
acoth(arg1)Returns the inverse hyperbolic cotangent, atanh(1/x).
acsc(arg1)Returns the inverse cosecant, asin(1/x).
acsch(arg1)Returns the inverse hyperbolic cosecant, asinh(1/x).
arccos(arg1)Returns the arccosine, in radians from 0 to π.
arccosh(arg1)Returns the inverse hyperbolic cosine.
arccot(arg1)Returns the inverse cotangent, in radians from 0 to π.
arccoth(arg1)Returns the inverse hyperbolic cotangent, atanh(1/x).
arccsc(arg1)Returns the inverse cosecant, asin(1/x).
arccsch(arg1)Returns the inverse hyperbolic cosecant, asinh(1/x).
arcsec(arg1)Returns the inverse secant, acos(1/x).
arcsech(arg1)Returns the inverse hyperbolic secant, acosh(1/x).
arcsin(arg1)Returns the arcsine, in radians from -π/2 to π/2.
arcsinh(arg1)Returns the inverse hyperbolic sine.
arctan(arg1)Returns the arctangent, in radians between -π/2 and π/2.
arctanh(arg1)Returns the inverse hyperbolic tangent.
asec(arg1)Returns the inverse secant, acos(1/x).
asech(arg1)Returns the inverse hyperbolic secant, acosh(1/x).
asin(arg1)Returns the arcsine, in radians from -π/2 to π/2.
asinh(arg1)Returns the inverse hyperbolic sine.
atan(arg1)Returns the arctangent, in radians between -π/2 and π/2.
atan2(arg1, arg2)Returns the angle of the point (x, y), in radians from -π to π.
atanh(arg1)Returns the inverse hyperbolic tangent.
cos(arg1)Returns the cosine of an angle in radians.
cosh(arg1)Returns the hyperbolic cosine.
cot(arg1)Returns the cotangent, cos(x)/sin(x).
coth(arg1)Returns the hyperbolic cotangent, 1/tanh(x).
csc(arg1)Returns the cosecant, 1/sin(x).
csch(arg1)Returns the hyperbolic cosecant, 1/sinh(x).
sec(arg1)Returns the secant, 1/cos(x).
sech(arg1)Returns the hyperbolic secant, 1/cosh(x).
sin(arg1)Returns the sine of an angle in radians.
sinh(arg1)Returns the hyperbolic sine.
tan(arg1)Returns the tangent of an angle in radians.
tanh(arg1)Returns the hyperbolic tangent.
