Here is a graphical version that proves that $\sin^2(x)+\cos^2(x)=1$. We did a textual version
of this in a past lesson. This one allows you to really see the behavior of the
sine vs the cosine and see how they add after each is squared.
Now you try. Try fixing the A= and f= statements. Can you see the graphical verification of $\sin^2(x)+\cos^2(x)$?
Type your code here:
See your results here:
This code will not run. You have to choose a value for $A$ and $f$, the amplitude and frequency. We'd recommend starting with $A=50$, $f=0.01$.
Can you do it?
Share your code
Show a friend, family member, or teacher what you've done!