I have forgotten to mention the line continuation character "_". A single
expression can always be split by "_", however, several expressions have to be
separated by ";".
(1) -> for i in 1..50 repeat _
for j in 1..50 | factorial(i+j) < 25 repeat _
output [i,j]
[1, 1]
[1, 2]
[1, 3]
[2, 1]
[2, 2]
[3, 1]
Type: Void
On 28.01.2018 03:12, 'Nasser M. Abbasi' via FriCAS - computer algebra system
wrote:
> I know I can put code in a file and have it read by Fricas using )read
> file.input
>
> But sometimes I want to just copy and paste some code fragment I see which
> goes
> over multiple lines like this one,
> from
> http://www.axiom-developer.org/axiom-website/hyperdoc/axbook/section-5.4.xhtml#subsec-5.4.9
>
> for i in 1..50 repeat
> for j in 1..50 | factorial(i+j) < 25 repeat
> output [i,j]
>
> But I can't just paste this on the command line interface, since it wants
> everything on one line.
>
> Is there a way to suppress new line and paste the above without getting syntax
> errors?
>
> Something like Python REPL command line interface for example, which allows
> one to
> do this sort of thing. one can paste multiple lines code, and it wants for an
> extra
> RETURN to accept it.
>
> I can't even paste one line at a time, since once I hit RETURN before I get
> chance
> to paste the second line, Fricas will complain about syntax errors.
>
> Does Fricas have a nicer and more user friendly IDE to use to practice on,
> other
> than the command line interface?
>
> I am on linux, using 1.3.2
>
> Thanks
> --Nasser
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email
> to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/fricas-devel.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.