How do I get left-aligned output from text-mode Maple?

204 views Asked by At

The file a.ms contains:

A:=6:
A*7;

When I run

maple -q a.ms

I get:

                                      42
(empty line)

I want to get:

42

That is, 42 should be left-aligned, and no empty line after it.

How do I get that?

I'm looking for an answer which proposes a Maple-only solution without the need additional filtering.

1

There are 1 answers

0
pts On BEST ANSWER

Following acer's comments, this did the trick:

A:=6:
printf("%d\n", A*7):

This also did the trick:

interface(prettyprint=0):
A:=6:
A*7;