summaryrefslogtreecommitdiff
path: root/1322/CH24/EX24.8
diff options
context:
space:
mode:
Diffstat (limited to '1322/CH24/EX24.8')
-rwxr-xr-x1322/CH24/EX24.8/214ex2.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1322/CH24/EX24.8/214ex2.sce b/1322/CH24/EX24.8/214ex2.sce
new file mode 100755
index 000000000..fbb9fbd71
--- /dev/null
+++ b/1322/CH24/EX24.8/214ex2.sce
@@ -0,0 +1,10 @@
+
+//8th term of the series 2,-6,18,-54,......
+clear;
+clc;
+close;
+//in the series r=-3, so using the formula
+// nth term=a*r^(n-1)
+a=2;n=8;//given data
+term8=2*(-3)^(8-1);
+mprintf("\n the eighth term of the series is %i",term8)