Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.maple > #1307
| Newsgroups | comp.soft-sys.math.maple |
|---|---|
| Date | 2018-06-17 18:36 -0700 |
| Message-ID | <19de560e-34c7-45ff-88eb-d676b4b2023c@googlegroups.com> (permalink) |
| Subject | colon vs semicolon in loops |
| From | jfh <john.harper@vuw.ac.nz> |
How does one get Maple to display some but not all of the results in a loop? The Maple output below displays everything done in a loop ending "end if;" and nothing done in a loop ending "end if:" but one of the two commands inside each loop ends with ":" and the other with ";". I know the output is what my program asked for but it's not what I had hoped for.
|\^/| Maple 2017 (X86 64 LINUX)
._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2017
\ MAPLE / All rights reserved. Maple is a trademark of
<____ ____> Waterloo Maple Inc.
| Type ? for help.
# test : vs ; in loops
>
> for n from 1 to 2 do
> n:
> n^2;
> end do:
>
> for n from 1 to 2 do
> n:
> n^3;
> end do;
1
1
2
8
Back to comp.soft-sys.math.maple | Previous | Next — Next in thread | Find similar
colon vs semicolon in loops jfh <john.harper@vuw.ac.nz> - 2018-06-17 18:36 -0700
Re: colon vs semicolon in loops "Nasser M. Abbasi" <nma@12000.org> - 2018-06-18 06:55 -0500
Re: colon vs semicolon in loops jfh <john.harper@vuw.ac.nz> - 2018-06-18 16:27 -0700
csiph-web