summaryrefslogtreecommitdiff
path: root/1511/CH2/EX2.42/ex2_42.sce
blob: 35330439f8da9351dcc81fced6188b71f3e1510f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Example 2.42 page no-128
clear
clc

V=30 //V
R=2000 //Ohm
I=V/R
Iz=0.025 //A
It=Iz+I
Rs=200
Vmax=V+Rs*It
printf("Vrmax = %d V",Vmax)