We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 516acad commit b436b8aCopy full SHA for b436b8a
src/data/examples/zh-Hans/08_Math/07_additivewave.js
@@ -48,7 +48,7 @@ function calcWave() {
48
for (let j = 0; j < maxwaves; j++) {
49
let x = theta;
50
for (let i = 0; i < yvalues.length; i++) {
51
- // 接下来的所有波都是余弦,而非正弦
+ // 正弦余弦交替
52
if (j % 2 === 0) yvalues[i] += sin(x) * amplitude[j];
53
else yvalues[i] += cos(x) * amplitude[j];
54
x += dx[j];
0 commit comments