Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Current in a Purely Capacitive AC Circuit
- % Determines the RMS current in an AC circuit
- % Inputs and Variables
- omega = input('What is the angular frequency in rad/s?\n');
- DeltaVmax = input('What is the maximum voltage?\n');
- C = input('What is the capacitance ?\n');
- % Outputs and Equations
- Irms = DeltaVmax*omega*C/sqrt(2);
- fprintf('The RMS current is %.4e A\n', Irms)
- %{
- If given the angular frequency with respect to pi, the user must input
- value*pi ex. 122*pi
- %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement