{
  "id": "enwiki-001180422847",
  "slug": "exp4j",
  "title": "Exp4j",
  "qid": "",
  "lead": "exp4j is a small Java library for evaluation of mathematical expressions. 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.",
  "body": "exp4j is a small Java library for evaluation of mathematical expressions. 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. ==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==",
  "categories": [
    "22947660",
    "24043274",
    "25397562",
    "25397603",
    "26748027",
    "44729026",
    "67434975"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1180422847",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1697462428.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001180422847",
    "type": "webpage",
    "title": "Exp4j",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/exp4j",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          22
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          22
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001180422847",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1180422847",
    "note": "Immutable snapshot enwiki-001180422847"
  }
}