summaryrefslogtreecommitdiff
path: root/3363/CH2/EX2.1/Ex2_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3363/CH2/EX2.1/Ex2_1.sce
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 '3363/CH2/EX2.1/Ex2_1.sce')
-rwxr-xr-x3363/CH2/EX2.1/Ex2_1.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3363/CH2/EX2.1/Ex2_1.sce b/3363/CH2/EX2.1/Ex2_1.sce
new file mode 100755
index 000000000..873b93004
--- /dev/null
+++ b/3363/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,8 @@
+//Example 2.1, page 47
+clc
+P=1//power in j/s
+r=10^-10//Radius in m^2
+R=(P*%pi*r^2)/(4*%pi)//Rate at which energy falls in J/sec
+R_e=3.4*10^-19//in Joule, rate at energy removed
+t=R_e/R
+printf("\n Time required for energy to clear is %e sec",t) \ No newline at end of file