pts
pts

Reputation: 87361

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

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.

Upvotes: 0

Views: 224

Answers (1)

pts
pts

Reputation: 87361

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;

Upvotes: 1

Related Questions