Calculator XOP

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!

Project Details

Current Project Release

Calculator XOP IGOR.6.00.x-0.01

Release File: Calculator_XOP_0.01.zip (82.15 KB)
Version: IGOR.6.00.x-0.01
Version Date:
Version Major: 0
Version Patch Level: 1
OS Compatibility: Mac-Intel Windows
Release Notes: initial release

Only tested on windows, although it should work on MacOS too.
View All Releases

Forum

Support

Gallery

Igor Pro 9

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More