#hello everyone!

15 messages · Page 1 of 1 (latest)

oblique thorn
#

i once again need help for python using matplotlib and py 🙂

basically i need to show 3 sine waves with 30hz, 60hz and 120hz. all with same amplitude

the worst thing is that we only had watched yt vids about all of this matplotlib stuff and i have no idea how does all of this works.

hope you guys can help:))

#

i should make a narrower wave, and a relatively wider wave but i have no clue how does those things work in general

quaint zodiac
#

Do you know how sine waves work and the general formula for sine curves?

oblique thorn
#

slr

#

my prof said it was more of a frequency stuff and i do know the formula for frequency and amplitude and stuff

quaint zodiac
#

If you know the formula then it should be easy to change the frequency of the waves

oblique thorn
#

i finally got it :)))))))

#

btws do you know any sort of code that would make this simpler ?

quaint zodiac
#

Yes

#

You don't need to keep creating the same linspace

#

Just use one for all of them

#

Same with other variables

#

Just hardcode them

oblique thorn
#

sorry for the late ass reply! thanks again for helping wang!!!! really appreciate it have a good dayyyyy