Socket
Socket
Sign inDemoInstall

mathjs

Package Overview
Dependencies
9
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
28Next

12.4.2

Diff

Changelog

Source

2024-04-24, 12.4.2

  • Fix #3192: function isNaN returns false for NaN units in a matrix or array (#3193). Thanks @lgerin.
  • Fix: #3180 fix type definitions of functions add and multiply to allow more than two arguments.
  • Docs: correct the docs about traverse returning void (#3177). Thanks @rohildshah.
josdejong
published 12.4.1 •

Changelog

Source

2024-03-13, 12.4.1

  • Docs: implement an interactive version of the Lorenz example, and show the chart full screen (#3151). Thanks @dvd101x.
  • Fix #3172: simplify "true and true".
  • Fix #3163: toTex wrongly returning Infinity for large BigNumbers.
  • Fix #3162: add license information about CSParse (#3164).
  • Fix #3175: cannot delete units using math.Unit.deleteUnit.
  • Fix: faster startup time of the CLI and REPL by loading the bundle.
  • Fix: remove using polyfill.io inside the example pretty_printing_with_mathjax.html (#3167). Thanks @SukkaW.
josdejong
published 12.4.0 •

Changelog

Source

2024-02-22, 12.4.0

  • Feat: implement support for trailing commas in matrices (#3154, #2968). Thanks @dvd101x.
  • Feat: improve the performance of multiply a lot by adding matrix type inferencing (#3149). Thanks @RandomGamingDev.
  • Fix: #3100 function round not handling round-off errors (#3136). Thanks @BrianFugate.
  • Fix: PartitionedMap and ObjectWrappingMap missing a property Symbol.iterator, causing problems when trying new Map(scope) (#3156).
  • Fix: type definitions of function mode (#3153). Thanks @rich-martinez.
  • Docs: describe method getAllAsMap in the Parser docs (#3158, #3157). Thanks @dvd101x.
josdejong
published 12.3.2 •

Changelog

Source

2024-02-08, 12.3.2

  • Improved the performance of custom defined functions in the expression parser (#3150).
  • Fix: #3143 cannot use and and or inside a function definition. Regression since v12.1.0 (#3150).
josdejong
published 12.3.1 •

Changelog

Source

2024-02-01, 12.3.1

  • Improved the typings of the arguments of ArrayNode, FunctionNode, IndexNode, OperatorNode, and RelationalNode (#3123). Thanks @sylee957.
  • Added a fully featured code editor example with CodeMirror and Katex (#3027). Thanks @dvd101x.
  • Fix: #3114 build warnings related to a number of wrong /* #__PURE__ */ annotations.
  • Fix: #3142 support BigNumber values for the options of function format: precision, wordSize, lowerExp, upperExp. Support BigNumber values for the option wordSize in the functions hex, bin, and oct.
  • Fix: #3125 type definitions of function hypot (#3144). Thanks @silentmissile.
  • Fix: #3141 help(config) altering the actual config when evaluating the examples.
  • Docs: #3145 fix documentation about REPL, it does require a build step nowadays.
josdejong
published 12.3.0 •

Changelog

Source

2024-01-12, 12.3.0

  • Implement support new metric prefixes: ronna (R), quetta (Q), ronto (r), and quecto (q) (#3113, #3112). Thanks @AlexEdgcomb.
  • Fix a bug converting a unitless unit (#3117). Thanks @costerwi.
  • Fix: #3097 toSI() wrongly converting degC (#3118). Thanks @costerwi.
josdejong
published 12.2.1 •

Changelog

Source

2023-12-20, 12.2.1

  • Fix #3109: method Node.toHTML not accepting a custom handler.
josdejong
published 12.2.0 •

Changelog

Source

2023-12-08, 12.2.0

  • Feat: lazy evaluation of operators and, or, &, | (#3090, #3101, #2766). Thanks @smith120bh.
  • Fix: passing a 4th argument with a scope to raw functions.
  • Fix: #3096 embedded docs of eigs throwing an error.
josdejong
published 12.1.0 •

Changelog

Source

2023-11-17, 12.1.0

  • Feat: Extend function round with support for units (#2761, #3095).
  • Feat: Extend function mod with support for negative divisors in when using BigNumber or Fraction (#3087).
  • Fix: #3092 a typo in an error message when converting a string into a number.
  • Fix: #3094 function derivative mutates the input expression when it fails.
josdejong
published 12.0.0 •

Changelog

Source

2023-10-26, 12.0.0

Breaking changes:

  • Fix #2879, #2927, #3014: change the confusing interface of eigs (#3037), thanks @gwhitney. Before, functions eigs returned an object:
    { values: MathCollection; vectors: MathCollection }
    
    where vectors was a 2d matrix of which the columns contained the vectors. This is changed to eigs returning an object:
    { 
      values: MathCollection
      eigenvectors: Array<{
        value: number | BigNumber
        vector: MathCollection
      }>
    }
    
    Where eigenvectors is an array containing an object with the corresponding eigenvalue and vector.
  • Refactored the TypeScript type definitions to make them work with a NodeNext module resolution (#3079, #2919).
    • Type MathJsStatic is renamed to MathJsInstance.
    • Type FactoryDependencies is deprecated, use MathJsFactory instead, and import dependency maps directly from the library.
  • Change the assignment operator of .toTex() output from := to = (see #2980, #2987).
  • Drop official support for Node.js 14 and 16.

Features:

  • Function eigs now has an option to turn off calculation of eigenvectors (#3057, #2180). Thanks @gwhitney.

Fixes:

  • Find eigenvectors of defective matrices (#3037). Thanks @gwhitney.
2345
28Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc