philsupertramp/game-math
Loading...
Searching...
No Matches
Classes | Functions | Variables
Operand.h File Reference
#include "MathNode.h"
#include <cmath>
#include <cstdlib>
#include <map>
#include <memory>
#include <string>
#include <unordered_set>

Go to the source code of this file.

Classes

class  Operand
 
class  Symbolic
 
class  Number
 

Functions

bool isConstant (const std::string &in)
 
bool hasSymbol (const std::vector< std::shared_ptr< Symbolic > > &container, const std::shared_ptr< Symbolic > &sym)
 

Variables

static std::map< std::string, std::shared_ptr< Symbolic > > DefaultSymbols
 

Function Documentation

◆ hasSymbol()

bool hasSymbol ( const std::vector< std::shared_ptr< Symbolic > > &  container,
const std::shared_ptr< Symbolic > &  sym 
)

◆ isConstant()

bool isConstant ( const std::string &  in)

Variable Documentation

◆ DefaultSymbols

std::map<std::string, std::shared_ptr<Symbolic> > DefaultSymbols
static
Initial value:
= {
{ "pi", std::make_shared<Symbolic>("pi", 3.1415926535897932384626433832795028841971693993751058209749445923078164) },
{ "e", std::make_shared<Symbolic>("e", 2.71828182845904523536028747135266249775724709369995957496696762772407663) },
}