summaryrefslogtreecommitdiff
path: root/1322/CH24/EX24.11/217ex1.sce
blob: 226a37be7bfe05cb8c271d57df2e5d4338c8fe81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

//sum of 7 terms of the series 2,3,4,5,....
clear;
clc;
close;
r=3/2;a=2;n=7;//given
//using the formula
S=string('a*(r^(n)-1)/(r-1)')
disp("substituting the given values ")
format(6)
Sum=evstr(S)