summaryrefslogtreecommitdiff
path: root/3850/CH36/EX36.4/Ex36_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3850/CH36/EX36.4/Ex36_4.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3850/CH36/EX36.4/Ex36_4.sce')
-rw-r--r--3850/CH36/EX36.4/Ex36_4.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3850/CH36/EX36.4/Ex36_4.sce b/3850/CH36/EX36.4/Ex36_4.sce
new file mode 100644
index 000000000..9cfcb8138
--- /dev/null
+++ b/3850/CH36/EX36.4/Ex36_4.sce
@@ -0,0 +1,24 @@
+
+//To Find the Magnetic Field due to Magnetic Dipole
+
+//Example 36.4
+
+clear;
+
+clc;
+
+M=1.2;//Magnetic Moment of the Dipole in A-m^2
+
+r=1;//Distance of point P from Magnetic Pole in metres
+
+theta=%pi/3;//Angle made by given point with the Dipole Axis in radians
+
+k=1*10^-7;//Constant (u0/(4*pi))
+
+B=k*M*sqrt(1+3*(cos(theta))^2)/(r)^3;//Magnitude of Magnetic Field at the Given Point in Tesla
+
+printf("Magnitude of Magnetic field at a point 1 metre from the Magnetic Dipole = %.1f*10^-7 T",B*10^7);
+
+alpha=atan(tan(theta)/2)*180/%pi;//Angle made by magnetic field with the radial line
+
+printf("\n Magnetic field makes an angle %.2f degrees with the radial line",alpha);