summaryrefslogtreecommitdiff
path: root/3636/CH11/EX11.7/Ex11_7.sce
blob: 769cae52bcc0458066657990a9fd2a3fb9c8a466 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear;
clc;
VBB=24 //in V
r1=3 //in k-ohm
r2=5 //in k-ohm

//Calculation
n=r1/(r1+r2)
VP=(n*VBB)+0.7

mprintf("peak-point voltage= %1.1f V",VP)