/oss · 1 merged

josdejong/mathjs

An extensive math library for JavaScript and Node.js.

the project on GitHub (opens in a new tab)
  1. 12 Nov 2026

    Standard deviation and variance count dimensions the same way

    What was broken
    In the expression parser, standard deviation and variance with a chosen method counted dimensions from zero, while the short form counted from one. The same dimension gave different answers.
    What I changed
    The parser now converts the last number after the data, so both forms count dimensions from one. Other functions give the same results as before.
    Why it matters
    Statistics typed into the calculator line up across forms instead of quietly using the wrong rows or columns.

    see the code, #3770 (opens in a new tab)

← every project