summaryrefslogtreecommitdiff
path: root/1322/CH24/EX24.10/214ex4.sce
blob: 6196438cd6e01a25feb0f13265b25712239f0d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

//3rd term of G.P is 4.5 and 9th is 16.2
clear;
clc;
close;
// nth term=a*r^(n-1)
term3=4.5;//given data
//'a*r^(3-1)=4.5  ---equ(1)'
term9=16.2;//given
//'a*r^(9-1)=16.2 ---equ(2)'
mprintf("\n the common ratio is :\n");
format(7)
r=(16.2/4.5)^(1/6)//equ(2)/equ(1)