Nice!
It works fine and fast.
But I prefer to use a parameter rather than an 'input' command.
This allows to use 'Ans' and to insert the function in another prog
I also think it is preferable for these pieces of software to avoid the use of global variables (which may be important) and to privilege local varaiables
Edited: 9 Mar 2013, 3:36 p.m.
You're right.
Quote:
It works fine and fast.But I prefer to use a parameter rather than an 'input' command.
This allows to use 'Ans' and to insert the function in another progI also think it is preferable for these pieces of software to avoid the use of global variables (which may be important) and to privilege local varaiables
I like using parametric arguments also (I think I have been calling them pass-through arguments). INPUT is limited to global variables only.