summaryrefslogtreecommitdiff
path: root/3809/CH1/EX1.3/EX1_3.sce
blob: f9eb2e0fe2ba936a2612dc997c6041b4b1c178c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Chapter 1, Example 1.3

clc
//Initialisation
v2=7                                  //voltage
e=12                                  //emf

//Calculation
v1=e-v2                                  //voltage

//Results
printf("Voltage, V = %.1f V",v1)