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


//Calculation
f1=1*t**-1               //frequency in Hz
w1=2*%pi*f1          //Angular velocity

//Result
printf("\n %d sin %.1ft Hz\n",v1,w1)