Numerical Methods at work

Disclaimer:
Permission to use, copy, and distribute this software, and It’s documentation for any non-commercial purpose is hereby granted without fee, provided: THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL Henrik Vestermark, BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Numerical Plotting of expressions

This web-based calculator offers the capability to graphically plot many mathematical expressions simultaneously. Users are encouraged to input expressions in a syntax compatible with the math.js library, which supports a wide range of mathematical functions and operators. For example, you can input trigonometric functions like sin(x), logarithmic functions such as log(x, base), polynomial expressions like (x-1)*(x-2)*(x-3), and even more complex expressions involving exponents, square roots, and absolute values, e.g., sqrt(x^2 + y^2) or abs(x).
Math.js is a comprehensive mathematics library for JavaScript and Node.js, designed to work with both numbers and symbolic expressions. It provides extensive functionality, including support for fractions, complex numbers, matrices, unit conversions, and a plethora of mathematical functions. This flexibility makes it an invaluable tool for web applications requiring mathematical calculations or plotting capabilities.
Numerical Plotting. vs. 1.0

  Min:  Max:








  • Plotting
  • Infomation
  • Not used
  • Not used
  • Help

Help

Welcome to the Help Section of our Web Calculator, a tool powered by the versatile math.js library designed for numerical plotting and mathematical exploration. This guide will introduce you to the capabilities of our calculator and the syntax required by math.js, ensuring you make the most out of your experience.

Getting Started with Expressions

Our calculator allows you to plot up to four mathematical expressions simultaneously. To achieve accurate plotting, it's essential that your input adheres to the syntax recognized by math.js. This library supports a broad range of mathematical operations, from basic arithmetic to more complex functions. Here are some examples to guide you:

Basic Arithmetic

You can perform operations like addition (`+`), subtraction (`-`), multiplication (`*`), and division (`/`). For example, `2 + 3 * 4`.

Exponents and Roots

For exponents, use the `^` symbol (e.g., `x^3` for x3, and for square roots, use `sqrt(x)`. You can also compute arbitrary roots, such as the cube root, with `nthRoot(x, 3)`.

Trigonometry

The calculator supports trigonometric functions including `sin`, `cos`, `tan`, along with their inverses and hyperbolic counterparts. Example: `sin(pi / 4)` or `atan2(y, x)`.

Logarithms and Exponentials

Use `log(x)` for natural logarithms and `log(x, base)` for logarithms with a specific base. Exponential functions are expressed as `exp(x)`.

Polynomials

Input polynomial expressions directly, like `(x - 1) * (x - 2) * (x - 3)` for a cubic polynomial.

Piecewise Functions

While math.js does not directly support piecewise functions in a single expression, you can achieve this through conditional expressions like `(x < 0) ? -x : x` for the absolute value function.

Units and Measurements

An exceptional feature of math.js is its ability to work with units, facilitating calculations involving physical quantities. For example, `9.81 m/s^2 * 2 s` automatically computes the displacement under gravity over two seconds.

Ensuring Accurate Input

For the best experience, ensure your expressions are correctly formatted and free from syntactical errors. Math.js is designed to interpret mathematical notation as closely as possible to standard written form, but attention to detail is key to avoiding input errors.
Email: hve@hvks.com if you have any questions.
This version has been tested with Edge, Chrome, Firefox & Safari browsers.

Rate this page

Click on the stars below to rate this page

Low
a Star
a Star
a Star
a Star
a Star
High


Corrections:
7-Apr-2024vs 1.0Initial release