summaryrefslogtreecommitdiff
path: root/1538/CH17/EX17.4/Ex17_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1538/CH17/EX17.4/Ex17_4.sce')
-rwxr-xr-x1538/CH17/EX17.4/Ex17_4.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1538/CH17/EX17.4/Ex17_4.sce b/1538/CH17/EX17.4/Ex17_4.sce
new file mode 100755
index 000000000..9072cc4d5
--- /dev/null
+++ b/1538/CH17/EX17.4/Ex17_4.sce
@@ -0,0 +1,16 @@
+//example-17.4
+//page no-526
+//given
+//one mole of magnesium weighs
+MMg=0.0243 //Kg
+//current density
+I=20*10^-3 //A/m^2
+//design life of 15 years
+t=15*365*24*3600 //sec
+//charge= 2 faradya
+Q=2*96490 //C
+//charge needed per m^2 of structure's for design life
+q=I*t //A s
+//the amount of magnesium needed
+AMg=MMg*q/Q //kg/m^2
+printf("the amount of magnesiun meeded is %f kg/m?^2",AMg)