blob: 015bb67c2dc08aa8d7313544c5b0ceb50a338e5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
clc
disp("exanple7.1")
pow=100*10^6
calv=6400
threff=0.3
elceff=0.92
kcal=0.239*10^-3
eo=pow*3600
ei=eo/(threff*elceff)
eikc=ei*kcal
colreq=eikc/6400
printf("energy output in 1 hour is %eWatt.sec ",eo);
printf("\nenergy input in one hour is %ejoules Watt.sec\n",ei)
printf(" energy input in 1 hour is %ekcal.",eikc);
printf("\n coal required is %.3fkg per hour",colreq);
|