axiom-mail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-mail] Documentation of 'output'


From: Robert Funnell
Subject: Re: [Axiom-mail] Documentation of 'output'
Date: Thu, 18 Oct 2007 11:24:16 -0400 (EDT)

Ah! Very clear. Thanks.

Is this explained somewhere that I should have found?

And is the output operator itself documented somewhere? Not that I really need it, but I have a feeling that I'm missing something.


On Thu, 18 Oct 2007, Bill Page wrote:

Robert,

In Axiom there is no need to add extra parenthesis. So both

  sin 1.0

and

 sin(1.0)

mean exactly the same thing. The only time parenthesis are needed is
if there is any ambiguity.

There is nothing special about 'output'. It is just another operation
like all other operations in Axiom. So

 output 1

and

 output(1)

mean exactly the same thing. But if you call 'output' with two
arguments, then you must enclose the argument list in parenthesis like
this:

 output ("test",1)

so that Axiom knows you intend to apply 'output' to both arguments.

(space before the '(' is optional)

'output [x,y]'  is a slightly different case. Here you are asking
Axiom to first form a List '[x,y]' which forms a single value and then
the 'output' operator is applied to that value.

Regards,
Bill Page.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]