blob: 564177a986005a00f50fc2aba412f8e263cbbd45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear//
//Variables
I300 = 10 * 10**-6 //Current at 300 kelvin (in Ampere)
T1 = 300 //Temperature (in kelvin)
T2 = 400 //Temperature (in kelvin)
//Calculation
I400 = I300 * 2**((T2-T1)/10) //Current at 400 kelvin (in Ampere)
//Result
printf("\n Current at 400 k is %0.1f mA.",I400*10**3)
|