3
Parzi
10d

# i'm so desperate to get a demo effect working i've asked a math teacher a question which feels trivial but i can't crack how the FUCK do you stretch sine waves???

• 3
You mean decreasing the frequency?
• 1
• 3
@Parzi what's the problem then? (As in, more context)

Are you supposed to build a circuit for doing this or something?
• 1
@RememberMe no it's literally just "how the fuck do you do it"
• 6
You multiply it?

sin(angle) * stretch_amount

Think about what happens to x. It get further away, proportionately.
• 7
@AlgoRythm Pulling on both ends was also an acceptable answer.
• 3
You can strech in x direction by multiplying with x before feeding into the sin function and stretch in y direction by multiplying the result of the sin function. So yeah have fun.
• 4
@AlgoRythm that stretches it in the y direction, yes.

To stretch it in the x direction, if you have y = sin(x)

do y = sin(x/a)

Where a > 1
• 5
@Quirinus and if you do it in both directions, it's the same wave but bigger!

ðŸŒŠðŸŒŠðŸŒŠ
• 3
@AlgoRythm Who said maths isn't fun!