USGS

Isis 3.0 Developer's Reference (API)

Home

Calculator.cpp File Reference

#include <cmath>
#include <QStack>
#include <QVector>
#include "ProcessByLine.h"
#include "Calculator.h"
#include "InfixToPostfix.h"
#include "iException.h"
#include "SpecialPixel.h"

Namespaces

namespace  Isis
 

Unless noted otherwise, the portions of Isis written by the USGS are public domain.


Functions

double Isis::NegateOperator (double a)
 The code that performs math operations is designed to call a function and use the result.
double Isis::MultiplyOperator (double a, double b)
 Returns the result of a multiplied by b.
double Isis::DivideOperator (double a, double b)
 Returns the result of dividing a by b.
double Isis::AddOperator (double a, double b)
 Returns the result of additing a with b.
double Isis::SubtractOperator (double a, double b)
 Returns the result of subtracting b from a.
double Isis::GreaterThanOperator (double a, double b)
 Returns 1.0 if a is greater than b.
double Isis::LessThanOperator (double a, double b)
 Returns 1.0 if a is less than b.
double Isis::EqualOperator (double a, double b)
 Returns 1.0 if a is equal ot b.
double Isis::GreaterThanOrEqualOperator (double a, double b)
 Returns 1.0 if a is greater than or equal to b.
double Isis::LessThanOrEqualOperator (double a, double b)
 Returns 1.0 if a is less than or eqaul to b.
double Isis::NotEqualOperator (double a, double b)
 Returns 1.0 is a is not equal to b.
double Isis::CosecantOperator (double a)
 Returns the cosecant of the input a.
double Isis::SecantOperator (double a)
 Returns the secant of the input a.
double Isis::CotangentOperator (double a)
 Returns the cotangent of the input a.
int Isis::Round (double a)
 Returns the result of rounding the input a to the closest integer.
double Isis::BitwiseAndOperator (double a, double b)
 Returns the result of a bitwise AND accross a and b.
double Isis::BitwiseOrOperator (double a, double b)
 Returns the result of a bitwise OR across a and b.
double Isis::ModulusOperator (double a, double b)
 Returns the modulus of a by b.
double Isis::MaximumOperator (double a, double b)
 Returns the max of a and b.
double Isis::MinimumOperator (double a, double b)
 Returns the min of a and b.

Detailed Description

Revision
1.14
Date
2010/04/08 15:05:24

Unless noted otherwise, the portions of Isis written by the USGS are public domain. See individual third-party library and package descriptions for intellectual property information,user agreements, and related information.

Although Isis has been used by the USGS, no warranty, expressed or implied, is made by the USGS as to the accuracy and functioning of such software and related material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.

For additional information, launch $ISISROOT/doc//documents/Disclaimers/Disclaimers.html in a browser or see the Privacy & Disclaimers page on the Isis website, http://isis.astrogeology.usgs.gov, and the USGS privacy and disclaimers on http://www.usgs.gov/privacy.html.