|
From: Raffaele V. <raf...@un...> - 2014-11-13 17:19:36
|
On 13/11/14 04:08, Kostas Oikonomou wrote:
> Does Reduce have a "read" command that can get input from the user?
> E.g. so you can say something like
> read("x? ", x), which will prompt for a value for x by printing "x? " on
> the terminal.
There is an 'xread' command that you may test in this way:
while xread(x) neq stop do write x;
but in order to use it in a program you have to encapsulate into a
symbolic procedure, or xread would read from the current input stream
which would just be the rest of your program. The code may be found in
Appendix C of the book by MacCallum-Wright "Algebraic computing with
Reduce".
Raf.
> Kostas
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> _______________________________________________
> Reduce-algebra-developers mailing list
> Red...@li...
> https://lists.sourceforge.net/lists/listinfo/reduce-algebra-developers
>
|