Error: unable to execute for statement
This arises when the expression in a from , by or to part of a for statement does not result in a value of type numeric . The allowed values are integers, fractions and floats. If the actual value is a real constant but not an integer, fraction or float, you could use evalf to make it into a float.
Examples:
> for i from 1 to sqrt(3) by 1/2 do print(i) od;
Error, unable to execute for statement
> for i from 1 to evalf(sqrt(3)) by 1/2 do print(i) od;
See also: for , evalf , numeric
Maple Advisor Database R. Israel, 1997