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
Pending
Does it follow best practices?
Impact
84%
1.47xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"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
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10