This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Expanding Products in UFL (Distributive Property of Multiplication and Addition)

0 votes

Dear all,

Is there a convenient, pre-made operation in UFL to expand products? So, if I have an UFL expression

inner(e,f+g)

is there a build-in function to turn this into

inner(e,f) + inner(e,g)

I noticed some of this functionality exists for expanding derivatives and compounds, but what about the simple distributive property for multiplication and addition?

asked Jun 2, 2016 by sschmidt FEniCS Novice (490 points)
...