Custom Calculator Builder

Custom Calculator Builder

Create and share a private calculator from a formula using variables a, b and c.

FORSTÅ SVARET

Hvordan beregnes dette?

The formula is parsed by a restricted math engine. JavaScript, browser APIs, assignments and network access are not permitted. Sharing the URL can expose the values in it.

User-defined formulaResult = formula(a, b, c)

Et praktisk eksempel

The formula (a+b)*c with a=10, b=5 and c=2 returns 30.

Antagelser, fortolkning og almindelige fejl

Beregningsantagelser

  • Only the displayed restricted mathematical syntax is accepted.
  • Variables a, b and c are finite numbers.
  • The formula and values remain local unless the user shares the generated URL.

Sådan fortolkes resultatet

  • The headline is the evaluated formula result.
  • The result is rounded for display after full-precision calculation.
  • An error identifies unsupported syntax or a mathematically undefined result.

Almindelige fejl, du bør undgå

  • Omitting the multiplication symbol between a number and variable.
  • Sharing a URL that contains sensitive values.
  • Expecting assignments, spreadsheet syntax or JavaScript to run.