Generic Calculator
Show/Hide:
Definitions
FormulaeInstructionsIntroduction:
This page allows you to input any algebraic formula and calculate its value repeatedly for any combination of values.
Click on any of the links at the top of the page to reveal (or hide) more information about this calculator.
Caveats:
If you are reading this paragraph, then you probably don't have JavaScript installed/enabled on your computer.
At this point in time the calculators on this site are entirely dependent on JavaScript. Given enough time and money it is hoped todevelop a version in the future which will be able to operate independently. Since JavaScript runs on your own computer, rather thanon this server, it has been possible to set up this site much more quickly than if a server-side language was used, and it is possible to
serve far more pages with the available bandwidth.
Definitions:
- Formula
- Any simple Algebraic or Arithmetical equation can be entered into this calculator.
Instructions
- Enter your formula / equation into the box marked Input / Formula.
- Click the 'CalcResult' button below the input field.
- A 'Results Area' will be displayed below.
- You will be prompted to enter a numeric value for each variable/placeholder in your formula.
- The full calculation, with the numeric values substituted, will be added to the 'Results Area', along with the calculated result.
- To do further calculations simply change the formula in the input fields (if necessary) and click the 'CalcResult' button again. (Press the 'Clear Form' button if you want to empty both the input and output fields.)
- Press the 'Clear Results' button if you wish to discard the first results, otherwise further calculations will be added into the same area.
- Click the 'CalcResult' button again
Notes:
The calculator on this page will allow you to work out equations that are small and simple, or extremely complex if necessary.
Variables / placeholders are case-sensitive, therefore 'a' is not treated as being the same value as 'A', unless you enter the same value each time.
There are a few limitations to this calculator:
- Variables may only consist of a single character.
- European Numbers: comma's may not be used as a symbol for the decimal place - use a full-stop instead, i.e. UK and USA format.
- Comma's (commonly used to group digits into groups) can be entered but will be stripped out.
- Operations are limited to: * (multiplication), + (addition), - (subtraction), / (division), % (modulus)
- Normal rules of precedance apply, i.e. multiplication and division is carried out before addition and subtraction.
- Standard parantheses, also known as round brackets, such as '(' and ')' can be used to group portions of a formula to give it higher precedance.
- If your formula requires a variable 'x' to be squared, then enter it as (x*x)
- If your formula uses shorthand or implicit multiplication notation, such as 5x, then enter it as (5*x)
- Similarly, for the cube of y, enter it as (y*y*y) or as (y^3)
- 'e' is pre-defined to input the value of that common constant, approximately equal to 2.718
- Similarly, 'P' is pre-defined with the value of Pi: approximately 3.14
- Finally, the double-quote character: " is pre-defined with the value of the square-root of 2: approximately 1.414
If you need to use more sophisticated
functions, try
a more complex version of this calculator.
© Copyright Mike Brockington 2004 - 2021 All Rights Reserved