summaryrefslogtreecommitdiff
path: root/2510/CH15/EX15.10/Ex15_10.sce
blob: 744313fa8960bbcb2591d63d1f6bfd67c8e6d011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Variable declaration:
MC = 2000.0     
mc = 1000.0
U = 2000.0
A = 10.0
T1 = 300.0
t1 = 60.0
e = %e

//Calculation:
B = 1.0/mc 
b = 1.0/MC
x = B/b
y = U*(B-b)
T2 = ((x-y)*T1 + x*(e-y)*t1)/(2*e-1)
t2 = t1+(T1-T2)/x

//Result:
printf("T2 = : %.0f ",T2)
printf("t2 = : %.0f ",t2)