summaryrefslogtreecommitdiff
path: root/3769/CH9/EX9.23/Ex9_23.sce
blob: 62cb4fe36b3bc458cf0dcca9f1d5ccc2612a5370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
m=0.3                //Kg
a=30                  //degree
B=0.15                //T
g=9.8                 //m/s**2

//Calculation
//
I=(m*g*tan(a*3.14/180.0))/B

//Result
printf("\n value of current is %0.2f  A",I)