encyclopegia.org

Exp4j

exp4j is a small Java library for evaluation of mathematical expressions.[src] It implements Dijkstra's Shunting-yard algorithm to translate expressions from infix notation to Reverse Polish notation and calculates the result using a simple Stack algorithm.[src]

exp4j is a small Java library for evaluation of mathematical expressions.[src] It implements Dijkstra's Shunting-yard algorithm to translate expressions from infix notation to Reverse Polish notation and calculates the result using a simple Stack algorithm.[src] ==Features== Variables can be used in expressions exp4j comes with a set of common built-in functions Users can create and use their own custom operators Users can create and use their own custom functions ==License terms== exp4j is released under the terms of the Apache License 2.0 ==Examples of usage== Calculating the result of 3 * \frac{\sin{(\pi)} - 2}{e} can be done in the following way: Expression e = new ExpressionBuilder("3 * (sin(pi) - 2 )/ e") .variables("pi", "e") .build() .setVariable("pi", Math.PI) .setVariable("e", Math.E); double result = e.evaluate(); ==See also== mXparser - Mathematical Expressions Parser / Evaluator ==References==[src]

5 sentences · 5 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Exp4j." encyclopegia.org, 2023, https://encyclopegia.org/wiki/exp4j. Accessed 26 November 2026.

Chicago

"Exp4j." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/exp4j.

APA

encyclopegia.org. (2023). Exp4j. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/exp4j

Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1180422847 · 0.5 · snapshot enwiki-001180422847

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.