summaryrefslogtreecommitdiff
path: root/3683/CH1/EX1.2/Ex1_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3683/CH1/EX1.2/Ex1_2.sce')
-rw-r--r--3683/CH1/EX1.2/Ex1_2.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3683/CH1/EX1.2/Ex1_2.sce b/3683/CH1/EX1.2/Ex1_2.sce
new file mode 100644
index 000000000..483b1dd7c
--- /dev/null
+++ b/3683/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,12 @@
+//let the depth of neutral axis be x
+b=150//width, in mm
+d=400//effective depth, in mm
+Ast=804//area of steel, in sq mm
+m=18.66//modular ratio
+//b(x^2)/2=mAst(d-x)-->this becomes a quadratic equation of form px^2+qx+r=0
+p=b/2
+q=m*Ast
+r=-m*Ast*d
+//solving the quadratic equation
+x=(-q+sqrt(q^2-4*p*r))/(2*p)//in mm
+mprintf("The depth of neutral axis = %f mm", x)