summaryrefslogtreecommitdiff
path: root/1094/CH3/EX3.2.1/EX3_2_1.sce
blob: 7c7c6780e527c4edce2e86cec474f29cd89a3caa (plain)
1
2
3
4
5
6
7
8
9
10
11
//EXA.3.2.1
clc;
clear;
close;
//refer to figure3.2.2
theta=30 //angle of inclination    
B=.8 //magnetic field (in T)
I=10 //current (in A)
L=2 //length of conductor(in m)
F=B*I*L*sind(theta)
disp(F, 'force on conductor (in N)=')