Difference between revisions of "Error Messages/40603"
AManandhar (talk | contribs) (Created page with '= Error Message Examples = The offset in an expression of the form ident[Time-k], the Time position indicated is beyond the range of the Time index. = Cause = The value of t…') |
|||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Error message examples == | |
− | + | :<code>''The offset in an expression of the form ident[Time - k], the Time position indicated is beyond the range of the Time index.''</code> | |
− | + | == Cause == | |
− | + | The value of the offset, k, causes the [[Time]] index for the identifier to be outside the Time range. | |
− | |||
− | |||
− | |||
− | + | This following definition for the <code>Dynamic_node</code> will trigger this error: | |
+ | :<code>Time := 1..5;</code> | ||
+ | :<code>Dynamic_node := Dynamic(100, Dynamic_node[Time - 2]*0.9);</code> | ||
+ | ''Note'': At Time = 2 in the dynamic function, the [[Time]] position is not defined. | ||
− | < | + | == Remedies == |
+ | |||
+ | You can correct the value of the offset passed. | ||
+ | |||
+ | OR | ||
+ | |||
+ | You can pass in more initial values to the dynamic function. The following code would correct the erroneous code given above: | ||
+ | :<code>Time := 1..5;</code> | ||
+ | :<code>Dynamic_node := Dynamic(100, 90, Dynamic_node[Time - 2]*0.9);</code> | ||
+ | |||
+ | ==See Also== | ||
+ | * [[Dynamic]] | ||
+ | * [[Time]] | ||
+ | * [[Definition]] |
Latest revision as of 20:39, 15 March 2016
Error message examples
The offset in an expression of the form ident[Time - k], the Time position indicated is beyond the range of the Time index.
Cause
The value of the offset, k, causes the Time index for the identifier to be outside the Time range.
This following definition for the Dynamic_node
will trigger this error:
Time := 1..5;
Dynamic_node := Dynamic(100, Dynamic_node[Time - 2]*0.9);
Note: At Time = 2 in the dynamic function, the Time position is not defined.
Remedies
You can correct the value of the offset passed.
OR
You can pass in more initial values to the dynamic function. The following code would correct the erroneous code given above:
Time := 1..5;
Dynamic_node := Dynamic(100, 90, Dynamic_node[Time - 2]*0.9);
See Also
Comments
Enable comment auto-refresher