blob: 81efa702e6333d25829fb7992441c2a1583e898a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh,Chapter 2,Example 1")
Tf=98.6;//temperature of body in farenheit
disp("degree celcius and farenheit are related as follows")
disp("Tc=(Tf-32)/1.8")
disp("so temperature of body in degree celcius")
Tc=(Tf-32)/1.8
|