Comparing version 0.2.3 to 0.2.5
{ | ||
"name": "labs-core", | ||
"version": "0.2.3", | ||
"version": "0.2.5", | ||
"description": "Core classes to Labs : expression, dimensions, multipliers, et cetera.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -11,10 +11,10 @@ const Exp = require('./exp-base'); | ||
if (this.isLiteral()) { | ||
return literal(0); | ||
return Exp.literal(0); | ||
} else if (this.isIdentifier()) { | ||
return this.name === dLiteral ? literal(1) : literal(0); | ||
return this.name === dLiteral ? Exp.literal(1) : Exp.literal(0); | ||
} else { | ||
var der = DERIVATIVES[this.fn], | ||
args = this.args; | ||
return call('+', args.map(function(arg, i) { | ||
return call('*', [der(args, i), arg.derivative(dLiteral)]); | ||
return Exp.call('+', args.map(function(arg, i) { | ||
return Exp.call('*', [der(args, i), arg.derivative(dLiteral)]); | ||
})); | ||
@@ -21,0 +21,0 @@ } |
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
29408
12
707