copperzinc

40 Reputation

4 Badges

19 years, 182 days

MaplePrimes Activity


These are questions asked by copperzinc

Hey guys,

  Now I'm encountering another problem. I'm trying to assign a[n] as:

a[1]=1

a[n]=a[n-1]+1/2^(n-1)

I tried the following:

a:=[1, seq(a[n-1]+1/2^(n-1),n=2..10);

The result is "Recursive error".

The problem is this is a good recursive. Maple seems to simply not recognize recursive input at all.

I tried another way:

a[1]:=1

a:=[seq(a[n-1]+1/2^(n-1),n=2..10);

Result is the same.

I tried another way

a[1]:=1

a[n]:=[seq(a[n-1]+1/2^(n-1),n=2..10]

I'm interested in finding a command that could stretch slope fields for me. Or perhaps I need to make a procedure of my own?

If that is the case, I would like to know how to draw a segment of a graph by varying the slope.

I think it is possible for me to use

with(geometry);

segment([y=y'*x+C, [x,y]],a,b);

But I don't have any idea how to make a program out of it yet.

 

Thanks in advance :)

Page 1 of 1