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
Quality

Pending

Does it follow best practices?

Impact

84%

1.47x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses mathjs relational operators (equal, unequal, larger, smaller, largerEq, smallerEq, compare) to implement comparison and validation logic. The focus is on proper usage of mathjs comparison functions rather than JavaScript's native comparison operators.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses mathjs equal",
      "description": "Uses mathjs `equal` function for equality comparisons instead of JavaScript's == or ===",
      "max_score": 15
    },
    {
      "name": "Uses mathjs unequal",
      "description": "Uses mathjs `unequal` function for inequality comparisons instead of JavaScript's != or !==",
      "max_score": 15
    },
    {
      "name": "Uses mathjs larger",
      "description": "Uses mathjs `larger` function for greater-than comparisons instead of JavaScript's >",
      "max_score": 15
    },
    {
      "name": "Uses mathjs smaller",
      "description": "Uses mathjs `smaller` function for less-than comparisons instead of JavaScript's <",
      "max_score": 15
    },
    {
      "name": "Uses mathjs largerEq/smallerEq",
      "description": "Uses mathjs `largerEq` or `smallerEq` functions for greater-than-or-equal or less-than-or-equal comparisons",
      "max_score": 10
    },
    {
      "name": "Uses mathjs compare",
      "description": "Uses mathjs `compare` function to determine relative ordering of two values",
      "max_score": 20
    },
    {
      "name": "Handles multiple types",
      "description": "Correctly uses mathjs comparison functions with different numeric types (regular numbers, high-precision strings, fractions) to leverage mathjs's type handling",
      "max_score": 10
    }
  ]
}

tile.json