Message Boards Message Boards

0
|
8459 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

The expression 1+n cannot be used as a part specification.

Posted 4 years ago

I get a correct result, but there are some error messages displayed. What should I do to repair them? enter image description here

POSTED BY: xianyao huao

Hi Xianyao,

I suggest that you write your code instead of uploading a picture of it, possibly a reduced version of it, just to reproduce the error.

The problem might be that the value n is probably a symbolic value used by RecurrenceTable, you can't assume that it is an integer or something you can use for indexing unless it's clearly stated the data structure being used.

Also, not related to your problem, the initial values should a[1],b[1].

Cheers!

POSTED BY: Francesco Lasco
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract