diff options
Diffstat (limited to '2510/CH9/EX9.2')
-rwxr-xr-x | 2510/CH9/EX9.2/Ex9_2.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2510/CH9/EX9.2/Ex9_2.sce b/2510/CH9/EX9.2/Ex9_2.sce new file mode 100755 index 000000000..77b5d1425 --- /dev/null +++ b/2510/CH9/EX9.2/Ex9_2.sce @@ -0,0 +1,14 @@ +//Variable declaration: +//From example 9.1: +R = 0.0398 //Theral resistance (°F.h/Btu) +Btu = 3.412 //Btu/h in a watt +C = 1.8 //Change in degree fahrenheit for a degree change in celsius +K = 1 //Change in degree celsius for a unit change in Kelvin + +//Calculation: +Rc = R*Btu/C //Thermal resistance in degree cesius per watt (°C/W) +Rk = Rc/K //Thermal resistance in Kelvin per watt (K/W) + +//Result: +printf("The thermal resistance in °C/W is : %.3f °C/W.",Rc) +printf("The thermal resistance in K/W is : %.3f K/W.",Rk) |