Error, final value in for loop must be numeric or character - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Home : Support : Online Help : Error, final value in for loop must be numeric or character

Error, final value in for loop must be numeric or character

 

Description

Examples

Description

The terminal condition in a for loop must be a numeric value, except when iterating over the letters in a string where a character is accepted.

Examples

Example 1

Note that  has no value.

 

Error, final value in for loop must be numeric or character

 

Solution:

Define to correct this error.

(2.1)

(2.2)

 

Example 2

In this example  is set to  where  has no value.

Error, (in G) final value in for loop must be numeric or character

 

Solution:

As with the previous example, define  to correct this error.

(2.3)

(2.4)

 

Example 3

Here is not initialized to a numeric value.

 

Error, final value in for loop must be numeric or character

 

Solution:

Initialize

(2.5)

(2.6)

See Also

loops

 


Download Help Document