Selecting parts of algebraic expressions?
Clash 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?
algebraic-manipulation
add a comment |Â
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?
algebraic-manipulation
add a comment |Â
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?
algebraic-manipulation
(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
algebraic-manipulation
edited 1 min ago
kglr
162k8188387
162k8188387
asked 52 mins ago
Chandan Sharma
595
595
add a comment |Â
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
answered 28 mins ago
David G. Stork
21.6k11746
21.6k11746
add a comment |Â
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
answered 4 mins ago
kglr
162k8188387
162k8188387
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password