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?
Show a friend, family member, or teacher what you've done!
Here is a share link to your code:
Does your code work? Want to run it on your iPhone?
Here's your code:
Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.
Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into
Then click the "Use on iPhone" button that you'll see.