blob: 754b0f39b5bad090c117164a3eb83aaaaefb8ad7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear//
//Variables
I1 = 0.5 * 10**-3 //Diode current1 (in Ampere)
V1 = 340 * 10**-3 //Voltage1 (in volts)
I2 = 15 * 10**-3 //Diode current2 (in Ampere)
V2 = 440 * 10**-3 //Voltage2 (in volts)
//Calculation
n = 4/log(30) //By solving both the given equations
//Result
printf("\n Value of n is %0.2f .",n)
|