unable to solve symbolically. returning a numeric solution using vpasolve

134 views (last 30 days)
Im trying to get the real and the imaginary part of this function.
syms z complex

Answers (1)

Reshma Nerella
Reshma Nerella on 10 Dec 2021
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'))


Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!