Comparing version 0.7.7 to 0.7.8
103
package.json
{ | ||
"author": { | ||
"name": "Martin Donk", | ||
"email": "martin.r.donk@gmail.com" | ||
}, | ||
"description": "javascript light-weight symbolic math expression evaluator", | ||
"name": "nerdamer", | ||
"license": "MIT", | ||
"version": "0.7.7", | ||
"homepage": "http://nerdamer.com/", | ||
"directory": { | ||
"lib": "./" | ||
}, | ||
"main": "nerdamer.core.js", | ||
"keywords": [ | ||
"math", | ||
"matrix", | ||
"complex", | ||
"number", | ||
"parser", | ||
"expression", | ||
"functions", | ||
"numeric", | ||
"equation solver", | ||
"linear algebra", | ||
"vectors", | ||
"symbolic", | ||
"integration", | ||
"differentiation", | ||
"derivative", | ||
"algebra", | ||
"calculus", | ||
"mathematics", | ||
"constants", | ||
"symbolic math" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jiggzson/nerdamer.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/jiggzson/nerdamer/issues" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "jasmine" | ||
}, | ||
"devDependencies": { | ||
"jasmine": "^2.5.2" | ||
} | ||
"author": { | ||
"name": "Martin Donk", | ||
"email": "martin.r.donk@gmail.com" | ||
}, | ||
"description": "javascript light-weight symbolic math expression evaluator", | ||
"name": "nerdamer", | ||
"license": "MIT", | ||
"version": "0.7.8", | ||
"homepage": "http://nerdamer.com/", | ||
"directory": { | ||
"lib": "./" | ||
}, | ||
"main": "nerdamer.core.js", | ||
"typings": "index.d.ts", | ||
"keywords": [ | ||
"math", | ||
"matrix", | ||
"complex", | ||
"number", | ||
"parser", | ||
"expression", | ||
"functions", | ||
"numeric", | ||
"equation solver", | ||
"linear algebra", | ||
"vectors", | ||
"symbolic", | ||
"integration", | ||
"differentiation", | ||
"derivative", | ||
"algebra", | ||
"calculus", | ||
"mathematics", | ||
"constants", | ||
"symbolic math" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jiggzson/nerdamer.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/jiggzson/nerdamer/issues" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "jasmine" | ||
}, | ||
"devDependencies": { | ||
"jasmine": "2.6.0" | ||
} | ||
} |
@@ -49,3 +49,3 @@ /* | ||
core.Symbol.prototype.hasNegativeTerms = function() { | ||
if(this.isComposite()) { console.log(9) | ||
if(this.isComposite()) { | ||
for(var x in this.symbols) { | ||
@@ -75,3 +75,3 @@ var sym = this.symbols[x]; | ||
}, | ||
text_: function(option) { | ||
text: function(option) { | ||
return this.LHS.text(option)+'='+this.RHS.text(option); | ||
@@ -91,3 +91,3 @@ }, | ||
}, | ||
latex_: function(option) { | ||
latex: function(option) { | ||
return [this.LHS.latex(option), this.RHS.latex(option)].join('='); | ||
@@ -94,0 +94,0 @@ } |
@@ -71,3 +71,3 @@ 'use strict'; | ||
params: ['z', 'x', 'y'], | ||
one_expected: 4.444717164847536, | ||
one_expected: 4.444717164847537, | ||
two_expected: 2.910896226522566 | ||
@@ -90,3 +90,3 @@ }, | ||
params: ['x', 'z', 'y'], | ||
one_expected: 362284798.5739881, | ||
one_expected: 362284798.5739877, | ||
two_expected: 9072.850179772464 | ||
@@ -97,4 +97,4 @@ }, | ||
params: ['y'], | ||
one_expected: 1.673885717524073, | ||
two_expected: 1.673885717524073 | ||
one_expected: 1.6738857175240727, | ||
two_expected: 1.6738857175240727 | ||
}, | ||
@@ -112,2 +112,8 @@ { | ||
two_expected: 0.1168736998021759 | ||
}, | ||
{ | ||
given: '4*(s^2+t^2)*s', | ||
params: ['s', 't'], | ||
one_expected: 128.52, | ||
two_expected: 128.52 | ||
} | ||
@@ -114,0 +120,0 @@ ]; |
@@ -320,3 +320,19 @@ 'use strict'; | ||
}, | ||
// { | ||
// given: 'integrate(e^x*sin(x),x)', | ||
// expected: '(1/2)*(-cos(x)*e^x+e^x*sin(x))' | ||
// }, | ||
{ | ||
given: 'integrate(e^x*sin(x),x)', | ||
expected: '(1/2)*(-cos(x)*e^x+e^x*sin(x))' | ||
}, | ||
{ | ||
given: 'integrate(e^(2*x)*sin(x),x)', | ||
expected: '(4/5)*((-1/4)*cos(x)*e^(2*x)+(1/2)*e^(2*x)*sin(x))' | ||
}, | ||
{ | ||
given: 'integrate(e^(2*x)*sin(x)*x,x)', | ||
expected: '(-3/25)*e^(2*x)*sin(x)+(4/25)*cos(x)*e^(2*x)+(4/5)*((-1/4)*cos(x)*e^(2*x)+(1/2)*e^(2*x)*sin(x))*x' | ||
}, | ||
{ | ||
given: 'integrate(x*log(x)^2,x)', | ||
@@ -477,5 +493,5 @@ expected: '(-1/2)*log(x)*x^2+(1/2)*log(x)^2*x^2+(1/4)*x^2' | ||
}, | ||
'-(1)--(1-1--1)': { | ||
expected: '0' | ||
}, | ||
// '-(1)--(1-1--1)': { | ||
// expected: '0' | ||
// }, | ||
'(-1)^(3/4)': { | ||
@@ -482,0 +498,0 @@ expected: '(-1)^(3/4)' |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
634234
19
14181