Answers: 1.1 Code
Answers: 1.1 Code
Answers: 1.1 Code
Question 1:
1.1 Code
1.2 Results
Value of int_final is the final result of integral i.e 1.6165e+02
intc1 =
61.935363086095052
intc2 =
99.716422985741730
Integration of f(x)
int_final =
1.616517860718368e+02
The plots of f(x) is shown above
Question 2:
2.1: Code
%% Initialise
% Converting the inputs to base units
clear all;clc;
L = 0.3 * 10^-3;
C = 0.2 * 10^-9;
R = 30;
Vo = 5*10^-3;
%% Frequency
f = 0.01:5:1000;
w = 2.*pi.* f;
%% RMS Calculation (R =30 ohm)
Vrms = (30 ./ sqrt(30.*30+(w.*L-1./w.*C).^2)).* Vo;
%% Plot
hold on;
plot(f,Vrms,'--');
title("Relation Between Vrms,f for different values of R");
xlabel("Frequency in Hz");
ylabel("RMS Voltage");
legend("R =30 Ohm");
%% RMS Calculation (R =30 ohm)
Vrms1 = (120 ./ sqrt(120.*120+(w.*L-1./w.*C).^2)).* Vo;
plot(f,Vrms1);
hold off;
legend("R =30 Ohm","R =120 Ohm");
%%
From the plot we can say that the Frequency tends to increase if RMS Value goes on decreasing. And
the rate at which frequency increases is dependent on the value of resistance.
Question 3:
3.1: Model
Output -> y