summaryrefslogtreecommitdiff
path: root/1538/CH17/EX17.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1538/CH17/EX17.4
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1538/CH17/EX17.4')
-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)