Basic Functions and Operations for JavaScript

This is a comprehensive reference list of mathematical functions and operators accepted by the interactive JavaScript calculators across this website. Use this guide to format expressions correctly when evaluating functions, plotting graphs, or running calculations.

Function Categories & Quick Reference

Category Syntax / Function Description
Trigonometric \( \sin(x) \)
\( \cos(x) \)
\( \tan(x) \)
\( \cot(x) \)
\( \sec(x) \)
\( \csc(x) \)
Sine function
Cosine function
Tangent function
Cotangent function
Secant function
Cosecant function
Inverse Trigonometric \( \arcsin(x) \) or \( \text{asin}(x) \)
\( \arccos(x) \) or \( \text{acos}(x) \)
\( \arctan(x) \) or \( \text{atan}(x) \)
Arcsine (inverse sine)
Arccosine (inverse cosine)
Arctangent (inverse tangent)
Hyperbolic \( \sinh(x) \)
\( \cosh(x) \)
\( \tanh(x) \)
\( \coth(x) \)
\( \text{sech}(x) \)
\( \text{csch}(x) \)
Hyperbolic sine
Hyperbolic cosine
Hyperbolic tangent
Hyperbolic cotangent
Hyperbolic secant
Hyperbolic cosecant
Logarithmic \( \log(x, a) \)
\( \log(x) \)
Logarithm to base \( a \)
Natural logarithm (base \( e \))
Exponential \( a^x \)
\( e^x \)
Exponential with base \( a \)
Natural exponential (base \( e \))
Absolute Value & Square Root \( |x| \) or \( \text{abs}(x) \)
\( \sqrt{x} \)
Absolute value function
Square root function

Special Constants & Formatting Rules

The special mathematical constants \( e \) and \( \pi \) are used directly as-is.

Tip: Always leave a space or explicit multiplication operator between constants and adjacent variables or coefficients. For example:

Supported Mathematical Operations

Operator Operation
\( + \) Addition
\( - \) Subtraction
\( * \) Multiplication
\( / \) Division
\( \text{^} \) Exponentiation (Power)

More References and Links

Explore calculators, graphing tools, and tutorials across the site:

Graphing Functions | Trigonometric Properties | Home Page