summaryrefslogtreecommitdiff
path: root/3651/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3651/CH1/EX1.1/Ex1_1.sce')
-rw-r--r--3651/CH1/EX1.1/Ex1_1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3651/CH1/EX1.1/Ex1_1.sce b/3651/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..f53cbe59f
--- /dev/null
+++ b/3651/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,15 @@
+//Initialisation of variables
+clc
+//Variable declaration
+a=7.68*10**-29;
+r0=2.5*10**-10; //radius(m)
+
+//Calculation
+b=a*(r0**8)/9;
+y=((-2*a*r0**8)+(90*b))/r0**11;
+E=y/r0; //young's modulus(Pa)
+
+//Result
+
+printf('youngs modulus is %0.2f GPa',(E/10^9))
+