CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-mathjs

Math.js is an extensive math library for JavaScript and Node.js featuring a flexible expression parser, symbolic computation, and support for numbers, big numbers, complex numbers, fractions, units, and matrices.

84

1.47x
Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates how well the engineer uses mathjs's expression parsing capabilities (parse, evaluate, compile, and parser functions) to implement a formula evaluator with variable substitution support.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses parse function",
      "description": "Implementation uses mathjs's parse() function to parse mathematical expressions into abstract syntax trees",
      "max_score": 25
    },
    {
      "name": "Uses evaluate function",
      "description": "Implementation uses mathjs's evaluate() function with scope parameter to evaluate expressions with variable substitution",
      "max_score": 25
    },
    {
      "name": "Uses compile function",
      "description": "Implementation uses mathjs's compile() function to pre-compile expressions and calls the evaluate() method on the compiled result for repeated evaluation",
      "max_score": 25
    },
    {
      "name": "Uses parser function",
      "description": "Implementation uses mathjs's parser() function to create a stateful parser instance and calls its evaluate() method to maintain persistent state between evaluations",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-mathjs

tile.json