Defining a sequence

Defining a sequence - Messages

#1 Posted: 10/31/2013 5:08:28 AM
Zai

Zai

0 likes in 1 posts.

Group: User

I'm trying to define a sequence, but I think I'm doing it wrong.

a:=1..15

L_1:=4
L_a:=L_(a-1)+1

This in my mind defines a sequence, starting with 4 and incrementing by 1 for 15 steps. I keep getting 'Requested Matrix Element does not exist'.

What am I doing wrong? Cheers.
#2 Posted: 10/31/2013 7:21:29 AM
mb10

mb10

9 likes in 20 posts.

Group: User

Wrote

I'm trying to define a sequence, but I think I'm doing it wrong.

a:=1..15

L_1:=4
L_a:=L_(a-1)+1

This in my mind defines a sequence, starting with 4 and incrementing by 1 for 15 steps. I keep getting 'Requested Matrix Element does not exist'.

What am I doing wrong? Cheers.


You can use a for loop:



loop.JPG
  • New Posts New Posts
  • No New Posts No New Posts