Re: Documentation of 'output'

Robert Funnell <[email protected]>
Newsgroups gmane.comp.mathematics.axiom.user
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.