How to use the rotate function from mathjs
Find comprehensive JavaScript mathjs.rotate code examples handpicked from public code repositorys.
112 113 114 115 116 117 118 119 120 121 122
const thetas = Array(n) .fill() .map((_, i) => (i * da) / (n - 1)); return thetas .map((theta) => epicycloid(r0, k, theta)) .map((p) => math.rotate(p, a0)); } function epicycloid(r0, k, theta) { const kp1 = k + 1;
0
0
0
+ 6 other calls in file
mathjs.evaluate is the most popular function in mathjs (87200 examples)