Isis Developer Reference
Calculator.cpp File Reference
#include <cmath>
#include <QRegExp>
#include <QStack>
#include <QVector>
#include "Calculator.h"
#include "InfixToPostfix.h"
#include "IException.h"
#include "SpecialPixel.h"

Namespaces

namespace  Isis
 This is free and unencumbered software released into the public domain.
 

Functions

double Isis::NegateOperator (double a)
 Returns the nagative of the input parameter.
 
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.