summaryrefslogtreecommitdiff
path: root/2702/CH1/EX1.3/Ex_1_3.sce
blob: 91fab23b29dfd61a95d55f7e13254777545016bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Exa 1.3
clc;
clear;
close;
// Given data
G=-10;
Ri= 100;// in kohm
R1= Ri;// in kohm
R1=R1*10^3;// in ohm
// Formula G=-R2/R1
R2= R1*abs(G);// ohm
disp(R1*10^-3,"Value of R1 in kohm is : ")
disp(R2*10^-6,"and value of R2 in Mohm is : ")