using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples()
{
void Example(
TMtxExpression myParser)
{
// 1. Example
myParser.DefineDouble("omega");
myParser.DefineDoubleConstant("hbar");
myParser.AddExpr("hbar*omega");
// 2. Clear everything
myParser.ClearAll();
// 3. What happened ?
int eCount = myParser.ExprCount()
// returns 0
// Also, all defined the variable, constant varying function, operator,
// etc.. lists are cleared.
}
}