summaryrefslogtreecommitdiff
path: root/3588/CH7/EX7.2/EX7_2.sce
blob: b6f74487511b61af3fdc4fa269a05b1adcfcb908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Clearing console
clc
clear

//Intializing Variables
T1 = 95.14
T2 = 90.14
T3 = 85.14

//Calculating a2
a2 = 2*T1 - 4*T2 +2*T3

//Printing Results
printf('\nResults\n')
printf('\na2=%f',a2)