blob: 7121fac8550654b5440c6369eef0b3b701fd7a96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear//
//Variables
R = 750.0 //Resistance (in ohm)
I = 32.0 //Current (in milliAmpere)
//Calculation
P = I**2 * 10**-6 * R //Power (in watt)
//Result
printf("\n Power consumed by relay coil is %0.3f mW.",P*1000)
|