blob: 174290ccf78a7abd64c966f68ecdc1fcf40ac5b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear//
//Variables
I = 250 * 10**-3 //Current (in Ampere)
R = 1.5 * 10**3 //Resistance (in ohm)
//Calculation
Vs = I * R //Source voltage (in volts)
I1 = 0.75 * I //New current (in Ampere)
R1 = Vs / I1 //New Resistance (in ohm)
R2 = R1 - R //Resistance to be added (in ohm)
//Result
printf("\n %0.3f ohm Resistance must be added in order to accomplish the reduction in current.",R2)
|