blob: d008291cfe1c60ddc7eb19b522af1e59929d7c38 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clear
//
i=20
im=i/(1.414) //that is i*root 2
//the heat produced by i is the sum of heat produced by dc and ac current
p=i**2
q=im**2
r=p+q
I=(r**0.5)
printf("\n I= %0.1f A",I)
|