unable to solve symbolically. returning a numeric solution using vpasolve

Im trying to get the real and the imaginary part of this function.
syms z complex
g(z)=exp(z)+sin(z)
solve(exp(z)+sin(z)==0)

답변 (1개)

Hi,
To get the real and imaginary part, you can use real, imag functions.
g(z)=(exp(z)+sin(z) == 0)
real(g(z)) %returns the real part
imag(g(z)) %returns the imag part
In order to simplify it further, in terms of any other function you can use rewrite function
simplify(rewrite(imag(g(z)), 'exp'))

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 12월 2일

답변:

2021년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by