2
$\begingroup$

Is there a way in mathematica to factorize/simplify a dot product? I.e. I have something like a.b + a.c (obviously more complicated expressions) and I would like to factorize terms like

TensorSimplify[a.b+a.c] and return a.(b+c)

Thanks in advance

$\endgroup$
4
  • 1
    $\begingroup$ Dot performs several different operations depending on the shape of the arguments provided; it seems to me that these shapes need to be defined before simplification can be attempted. $\endgroup$
    – Mr.Wizard
    Jun 26, 2019 at 16:54
  • 1
    $\begingroup$ Yes, of course a,b and c are defined as vectors... $\endgroup$ Jun 27, 2019 at 10:31
  • 1
    $\begingroup$ Related: (23423), (66910). Possible duplicate: (126485) $\endgroup$
    – Mr.Wizard
    Jun 27, 2019 at 16:58
  • 1
    $\begingroup$ Ok, defining up values are usefull, but it is not what I wanted. As I say, I would like to simplify dot expressions when all the objects are vectors. Let's say that p1+p2+..+pn = 0, and then I would like to simplify expressions of the type p_i.p_j+..- etc. Also, as far as I know there is no function that can factorize dot products, like the one that I wrote in the question. $\endgroup$ Jul 3, 2019 at 12:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.