complex polynomials

I currently have a polynomial, where each term is associated with terms of the form exp(1i*t*w*2), exp(1i*t*w*3) etc. When i raise this polynomial to any power, the product of exp(1i*t*w*2) and exp(1i*t*w*3) does not give me a compact term exp(1i*t*w*5), but continues to show it as the product of the two terms. I have used 'expand' and 'simplify' to no avail. How do i get around this problem?

댓글 수: 2

the cyclist
the cyclist 2011년 6월 7일
It would help immensely if you actually showed us your code.
Walter Roberson
Walter Roberson 2011년 6월 7일
In Maple,
simplify(exp(I*w*t*2)*exp(I*w*t*3))
is all that is needed.

댓글을 달려면 로그인하십시오.

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 6월 7일

0 개 추천

symbolic toolbox (MuPAD)
syms t w
expr=exp(1i*t*w*2)*exp(1i*t*w*3);
result = evalin(symengine,['simplify(' , char(expr),',exp)']);

댓글 수: 2

Smarjeet
Smarjeet 2011년 6월 7일
thank you
Andrei Bobrov
Andrei Bobrov 2011년 6월 7일
small correcting
result = evalin(symengine,['simplify(' , char(expr),')']);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by