blob: 5e466c2a8fa382b83c7d836943286d0d0f0fa5ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear;
clc;
funcprot(0);
//given data
a_ = 1/3;
//Calculations
R2_R1 = 1/(1-a_)^0.5;
R3_R1 = 1/(1-2*a_)^0.5;
R3_R2 = ((1-a_)/(1-2*a_))^0.5;
//Results
printf('R2/R1 = %.3f\n R3/R1 = %.3f\n R3/R2 = %.3f',R2_R1,R3_R1,R3_R2);
|