Skip to content

Commit b436b8a

Browse files
authored
Update 07_additivewave.js
1 parent 516acad commit b436b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/examples/zh-Hans/08_Math/07_additivewave.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function calcWave() {
4848
for (let j = 0; j < maxwaves; j++) {
4949
let x = theta;
5050
for (let i = 0; i < yvalues.length; i++) {
51-
// 接下来的所有波都是余弦,而非正弦
51+
// 正弦余弦交替
5252
if (j % 2 === 0) yvalues[i] += sin(x) * amplitude[j];
5353
else yvalues[i] += cos(x) * amplitude[j];
5454
x += dx[j];

0 commit comments

Comments
 (0)