imagine-node
Advanced tools
Comparing version 1.0.0 to 1.0.1
11
index.js
@@ -234,7 +234,8 @@ const { PI } = Math; | ||
const roots = new Array(n); | ||
return roots.map((item, index) => new Complex( | ||
norm * Math.cos(theta + Pi2 * index / n), | ||
norm * Math.sin(theta + Pi2 * index / n) | ||
)); | ||
return new Array(n) | ||
.fill(0) | ||
.map((item, index) => new Complex( | ||
norm * Math.cos(theta + Pi2 * index / n), | ||
norm * Math.sin(theta + Pi2 * index / n) | ||
)); | ||
} | ||
@@ -241,0 +242,0 @@ |
{ | ||
"name": "imagine-node", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "node module to work with complex numbers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
33135
756