diff options
Diffstat (limited to '575/CH11/EX11.1.2/11_1_2.sce')
-rwxr-xr-x | 575/CH11/EX11.1.2/11_1_2.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/575/CH11/EX11.1.2/11_1_2.sce b/575/CH11/EX11.1.2/11_1_2.sce new file mode 100755 index 000000000..8e449dbf9 --- /dev/null +++ b/575/CH11/EX11.1.2/11_1_2.sce @@ -0,0 +1,10 @@ +clc
+pathname=get_absolute_file_path('11_1_2.sce')
+filename=pathname+filesep()+'1112.sci'
+exec(filename)
+printf(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
+function [dv]=fun(t)
+ dv=(10^6)*exp(-t/100) -10^7
+endfunction
+[vol,err]=intg(0,60,fun) //intg is an inbuilt function which can calculate definite integrals
+printf(" \n Volume at the end of 60 days=%E",vol+v0)
\ No newline at end of file |