summaryrefslogtreecommitdiff
path: root/3850/CH34/EX34.2/Ex34_2.sce
blob: 29b4c555b306d89dcf71b97d7baa793779021057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

//To calculate the Time Period

//Example 34.2

clear;

clc;

m=10*10^-6;//Mass of the particle in kg

q=100*10^-6;//Charge of the particle in Coloumbs

B=25*10^-3;//Magnetic Field Strength in Tesla

T=2*%pi*m/(q*B);//Time Period in seconds

printf("Time Period of the charge = %d seconds",T);