I have a simple problem, I would like to get the following:
In= Distribute[a.(b+c)*d] Out= a.b*d+a.c*d
Meaning that I would like the dot product and the multiplication to be distributed over the sum. I want it to work for more complicated patterns too, such as
a.(b+c+d+e).f*x.(y+z). How can that be done?
Maybe a function can be defined, to replace mathematica's
Dot, that somehow is distributive over all inputs? I tried using this answer but could only make a function distributive over one input.