[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-math] Axiom: Programming examples.
From: |
Martin Rubey |
Subject: |
Re: [Axiom-math] Axiom: Programming examples. |
Date: |
28 Oct 2007 13:52:47 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Francois Maltey <address@hidden> writes:
> You must? use braces {} and separate instructions with semicolon ;
> You can indent without any constraint.
As far as I know this only works in Aldor!?
> > (2) In Matlab, there is a pause function which halts program execution
> > until any key is pressed. How can I construct a function in axiom
> > to do the same thing ??
>
> I don't know how are read / input / sleep commands.
You'll need to go to lisp to do that, maybe using read_-line()$Lisp
> > (3) How can an expression be displayed as x1*cos(x2)+........, instead
> > of x1 cos(x2) +..... ??
maybe you like unparse(expr)::INFORM)
> > (7) I want to mainly use local variables in function definitions. How are
> > local variables declared or defined in functions ??
>
> I believe that all inner variables are local. Try :
Mostly. within local functions it doesn't seem to work reliably, although it
should.
Martin