summaryrefslogtreecommitdiff
path: root/608/CH14/EX14.06/14_06.sce
blob: ac5abb846f8b249cdcf48f9d4e28979ab88cf5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Problem 14.06: Calculate the rms value of a sinusoidal current of maximum value 20 A

//initializing the variables:
Imax = 20; // in Amperes

//calculation:
//for a sine wave
Irms = Imax/(2^0.5)

printf("\n\n Result \n\n") 
printf("\n Rms value = %.2f A\n",Irms)