Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
fix issue #396
Browse files Browse the repository at this point in the history
  • Loading branch information
jiggzson committed Feb 21, 2018
1 parent 148be9e commit f23a29e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Calculus.js
Expand Up @@ -927,10 +927,13 @@ if((typeof module) !== 'undefined' && typeof nerdamer === 'undefined') {
}
}
else if(symbol.isComposite() && symbol.isLinear()) {
var m = _.parse(symbol.multiplier);
symbol.toUnitMultiplier();
retval = new Symbol(0);
symbol.each(function(x) {
retval = _.add(retval, __.integrate(x, dx, depth));
});
retval = _.multiply(m, retval);
}
else if(g === CP) {
if(symbol.power.greaterThan(1))
Expand Down Expand Up @@ -1880,4 +1883,4 @@ if((typeof module) !== 'undefined' && typeof nerdamer === 'undefined') {
]);
//link registered functions externally
nerdamer.api();
})();
})();

0 comments on commit f23a29e

Please sign in to comment.