summaryrefslogtreecommitdiff
path: root/3863/CH1/EX1.2/Ex1_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3863/CH1/EX1.2/Ex1_2.sce')
-rw-r--r--3863/CH1/EX1.2/Ex1_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3863/CH1/EX1.2/Ex1_2.sce b/3863/CH1/EX1.2/Ex1_2.sce
new file mode 100644
index 000000000..c95c74ef3
--- /dev/null
+++ b/3863/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,14 @@
+clear
+//
+
+//Given
+//variable declaration
+P=4000 //Load in N
+sigma=95 //Stress in N/sq.mm
+
+//Calculation
+D=(sqrt(P/((%pi/4)*(sigma)))) //Diameter of steel wire in mm
+
+
+//Result
+printf("\n Diameter of a steel wire = %0.3f mm",D)