Hello maple prime users
I have used the sequence command and series command in Maple before, but seem to have hit a little hurdle with a particular problem.
I want to run the expression:
Where N(a):=(-1)^n*[evalf(ln(2)) - 1 + 0.5 -1/3 + 1/4 +... + (-1)^a/a]:
I ran a test case using the following code:
for n from 0 to c do
This works for the case where a =1, but will not work for a>1 as in the N(a+n) sequence it misses out the terms in the series for a-1, a-2 etc.... So when a = 2 it misses out the -1 of the sequence and when a = 3 it misses out the -1 and 1/2. Are there any tips on how to overcome this?