File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ def wave(t):
415
415
# This wave is build up as follows:
416
416
# The time is split into 2*ripples phases. In every phase the amplitude
417
417
# either rises to one or goes down to zero. Consecutive ripples will have
418
- # their amplitudes in oppising directions (first ripple from 0 to 1 to 0,
418
+ # their amplitudes in opposing directions (first ripple from 0 to 1 to 0,
419
419
# second from 0 to -1 to 0 and so on). This is how two ripples would be
420
420
# divided into phases:
421
421
@@ -454,7 +454,7 @@ def wave(t):
454
454
return wave_func (t * phases )
455
455
elif phase == phases - 1 :
456
456
# last ripple. Rising or falling depending on the number of ripples
457
- # The (ripples % 2)-term is used to make this destinction .
457
+ # The (ripples % 2)-term is used to make this distinction .
458
458
t -= phase / phases # Time relative to the phase
459
459
return (1 - wave_func (t * phases )) * (2 * (ripples % 2 ) - 1 )
460
460
else :
You can’t perform that action at this time.
0 commit comments