Commit d2dd4f4e by Tim Keil

### [pymortest] small change for checking nested products and sums in functionals

parent 1440a6ba
 ... ... @@ -24,15 +24,23 @@ def test_LincombParameterFunctional(): zero = pf - pf two_pf = pf + pf three_pf = pf + 2*pf three_pf_ = pf + two_pf pf_plus_one = pf + 1 pf_plus_one_ = 1 + pf sum_ = epf + pf + 1 - 3 pf_squared_ = pf * pf pf_times_pf_squared = pf * pf_squared_ pf_squared = (pf + 2*epf) * (pf - 2*epf) + 4 * epf * epf * 1 assert zero(mu) == 0 assert two_pf(mu) == 2 * pf(mu) assert three_pf(mu) == 3 * pf(mu) assert three_pf_(mu) == 3 * pf(mu) assert pf_plus_one(mu) == pf(mu) + 1 assert pf_plus_one_(mu) == pf(mu) + 1 assert sum_(mu) == epf(mu) + pf(mu) + 1 - 3 assert pf_squared_(mu) == pf(mu) * pf(mu) assert pf_times_pf_squared(mu) == pf(mu) * pf(mu) * pf(mu) assert pf_squared(mu) == pf(mu) * pf(mu) assert sum_.d_mu('mu', 0)(mu) == epf.d_mu('mu', 0)(mu) + pf.d_mu('mu', 0)(mu) assert sum_.d_mu('mu', 1)(mu) == epf.d_mu('mu', 1)(mu) + pf.d_mu('mu', 1)(mu) ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!