summaryrefslogtreecommitdiff
path: root/3809/CH2/EX2.3/EX2_3.sce
blob: 837e39491ddfac220d8977136c61897e1c6f3bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter 2, Example 2.3
clc
//Initialisation
vp=10                        //voltage
f=10                         //frequency in hertz
pi=3.14                      //pi
phi=90                        //phase angle

//Calculation
w=2*pi*f                      //angular frequency



//Results
printf("%d sin( %d t - %d)",vp,round(w),phi)