Re: Axiom: Programming examples.
Martin Rubey <[email protected]> 28 Oct 2007 13:52:47 +0100
| Newsgroups | gmane.comp.mathematics.axiom.general |
|---|---|
| Message-ID | <[email protected]> |
Francois Maltey <[email protected]> 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