Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

NAMA : PESTA INDRA SIGALINGGING

NIM : 20217317
PRODI : FISIKA (S2)

%menghitung T dan R
%clear all
clc
x=linspace(0,90,1000);
n=1.5;
%menghitung T
a=sqrt(n^2-sind(x).^2)./cosd(x);
b=2*n*cosd(x);
c=n^2*cosd(x)+sqrt(n^2-sind(x).^2);
d=b./c;
D=d.^2;
T=real(a.*D);
plot(x,T,'-r','linewidth',3);
hold on
grid on
%menghitung R
d=n^2*cosd(x)-sqrt(n^2-sind(x).^2);
e=n^2*cosd(x)+sqrt(n^2-sind(x).^2);
rp=real(d./e);
R=real(rp.^2);
plot(x,R,'-b','linewidth',3);
xlabel('Angle of incident')
ylabel('R and T coefficients')
hold on;
title('R dan T Coefficients')

Hasil Plotting

Elektrodinamika 1 Pesta Indra Sigalingging

You might also like