Clear Filters
Clear Filters

How can I get integral of following function? Matlab is not showing result?

1 view (last 30 days)
syms p k y
>> z=sqrt((p*exp(-k*y))/(1-(1-p)*exp(-2*k*y)))
z =
((p*exp(-k*y))/(exp(-2*k*y)*(p - 1) + 1))^(1/2)
>> int(z)
ans =
int(((p*exp(-k*y))/(exp(-2*k*y)*(p - 1) + 1))^(1/2), y)

Accepted Answer

madhan ravi
madhan ravi on 22 Oct 2018
Matlabs symbolic engine is not able to solve the integral because the question contains many symbolic variables.
  5 Comments
dayu
dayu on 22 Oct 2018
Sir, I am getting result as complex numbers. But I am dealing with real numbers. What shall I do?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!