summaryrefslogtreecommitdiff
path: root/3718/CH3/EX3.1/Ex3_1.sce
blob: 654db409a5f16804e6f44a05fbae0a1522149537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Chapter 3: Thermodynamic and Chemical Equilibrium
//Problem: 1
clc;

//Declaration of Variables
q = 120       // Heat from surrounding, cal
W = 70        // Work done, cal

// Solution
delta_E = q - W

mprintf("Change in Internal Energy :%d cals", delta_E)