The Calculator XOP defines one operation named "Calc".
This operation allows to use Igor as a simple calculator while being able to resuse the last computed value.
•Calc 1+2 3 •Calc ans^2 9 •Calc ans+10 - 4 15 •Calc ans^2 225 •Calc exp(0.004) * pi^2 / ans 0.0440407
The output of the calculation is stored in a variable named "ans" in the root folder. This variable, together with other global variables or waves, can be used in future numerical expressions.
I used "ans" as the variable name because this is what my pocket calculator has :)
- Copy "Calculator.xop" to the "Igor Extensions" folder
- Restart Igor
In case you can provide binaries for MacOSX please contact me.
- Does not work with complex numbers
- Being in a user datafolder makes it necessary to refer to the last computed value with root:ans
- Not possible to tune the output for higher resolution
Feedback and/or contributions are appreciated!
|IGOR.6.00.x-0.01||2012-Jun-12||82.15 KB||Recommended for Igor 6.00.x and above||Help|