Mathematica won't multiply a numeric matrix by a symbolic matrix

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












If



I1 = 1,0,1,-1


and



Acl = A , -B*K,C*L, A-B*K-C*L 


where A, B, C, and D are not defined in the notebook. When I multiply the two matrices like this:



I1.Acl 


Mathematica gives me the following:



Not actually multiplied together



Whereas if I don't multiply the I1 and Acl but multiply the contents of the variables directly (with parenthesis around each element of the matrice). Mathematica gives me the answer as I would expect. Like this:



Desired form



How can I multiply a two symbolic matrices together such that I get an answer that an actual matrice multiplication instead of just displaying what I asked Mathematica to do. I'm sure this is a stupid question, but I searched Stack Exchange for 10 minutes using various search strings. In addition I searched Youtube, and Google.



Wolfram alpha gives me the answer as I would have expected. In the same form as if I had done the multiplication by hand. Mathematica won't.



Mathematica Version 11.3










share|improve this question



























    up vote
    2
    down vote

    favorite












    If



    I1 = 1,0,1,-1


    and



    Acl = A , -B*K,C*L, A-B*K-C*L 


    where A, B, C, and D are not defined in the notebook. When I multiply the two matrices like this:



    I1.Acl 


    Mathematica gives me the following:



    Not actually multiplied together



    Whereas if I don't multiply the I1 and Acl but multiply the contents of the variables directly (with parenthesis around each element of the matrice). Mathematica gives me the answer as I would expect. Like this:



    Desired form



    How can I multiply a two symbolic matrices together such that I get an answer that an actual matrice multiplication instead of just displaying what I asked Mathematica to do. I'm sure this is a stupid question, but I searched Stack Exchange for 10 minutes using various search strings. In addition I searched Youtube, and Google.



    Wolfram alpha gives me the answer as I would have expected. In the same form as if I had done the multiplication by hand. Mathematica won't.



    Mathematica Version 11.3










    share|improve this question

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      If



      I1 = 1,0,1,-1


      and



      Acl = A , -B*K,C*L, A-B*K-C*L 


      where A, B, C, and D are not defined in the notebook. When I multiply the two matrices like this:



      I1.Acl 


      Mathematica gives me the following:



      Not actually multiplied together



      Whereas if I don't multiply the I1 and Acl but multiply the contents of the variables directly (with parenthesis around each element of the matrice). Mathematica gives me the answer as I would expect. Like this:



      Desired form



      How can I multiply a two symbolic matrices together such that I get an answer that an actual matrice multiplication instead of just displaying what I asked Mathematica to do. I'm sure this is a stupid question, but I searched Stack Exchange for 10 minutes using various search strings. In addition I searched Youtube, and Google.



      Wolfram alpha gives me the answer as I would have expected. In the same form as if I had done the multiplication by hand. Mathematica won't.



      Mathematica Version 11.3










      share|improve this question















      If



      I1 = 1,0,1,-1


      and



      Acl = A , -B*K,C*L, A-B*K-C*L 


      where A, B, C, and D are not defined in the notebook. When I multiply the two matrices like this:



      I1.Acl 


      Mathematica gives me the following:



      Not actually multiplied together



      Whereas if I don't multiply the I1 and Acl but multiply the contents of the variables directly (with parenthesis around each element of the matrice). Mathematica gives me the answer as I would expect. Like this:



      Desired form



      How can I multiply a two symbolic matrices together such that I get an answer that an actual matrice multiplication instead of just displaying what I asked Mathematica to do. I'm sure this is a stupid question, but I searched Stack Exchange for 10 minutes using various search strings. In addition I searched Youtube, and Google.



      Wolfram alpha gives me the answer as I would have expected. In the same form as if I had done the multiplication by hand. Mathematica won't.



      Mathematica Version 11.3







      matrix






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 18 mins ago









      David G. Stork

      21.6k11746




      21.6k11746










      asked 2 hours ago









      frequencydrive

      184




      184




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          It looks your I1 matrix is being used while wrapped in a MatrixForm. Otherwise, it works just fine.



          1, 0, 1, -1.a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l




          MatrixForm[1, 0, 1, -1].a, -b k, c l, a - b k - c l


          enter image description here



          That being said, one could also have



          MatrixForm[1, 0, 1, -1][[1]].a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l







          share|improve this answer






















          • Oh shoot. I did "wrap" it in MatrixForm. I thought MatrixForm was just a formatting command. I didn't think it did anything to my matrices. Thank you for your reply. That was it.
            – frequencydrive
            2 hours ago






          • 1




            @frequencydrive If you find the answer useful, please consider accepting it as an answer.
            – Johu
            1 hour ago










          • Related: mathematica.stackexchange.com/questions/166709
            – John Doty
            1 hour ago










          Your Answer




          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "387"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182898%2fmathematica-wont-multiply-a-numeric-matrix-by-a-symbolic-matrix%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote













          It looks your I1 matrix is being used while wrapped in a MatrixForm. Otherwise, it works just fine.



          1, 0, 1, -1.a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l




          MatrixForm[1, 0, 1, -1].a, -b k, c l, a - b k - c l


          enter image description here



          That being said, one could also have



          MatrixForm[1, 0, 1, -1][[1]].a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l







          share|improve this answer






















          • Oh shoot. I did "wrap" it in MatrixForm. I thought MatrixForm was just a formatting command. I didn't think it did anything to my matrices. Thank you for your reply. That was it.
            – frequencydrive
            2 hours ago






          • 1




            @frequencydrive If you find the answer useful, please consider accepting it as an answer.
            – Johu
            1 hour ago










          • Related: mathematica.stackexchange.com/questions/166709
            – John Doty
            1 hour ago














          up vote
          3
          down vote













          It looks your I1 matrix is being used while wrapped in a MatrixForm. Otherwise, it works just fine.



          1, 0, 1, -1.a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l




          MatrixForm[1, 0, 1, -1].a, -b k, c l, a - b k - c l


          enter image description here



          That being said, one could also have



          MatrixForm[1, 0, 1, -1][[1]].a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l







          share|improve this answer






















          • Oh shoot. I did "wrap" it in MatrixForm. I thought MatrixForm was just a formatting command. I didn't think it did anything to my matrices. Thank you for your reply. That was it.
            – frequencydrive
            2 hours ago






          • 1




            @frequencydrive If you find the answer useful, please consider accepting it as an answer.
            – Johu
            1 hour ago










          • Related: mathematica.stackexchange.com/questions/166709
            – John Doty
            1 hour ago












          up vote
          3
          down vote










          up vote
          3
          down vote









          It looks your I1 matrix is being used while wrapped in a MatrixForm. Otherwise, it works just fine.



          1, 0, 1, -1.a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l




          MatrixForm[1, 0, 1, -1].a, -b k, c l, a - b k - c l


          enter image description here



          That being said, one could also have



          MatrixForm[1, 0, 1, -1][[1]].a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l







          share|improve this answer














          It looks your I1 matrix is being used while wrapped in a MatrixForm. Otherwise, it works just fine.



          1, 0, 1, -1.a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l




          MatrixForm[1, 0, 1, -1].a, -b k, c l, a - b k - c l


          enter image description here



          That being said, one could also have



          MatrixForm[1, 0, 1, -1][[1]].a, -b k, c l, a - b k - c l



          a, -b k, a - c l, -a + c l








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 1 hour ago

























          answered 2 hours ago









          That Gravity Guy

          1,149512




          1,149512











          • Oh shoot. I did "wrap" it in MatrixForm. I thought MatrixForm was just a formatting command. I didn't think it did anything to my matrices. Thank you for your reply. That was it.
            – frequencydrive
            2 hours ago






          • 1




            @frequencydrive If you find the answer useful, please consider accepting it as an answer.
            – Johu
            1 hour ago










          • Related: mathematica.stackexchange.com/questions/166709
            – John Doty
            1 hour ago
















          • Oh shoot. I did "wrap" it in MatrixForm. I thought MatrixForm was just a formatting command. I didn't think it did anything to my matrices. Thank you for your reply. That was it.
            – frequencydrive
            2 hours ago






          • 1




            @frequencydrive If you find the answer useful, please consider accepting it as an answer.
            – Johu
            1 hour ago










          • Related: mathematica.stackexchange.com/questions/166709
            – John Doty
            1 hour ago















          Oh shoot. I did "wrap" it in MatrixForm. I thought MatrixForm was just a formatting command. I didn't think it did anything to my matrices. Thank you for your reply. That was it.
          – frequencydrive
          2 hours ago




          Oh shoot. I did "wrap" it in MatrixForm. I thought MatrixForm was just a formatting command. I didn't think it did anything to my matrices. Thank you for your reply. That was it.
          – frequencydrive
          2 hours ago




          1




          1




          @frequencydrive If you find the answer useful, please consider accepting it as an answer.
          – Johu
          1 hour ago




          @frequencydrive If you find the answer useful, please consider accepting it as an answer.
          – Johu
          1 hour ago












          Related: mathematica.stackexchange.com/questions/166709
          – John Doty
          1 hour ago




          Related: mathematica.stackexchange.com/questions/166709
          – John Doty
          1 hour ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182898%2fmathematica-wont-multiply-a-numeric-matrix-by-a-symbolic-matrix%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          Installing NextGIS Connect into QGIS 3?

          One-line joke