Selecting parts of algebraic expressions?

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











up vote
1
down vote

favorite












 (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2)


Is there a command to select factor polynomial



(a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1)


and exponent of E



(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2)


from the top expression?










share|improve this question



























    up vote
    1
    down vote

    favorite












     (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2)


    Is there a command to select factor polynomial



    (a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1)


    and exponent of E



    (a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2)


    from the top expression?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











       (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2)


      Is there a command to select factor polynomial



      (a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1)


      and exponent of E



      (a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2)


      from the top expression?










      share|improve this question















       (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2)


      Is there a command to select factor polynomial



      (a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1)


      and exponent of E



      (a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2)


      from the top expression?







      algebraic-manipulation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 min ago









      kglr

      162k8188387




      162k8188387










      asked 52 mins ago









      Chandan Sharma

      595




      595




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote













          myEq = (a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1) 
          E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

          myEq /. a_ E^b_ -> a


          and



          myEq /. a_ E^b_ -> b





          share|improve this answer



























            up vote
            0
            down vote













            You can use Exponent and Coefficient as follows:



            exp = (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

            Exponent[exp, E]



            e2 + d2 p1 + b2 p1^2 + c2 q1 + a2 q1^2




            Coefficient[exp, E, Exponent[exp, E]]



            e1 + d1 p1 + b1 p1^2 + c1 q1 + a1 q1^2






            share




















              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%2f182915%2fselecting-parts-of-algebraic-expressions%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              3
              down vote













              myEq = (a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1) 
              E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

              myEq /. a_ E^b_ -> a


              and



              myEq /. a_ E^b_ -> b





              share|improve this answer
























                up vote
                3
                down vote













                myEq = (a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1) 
                E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

                myEq /. a_ E^b_ -> a


                and



                myEq /. a_ E^b_ -> b





                share|improve this answer






















                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  myEq = (a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1) 
                  E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

                  myEq /. a_ E^b_ -> a


                  and



                  myEq /. a_ E^b_ -> b





                  share|improve this answer












                  myEq = (a1 q1^2 + b1 p1^2 + +c1 q1 + d1 p1 + e1) 
                  E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

                  myEq /. a_ E^b_ -> a


                  and



                  myEq /. a_ E^b_ -> b






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 28 mins ago









                  David G. Stork

                  21.6k11746




                  21.6k11746




















                      up vote
                      0
                      down vote













                      You can use Exponent and Coefficient as follows:



                      exp = (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

                      Exponent[exp, E]



                      e2 + d2 p1 + b2 p1^2 + c2 q1 + a2 q1^2




                      Coefficient[exp, E, Exponent[exp, E]]



                      e1 + d1 p1 + b1 p1^2 + c1 q1 + a1 q1^2






                      share
























                        up vote
                        0
                        down vote













                        You can use Exponent and Coefficient as follows:



                        exp = (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

                        Exponent[exp, E]



                        e2 + d2 p1 + b2 p1^2 + c2 q1 + a2 q1^2




                        Coefficient[exp, E, Exponent[exp, E]]



                        e1 + d1 p1 + b1 p1^2 + c1 q1 + a1 q1^2






                        share






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          You can use Exponent and Coefficient as follows:



                          exp = (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

                          Exponent[exp, E]



                          e2 + d2 p1 + b2 p1^2 + c2 q1 + a2 q1^2




                          Coefficient[exp, E, Exponent[exp, E]]



                          e1 + d1 p1 + b1 p1^2 + c1 q1 + a1 q1^2






                          share












                          You can use Exponent and Coefficient as follows:



                          exp = (a1 q1^2 + b1 p1^2 + c1 q1 + d1 p1 + e1) E^(a2 q1^2 + b2 p1^2 + c2 q1 + d2 p1 + e2);

                          Exponent[exp, E]



                          e2 + d2 p1 + b2 p1^2 + c2 q1 + a2 q1^2




                          Coefficient[exp, E, Exponent[exp, E]]



                          e1 + d1 p1 + b1 p1^2 + c1 q1 + a1 q1^2







                          share











                          share


                          share










                          answered 4 mins ago









                          kglr

                          162k8188387




                          162k8188387



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182915%2fselecting-parts-of-algebraic-expressions%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