summaryrefslogtreecommitdiff
path: root/858/CH7/EX7.10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /858/CH7/EX7.10
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 '858/CH7/EX7.10')
-rwxr-xr-x858/CH7/EX7.10/example_10.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/858/CH7/EX7.10/example_10.sce b/858/CH7/EX7.10/example_10.sce
new file mode 100755
index 000000000..4942d297d
--- /dev/null
+++ b/858/CH7/EX7.10/example_10.sce
@@ -0,0 +1,18 @@
+clc
+clear
+printf("example 7.10 page number 316\n\n")
+
+//to find the % transformation
+moles_A = 3;
+moles_B = 5;
+K = 1;
+
+function[f] = F(x)
+ f = 15-8*x;
+endfunction
+
+//initial guess
+x = 10;
+y = fsolve(x,F);
+printf("amount of A transformed = %f percent",y*(100/3))
+