5
Kasus σ I. Untuk n=1 dan n’=2 ; for j=1:91; n=1; nab=2; x(j)=(j-1); theta(j)=(j-1)*pi/180; sinthetaab(j)=n/nab*sin(theta(j)); thetaab(j)=asin(sinthetaab(j)); taw(j)=(2*n*cos(theta(j)))/(n*cos(theta(j)) +nab*cos(thetaab(j))); rho(j)=-(n*cos(theta(j))-nab*cos(thetaab(j)))/ (n*cos(theta(j))+nab*cos(thetaab(j))); end plot(x,taw,x,rho)

Documentσ

  • Upload
    nanana

  • View
    4

  • Download
    2

Embed Size (px)

DESCRIPTION

no

Citation preview

Kasus I. Untuk n=1 dan n=2 ;

for j=1:91;n=1;nab=2;x(j)=(j-1);theta(j)=(j-1)*pi/180;sinthetaab(j)=n/nab*sin(theta(j));thetaab(j)=asin(sinthetaab(j));taw(j)=(2*n*cos(theta(j)))/(n*cos(theta(j))+nab*cos(thetaab(j)));rho(j)=-(n*cos(theta(j))-nab*cos(thetaab(j)))/(n*cos(theta(j))+nab*cos(thetaab(j)));endplot(x,taw,x,rho)

II. Untuk n=2 dan n=1 ;

for j=1:91;n=2;nab=1;x(j)=(j-1);theta(j)=(j-1)*pi/180;sinthetaab(j)=n/nab*sin(theta(j));thetaab(j)=asin(sinthetaab(j));taw(j)=(2*n*cos(theta(j)))/(n*cos(theta(j))+nab*cos(thetaab(j)));rho(j)=-(n*cos(theta(j))-nab*cos(thetaab(j)))/(n*cos(theta(j))+nab*cos(thetaab(j)));endplot(x,taw,x,rho)

Kasus

I. Untuk n=1 dan n=2 :

for j=1:91;n=1;nab=2;x(j)=(j-1);theta(j)=(j-1)*pi/180;sinthetaab(j)=n/nab*sin(theta(j));thetaab(j)=asin(sinthetaab(j));taw(j)=(2*n*cos(theta(j)))/(n*cos(thetaab(j))+nab*cos(theta(j)));rho(j)=-(nab*cos(theta(j))-n*cos(thetaab(j)))/(n*cos(thetaab(j))+nab*cos(theta(j)));endplot(x,taw,x,rho)

II. Untuk n=2 dan n=1 :

for j=1:91;n=2;nab=1;x(j)=(j-1);theta(j)=(j-1)*pi/180;sinthetaab(j)=n/nab*sin(theta(j));thetaab(j)=asin(sinthetaab(j));taw(j)=(2*n*cos(theta(j)))/(n*cos(thetaab(j))+nab*cos(theta(j)));rho(j)=-(nab*cos(theta(j))-n*cos(thetaab(j)))/(n*cos(thetaab(j))+nab*cos(theta(j)));endplot(x,taw,x,rho)