Message Boards Message Boards

0
|
3170 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Finding coefficient of exponent in an expression

Posted 5 years ago

I am trying to find coefficient of an exponent term in an expression. For example, consider

in: tt = E^(I T0 ( \[Sigma] + Subscript[\[Omega], 1]))

Doing

in: Coefficient[tt, E^( I T0 (\[Sigma] + Subscript[\[Omega], 1]))]

out: 1

gives 1. However,

in: Coefficient[tt, E^(I T0 \[Sigma])]

out: 0

this returns $0$. How do I obtain $e^{i*T0*\sigma}$ as output instead of $0$?

I thought PowerExpand will work, but it also did not. I couldn't find the command to expand exponents

POSTED BY: Aakash Gupta
4 Replies
Posted 5 years ago

Crossposted on MSE.

POSTED BY: Rohit Namjoshi
Posted 5 years ago

I only did it :)

POSTED BY: Aakash Gupta

Please repost the code in Mathematica input form.

POSTED BY: Daniel Lichtblau
Posted 5 years ago

Sure!

POSTED BY: Aakash Gupta
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract