premature end of input: unterminated loop - Maple Help

Home : Support : Online Help : System : Error Message Guide : premature end of input: unterminated loop

Warning, premature end of input , use <Shift> + <Enter> to avoid this message.

Error, unterminated loop

Error, unterminated for loop

 Description To enter multiline inputs without generating warnings, press the Shift+Enter keys.  This produces another line in the input region, but no new [> prompt.

Examples

Example 1: With 1-D Math input, the warning message premature end of input occurs.

 > for i from 1 to 5 do f(i)

Solution: Use the Shift+Enter keys.

 > for i from 1 to 5 do f(i) end do;
 ${f}{}\left({1}\right)$
 ${f}{}\left({2}\right)$
 ${f}{}\left({3}\right)$
 ${f}{}\left({4}\right)$
 ${f}{}\left({5}\right)$ (2.1)

Example 2: With 2-D Math input, the error message unterminated loop occurs.

 >
 

Solution: Use the Shift+Enter keys.

 >
 ${f}{}\left({1}\right)$
 ${f}{}\left({2}\right)$
 ${f}{}\left({3}\right)$
 ${f}{}\left({4}\right)$
 ${f}{}\left({5}\right)$ (2.2)