<a name="general"></a>
<h3>General</h3>
<ol>
+ <li> New: FunctionParser now supports pow(a,b).
+ <br>
+ (Timo Heister, 2015/09/30)
+ </li>
+
<li> New: MGTransferPrebuilt can now be used with parallel::distributed::Vector
and TrilinosWrappers::SparseMatrix as a transfer matrix.
<br>
{
return log(value);
}
+
+ double mu_pow(double a, double b)
+ {
+ return std::pow(a, b);
+ }
}
fp.get()[component].DefineFun("floor", internal::mu_floor, true);
fp.get()[component].DefineFun("sec", internal::mu_sec, true);
fp.get()[component].DefineFun("log", internal::mu_log, true);
+ fp.get()[component].DefineFun("pow", internal::mu_pow, true);
try
{
"cot",
"csc",
"floor",
- "sec"
+ "sec",
+ "pow"
};
for (unsigned int f=0; f<sizeof(function_names)/sizeof(function_names[0]); ++f)
{
eval("sqrt(0.5)",Point<2>(0,0), sqrt(0.5));
eval("tan(0.5)",Point<2>(0,0), tan(0.5));
eval("tanh(0.5)",Point<2>(0,0), tanh(0.5));
+ eval("pow (9.0, 0.5)",Point<2>(0,0), 3.0);
}
DEAL::'sqrt(0.5)' @ 0.00000 0.00000 is 0.707107 ( expected 0.707107 )
DEAL::'tan(0.5)' @ 0.00000 0.00000 is 0.546302 ( expected 0.546302 )
DEAL::'tanh(0.5)' @ 0.00000 0.00000 is 0.462117 ( expected 0.462117 )
+DEAL::'pow (9.0, 0.5)' @ 0.00000 0.00000 is 3.00000 ( expected 3.00000 )