Basic Functions and Operations for Javascript

List of functions accepted by the javascript calculators in this website. List of Functions Accepted by the JavaScript Calculators on This Website

Trigonometric functions

\( \sin(x) \) : sine function

\( \cos(x) \) : cosine function

\( \tan(x) \) : tangent function

\( \cot(x) \) : cotangent function

\( \sec(x) \) : secant function

\( \csc(x) \) : cosecant function

Inverse Trigonometric Functions

\( \arcsin(x) \) or \( \text{asin}(x) \) : inverse of sine function

\( \arccos(x) \) or \( \text{acos}(x) \) : inverse of cosine function

\( \arctan(x) \) or \( \text{atan}(x) \) : inverse of tangent function

Hyperbolic Functions

\( \sinh(x) \) : hyperbolic sine function

\( \cosh(x) \) : hyperbolic cosine function

\( \tanh(x) \) : hyperbolic tangent function

\( \coth(x) \) : hyperbolic cotangent function

\( \text{sech}(x) \) : hyperbolic secant function

\( \text{csch}(x) \) : hyperbolic cosecant function

Logarithmic Functions

\( \log(x, a) \) : logarithmic function to the base \( a \)

\( \log(x) \) : logarithmic function to the base \( e \)

Exponential Functions

\( a^x \) : exponential function with base \( a \)

\( e^x \) : exponential function with base \( e \)

Absolute Value and Square Root Functions

\( \left| x \right| \) or \( \text{abs}(x) \) : absolute value function

\( \sqrt{x} \) : square root function

Special Constants e and pi

The special constants \( e \) and \( \pi \) are used as-is. Leave a space between them and adjacent constants or variables.

Examples: \( \sin(\pi x) \) , \( e^x \)

Operations

\( + \) : addition

\( - \) : subtraction

\( * \) : multiplication

\( \text{^} \) : exponentiation

\( / \) : division