summaryrefslogtreecommitdiff
path: root/3836/CH11/EX11.1/Ex11_1.sce
blob: 0a7fbef289e9a479eb8fe13ed4b35a1e2515ec4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//Initialisation
t=0.02                   //time period in seconds from diagram
v1=7                     //peak voltage from diagram


//Calculation
f=1*t**-1               //frequency in Hz
v2=2*v1                 // Peak to Peak Voltage

//Result
printf("\n Frequency = %d Hz\n",f)

printf("\n Peak to Peak Voltage = %d V\n",v2)