diff options
Diffstat (limited to '24/CH40/EX40.3/Example40_3.sce')
-rwxr-xr-x | 24/CH40/EX40.3/Example40_3.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/24/CH40/EX40.3/Example40_3.sce b/24/CH40/EX40.3/Example40_3.sce new file mode 100755 index 000000000..3b3cf0196 --- /dev/null +++ b/24/CH40/EX40.3/Example40_3.sce @@ -0,0 +1,12 @@ +//Given that
+L = 100*10^-12 //in m
+
+//Sample Problem 40-3a
+printf("**Sample Prblem 40-3a**\n")
+P = integrate('2/L*(sin(%pi/L*x))^2', 'x', 0, L/3)
+printf("The probability is equal to %1.2f\n", P)
+
+//Sample Problem 40-3b
+printf("\n**Sample Prblem 40-3b**\n")
+P = integrate('2/L*(sin(%pi/L*x))^2', 'x', L/3, 2*L/3)
+printf("The probability is equal to %1.2f\n", P)
\ No newline at end of file |