summaryrefslogtreecommitdiff
path: root/2498/CH6/EX6.6/ex6_6.sce
blob: b5a0d02fbfb6677e06b9af488bef4252b878dc94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Exa 6.6
clc;
clear;
close;
format('v',6)
// Given data
R1 = 20;// in k ohm
R_F = 300;// in k ohm
Vin = 1.25;// in V
// Ao = Vo/Vin = -R_F/R1;
Ao = -R_F/R1;
// Output voltage,
Vo = Ao*Vin;// in V
disp(Vo,"The output voltage in V is");