Public Member Functions
Sundance::BadSymbolicsError Class Reference

BadSymbolicsError is thrown when a mathematically nonsensical expression is detected. More...

Inheritance diagram for Sundance::BadSymbolicsError:
Sundance::RuntimeError

List of all members.

Public Member Functions

 BadSymbolicsError (const std::string &msg)

Detailed Description

BadSymbolicsError is thrown when a mathematically nonsensical expression is detected.

Unfortunately, it is possible to form expressions that are legal C++ but illegal mathematics. For example, one can happily divide a differential operator by another expression,

 Expr f = new UnknownFunction();
 Expr dx = new Derivative(0);
 Expr e = dx/f;

Definition at line 134 of file SundanceExceptions.hpp.


Constructor & Destructor Documentation

BadSymbolicsError::BadSymbolicsError ( const std::string &  msg)

Definition at line 43 of file SundanceExceptions.cpp.

Site Contact