Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

algebra.js 0.2.2

Compare
Choose a tag to compare
@nicolewhite nicolewhite released this 22 Aug 19:38
· 80 commits to master since this release

Bug Fixes

Expression Simplification

Expression simplification was failing in certain scenarios where there were multiple like-terms. This was fixed in 96b0e46.

Parser

Negative Numbers

The parser no longer throws when there are negative numbers, e.g.

var eq = algebra.parse("x^2 + 4 = -4");

Adjacent Parentheses

The parser now interprets anything adjacent to a parenthesis as multiplication, e.g.

var exp = algebra.parse("5(x + 2)");
exp.toString(); // 5x + 10
var exp = algebra.parse("(x + 2)(x + 2)");
exp.toString(); // x^2 + 4x + 4