vpasolve and fimplicit not returning anything
Show older comments
I am trying to use vpasolve to numerically solve a equation, which is given as
(I have explicitly written out the langevin function, since I could not find an inbuilt function for this). I have to solve for y, given a range of values of
and
. To make sure things work, I first fix
,
. The vpasolve function returns Empty sym.
(I have explicitly written out the langevin function, since I could not find an inbuilt function for this). I have to solve for y, given a range of values of I have also tried to use the fimplicit function to plot the equation, and the result is correct albeit only for larger values of x. I expect a continous curve starting from
.
My attempt is as follows
ebar=10;
syms y
x=0.5;
solve(coth(12.*ebar./x.*(y.^(-5)-y.^(-11)))- ...
1./(12.*ebar./x.*(y.^(-5)-y.^(-11)))- x./y == 0,y,1);
%Try fimplicit function
f = @(x,y) coth(12.*ebar./x.*(y.^(-5)-y.^(-11)))- ...
1./(12.*ebar./x.*(y.^(-5)-y.^(-11)))- x./y;
fimplicit(f,[0 2 0.5 2])
Accepted Answer
More Answers (0)
Categories
Find more on Particle & Nuclear Physics 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!









