You will write four small functions about an alternating voltage. They use and .
The idea. A sine wave of peak value has an rms value of . In general, the rms value of any list of values is the root of the mean of their squares.
Your tasks.
rms_from_peak, return the rms value of a sine wave with the given peak value.angular_frequency, return in rad/s for a frequency f in Hz.instant, return the value at the time t, in s, of a sine wave with the given peak value and frequency.rms_of_samples, return the rms value of a list of values. Square each one, take the mean, then the root.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…
With Standard, you also open 11 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.