summaryrefslogtreecommitdiff
path: root/3648/CH18/EX18.5/Ex18_5.sce
blob: 872279f8a577271ff699f8bd09139ca759867bb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 18_5
clc();
clear;
//To find the magnetic moment of hydrogen atom
r=0.53*10^-10      //Units in meters
a=%pi*r^2       //Units in meters^2
q=1.6*10^-19          //Units in C
f=6.6*10^15        //Units in sec^-1
i=q*f          //Units in A
u=i*a          //Units in A meter^2
printf("The magnetic moment of Hydrogen atom is=")
disp(u)
printf("A meters^2")