On Thu, May 31, 2018 at 4:34 AM, Ralf Hemmecke <[email protected]> wrote: >> As far as I know only in input file with correct indentation.
+1 > > I also thought that this would work, but I remember that I had problems. What problems? > So the usual way is, to put things in an .input file in the following way: > > foo(n) == (_ > k := 0; _ > for i in 1..n repeat (_ > for j in 1..n repeat (_ > k := i+j+k; _ > k := -k));_ > return k) > No. That is awful. > Note that line ending must be escaped by an underscore and sind that > basically makes just one line of the whole thing, you have to embed a > sequence of commands into parentheses like this: > > (c1; c2; c3) > > Very inconvenient. And unnecessary, > I would also be happy if at least in the .input files > the usual spad indentation would work. > The usual spad indentation does work. See attached. > Hope that helps. > > Ralf > > PS: I somehow seem to faintly remember that in the old AXIOM days, > one could enter a line and if the interpreter realised that there was > something missing, for example, the was an open paren and no closing > one, it would automatically print "..." and continue the line... somehow > similar to what Python does nowadays. > I do not recall such behavior of the interpreter in Axiom. -- 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.
test.input
Description: Binary data
