error while using solve function with integral
Show older comments
Please suggest the solution for the encoutering problem below:
syms x V; Pr=solve( int(x.^2.* exp(-x-1./(x+V)),x,1,inf )-0.5 ==0,V);
Answers (1)
Walter Roberson
on 2 Apr 2016
0 votes
That equation has no real-valued solution. Are you expecting a complex-valued solution?
5 Comments
modem sudhakar
on 2 Apr 2016
Edited: Walter Roberson
on 2 Apr 2016
Walter Roberson
on 2 Apr 2016
The lower limit is at V = -1 exactly, where the integral is approximately .9526391033789570 . The upper bound is V approach infinity where the integral is 5/e which is approximately 1.839397205857212
When V < -1 then the integral is infinite.
Walter Roberson
on 11 Apr 2016
Notice that because the lower limit is about 0.95, it can never be 0, so there are no real-valued solutions.
modem sudhakar
on 11 Apr 2016
Edited: modem sudhakar
on 11 Apr 2016
Walter Roberson
on 11 Apr 2016
You need to make the integral symbolic. Then vpasolve for V
Categories
Find more on Utilities for the Solver in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!