diff options
Diffstat (limited to '24/CH30')
-rwxr-xr-x | 24/CH30/EX30.2/Example30_2.sce | 17 | ||||
-rwxr-xr-x | 24/CH30/EX30.2/Example30_2_result.txt | 3 | ||||
-rwxr-xr-x | 24/CH30/EX30.3/Example30_3.sce | 15 | ||||
-rwxr-xr-x | 24/CH30/EX30.3/Example30_3_result.txt | 2 | ||||
-rwxr-xr-x | 24/CH30/EX30.4/Example30_4.sce | 11 | ||||
-rwxr-xr-x | 24/CH30/EX30.4/Example30_4_result.txt | 2 |
6 files changed, 50 insertions, 0 deletions
diff --git a/24/CH30/EX30.2/Example30_2.sce b/24/CH30/EX30.2/Example30_2.sce new file mode 100755 index 000000000..dbbc2c155 --- /dev/null +++ b/24/CH30/EX30.2/Example30_2.sce @@ -0,0 +1,17 @@ +exec('degree_rad.sci', -1)
+
+//Given that
+i1 = 15 //in A
+i2 = 32 //in A
+d = 5.3*10^-2 //in m
+uo = 4*%pi*10^-7 //in SI unit
+
+//Sample Problem 30-2
+printf("**Sample Problem 30-2**\n")
+R = d/sqrt(2)
+B1 = uo*i1/(2*%pi*R)
+B2 = uo*i2/(2*%pi*R)
+theta = atan(B1/B2)
+B = sqrt(B1^2 + B2^2)
+printf("The magnitude of net magnetic field is %eT\n", B)
+printf("The angle made by the net magnetic field by the positive x-axis is %fdegrees", rtod(theta)+45)
\ No newline at end of file diff --git a/24/CH30/EX30.2/Example30_2_result.txt b/24/CH30/EX30.2/Example30_2_result.txt new file mode 100755 index 000000000..44e529aba --- /dev/null +++ b/24/CH30/EX30.2/Example30_2_result.txt @@ -0,0 +1,3 @@ +**Sample Problem 30-2**
+The magnitude of net magnetic field is 1.886038e-004T
+The angle made by the net magnetic field by the positive x-axis is 70.114835degrees
\ No newline at end of file diff --git a/24/CH30/EX30.3/Example30_3.sce b/24/CH30/EX30.3/Example30_3.sce new file mode 100755 index 000000000..7d13dc4ba --- /dev/null +++ b/24/CH30/EX30.3/Example30_3.sce @@ -0,0 +1,15 @@ +//Given that
+a = 2*10^-2 //in meter
+b = 4*10^-2 //in meter
+r = 3*10^-2 //in meter
+c = 3*10^6 //in A/m^4
+uo = 4*%pi*10^-7 //in SI unit
+
+//Sample Problem 30-3
+printf("**Sample Problem 30-3**\n")
+//Using gauss law
+//B*L = uo*I
+Ienc = integrate('c*x^2*2*%pi*x', 'x', a, r)
+L = 2*%pi*r
+B = uo*Ienc/L
+printf("The magnetic field at x=r is %eT", B)
\ No newline at end of file diff --git a/24/CH30/EX30.3/Example30_3_result.txt b/24/CH30/EX30.3/Example30_3_result.txt new file mode 100755 index 000000000..d3d4928ce --- /dev/null +++ b/24/CH30/EX30.3/Example30_3_result.txt @@ -0,0 +1,2 @@ +**Sample Problem 30-3**
+The magnetic field at x=r is 2.042035e-005T
\ No newline at end of file diff --git a/24/CH30/EX30.4/Example30_4.sce b/24/CH30/EX30.4/Example30_4.sce new file mode 100755 index 000000000..9bae95a97 --- /dev/null +++ b/24/CH30/EX30.4/Example30_4.sce @@ -0,0 +1,11 @@ +//Given that
+L = 1.23 //in meter
+d = 3.55*10^-2 //in meter
+i = 5.57 //in A
+n = 850*5
+uo = 4*%pi*10^-7 //in SI unit
+
+//Sample Problem 30-4
+printf("**Sample Problem 30-4**\n")
+B = uo*n/L*i
+printf("The magnetic field inside the solenoid is %eT", B)
\ No newline at end of file diff --git a/24/CH30/EX30.4/Example30_4_result.txt b/24/CH30/EX30.4/Example30_4_result.txt new file mode 100755 index 000000000..cdb58abc6 --- /dev/null +++ b/24/CH30/EX30.4/Example30_4_result.txt @@ -0,0 +1,2 @@ +**Sample Problem 30-4**
+The magnetic field inside the solenoid is 2.418516e-002T
\ No newline at end of file |