Skip to content

Commit

Permalink
Oups... Second fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arguiot committed Aug 6, 2017
1 parent dca250d commit 9101355
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/display.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,8 @@ class DisplayJS {
const second = array[1][0];
const firstVal = array[0][1];
const secondVal = array[1][1];
const a = djs.math().div(djs.math().sub(firstVal, secondVal), djs.math().sub(first, second));
const b = djs.math().sub(secondVal, djs.math().mul(second, a));
const a = djs.math.div(djs.math.sub(firstVal, secondVal), djs.math.sub(first, second));
const b = djs.math.sub(secondVal, djs.math.mul(second, a));
if (text == true) {
return `f(x) = ${a}x+${b}; f(${valC}) = ${valC * a + b}`;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/display.es6.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ var DisplayJS = function () {
var second = array[1][0];
var firstVal = array[0][1];
var secondVal = array[1][1];
var a = djs.math().div(djs.math().sub(firstVal, secondVal), djs.math().sub(first, second));
var b = djs.math().sub(secondVal, djs.math().mul(second, a));
var a = djs.math.div(djs.math.sub(firstVal, secondVal), djs.math.sub(first, second));
var b = djs.math.sub(secondVal, djs.math.mul(second, a));
if (text == true) {
return "f(x) = " + a + "x+" + b + "; f(" + valC + ") = " + (valC * a + b);
} else {
Expand Down
2 changes: 1 addition & 1 deletion dist/display.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "display.js",
"version": "v1.2.1",
"version": "v1.2.2",
"description": "A simple JavaScript framework for building ambitious UIs",
"main": "dist/display.min.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions src/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,8 @@ class DisplayJS {
const second = array[1][0];
const firstVal = array[0][1];
const secondVal = array[1][1];
const a = djs.math().div(djs.math().sub(firstVal, secondVal), djs.math().sub(first, second));
const b = djs.math().sub(secondVal, djs.math().mul(second, a));
const a = djs.math.div(djs.math.sub(firstVal, secondVal), djs.math.sub(first, second));
const b = djs.math.sub(secondVal, djs.math.mul(second, a));
if (text == true) {
return `f(x) = ${a}x+${b}; f(${valC}) = ${valC * a + b}`;
}
Expand Down

0 comments on commit 9101355

Please sign in to comment.