Calculator XOP

Downloaded 196 times
Average rating
(2 votes)

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.

Examples

•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 :)

Installation

  • Copy "Calculator.xop" to the "Igor Extensions" folder
  • Restart Igor
  • Done!

Help wanted

In case you can provide binaries for MacOSX please contact me.

Limitations

  • 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!

Releases

Official releasesDateSizeLinksStatus


Back to top