Error Messages/40866

< Error Messages
Revision as of 01:11, 6 February 2010 by AManandhar (talk | contribs) (Created page with '= Error Message Examples = The «step» size in Function Sequence must be positive (even for a decreasing sequence). Alternatively, you can add the optional parameter, strict:…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Error Message Examples

The «step» size in Function Sequence must be positive (even for a decreasing sequence).
Alternatively, you can add the optional parameter, strict:True, to Sequence to allow a
negative step size and honor its sign

Cause

You have passed a negative value as the step parameter to the Sequence function without specifying the strict parameter to be true. You need to specify the strict parameter to be true to pass a negative value for the step parameter. Passing a positive number will still work for a decreasing sequence.

Both of the following call to Sequence will produce a decreasing sequence from 99 to 1.

Sequence( 99, 1, 1);

Sequence(99, 1, -1, strict: true);


Remedies

Either specify the strict parameter to be true or pass a positive value to the step parameter.



You are not allowed to post comments.

Comments
<comments />