summaryrefslogtreecommitdiff
path: root/3769/CH13/EX13.1/Ex13_1.sce
blob: 32cea3448bfb06c2568e0d4a1206dfa984d2f325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//Given
I0=141.4                    //A
w=314
t=3*10**-3                         //s

//Calculation
//
f=w/(2*%pi)
T=1/f
I=-I0*t*sin(314*180/3.14)

//Result
printf("\n (i) The maximum value is %0.3f  A",I0)
printf("\n (ii) Frequency is %0.0f  Hz",f)
printf("\n (iii) Time period is %0.2f  S",T)
printf("\n (iv) The instantaneous value is %0.2f  A",I*10**3)