Syntax for: Functions | Parametric Curves | Equations | Point Sets
Use +, -, *, / and ^ for addition, subtraction, multiplication, division, and power, respectively. However the use of * is optional for multiplication. That is,
The calculators on this site, including the gCalcD Graphing Calculator are progragmed to understand expressions such as x+-2, x---2, x/-2, x*-sin(x) which would otherwise be entered, rather tediously, as x+(-2),x-(-(-2)), x/(-2), x*(-sin(x)) With these calculators it is not necessary to use the excessive parentheses. These artificial inelligent calculators make it possible to type in expressions with minimal effort and if you make a syntax error they will give you a precise error message highlighting the error.
This Graphing Calculator and other calculators on this site distinguishe binary from unary - sign and ignores redundant unary - signs. That is ---1----x+---2*--x is understood by them and is replaced by -1 - -x + -2*x
Although a unary operator has precedence over a binary operator, for convenience, the binary operator ^ has been given precedence over the unary operator -. So, for example, -x2 can naturally be entered as -x^2
In addition to algebraic functions (Algebra Graphing Calculator) such as linear (Linear Function Grapher, quadratic (Quadratic Grapher) and other polynomial (Polynomial Graphing Calculator) and rational functions (Rational Function Graphing Calculator), you can use any of these predefined functions in your expressions. This includes power functions (Power Graphing Calculator), logarithmic (Logarithm Graphing Calculator) and exponential functions (Exponent Graphing Calculator). You can also graph piecewise defined functions (Piecewise Function Grapher) and special step functions such as floor and ceil. In addition, you can graph trigonometric functions (Trig Graphing Calculator) and their inverses, and hyperbolic functions (Hyperbolic Graphing Calculator) and their inverses. You can also use mathematical constants such as the number represented by e (= 2.718…; Euler's number, natural Logarithm base) and π (=3.14…; by typing pi or Alt+P or Ctrl+P) in function expressions.
When entering a formula containing numerators and denominators, or exponents (powers or radicals) make sure you enclose them with parentheses (it is always safe to do so even though in some instances it may not be necessary).
For example, the expression
| 4x3x + 2 |
| 2x |
is entered as (4x^(3x)+2)/(2x)