**You are now following this question**

- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.

# solve equation numerically 1=(1/y)x*exp(x*y)

6 views (last 30 days)

Show older comments

hi,

please, i want to solve numerically the following equation in matlab: 1=(1/y)x*exp(x*y)

Sincerely

##### 0 Comments

### Accepted Answer

Bruno Luong
on 10 Aug 2022

Edited: Bruno Luong
on 10 Aug 2022

Numercial solution

y = 0.01:0.01:1;

x = nan(size(y));

for k=1:length(y)

yk = y(k);

x(k) = fzero(@(x)x.*exp(x.*yk)-yk, 0.5);

end

plot(x,y)

xlabel('x')

ylabel('y')

##### 5 Comments

belghazdis mohammed
on 10 Aug 2022

Edited: belghazdis mohammed
on 10 Aug 2022

thank you very much for your answer. when i tried to apply your algorithm on my real equation which is

0.016=(44/y)^(1/2)*x^(1/2)*exp(-(y/44)*x^(5/3))

x = 0.01:0.1:1;

y = nan(size(x));

for k=1:length(x)

xk = x(k);

y(k) = fzero(@(y)(44./y).^(1/2).*xk.^(1/2).*exp(-xk.^(5/3).*(y/44))-0.016, 0.5)

end

plot(x,y)

xlabel('x')

ylabel('y')

i get the following message:

Exiting fzero: aborting search for an interval containing a sign change

because complex function value encountered during search.

(Function value at -0.14 is -0.016+16.9576i.)

Check function or try again with a different starting value.

y =

NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN

belghazdis mohammed
on 10 Aug 2022

f=@(x,y)(44./y).^(1/2).*x.^(1/2).*exp(-(y/44).*x.^(5/3))-0.016;

[x,y]=meshgrid(0:0.02:1, 0:5000);

z=f(x,y);

contour(x,y,z,[0 0]) % the plot is empty

Bruno Luong
on 10 Aug 2022

Edited: Bruno Luong
on 10 Aug 2022

You should NOT to change the question, either you know the simplification is representative, either you don't then don't do it, this is wasteful for volonteer to answer the wrong question.

f=@(x,y)(44./y).^(1/2).*x.^(1/2).*exp(-(y/44).*x.^(5/3))-0.016;

[x,y]=meshgrid(0:0.01:1, 0:5000);

z=f(x,y);

c=contourc(x(1,:),y(:,1),z,[0 0]);

j = 1;

xy = c;

jrm = [];

while j <= size(c,2)

jrm = [jrm, j];

j = c(2,j)+j+1;

end

xy(:,jrm) = [];

xy = sortrows(xy',1);

x = xy(:,1);

y = xy(:,2);

for k=1:length(x)

try

y(k) = fzero(@(y)f(x(k),y), y(k));

catch

y(k) = NaN;

end

end

Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -0.28 is -0.016+0.19469i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -0.56 is -0.016+0.16372i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -0.84 is -0.016+0.14793i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -1.12 is -0.016+0.13767i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -1.4 is -0.016+0.1302i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -1.68 is -0.016+0.1244i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -1.96 is -0.016+0.1197i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -2.24 is -0.016+0.11577i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -2.52 is -0.016+0.11241i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -2.8 is -0.016+0.10949i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -3.08 is -0.016+0.10691i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -3.36 is -0.016+0.10461i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -3.64 is -0.016+0.10254i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -3.92 is -0.016+0.10066i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -4.2 is -0.016+0.098936i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -4.48 is -0.016+0.097353i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -4.76 is -0.016+0.09589i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -5.04 is -0.016+0.09453i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -5.32 is -0.016+0.093261i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -5.6 is -0.016+0.092073i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -5.88 is -0.016+0.090957i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -6.16 is -0.016+0.089906i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -6.44 is -0.016+0.088913i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -6.72 is -0.016+0.087973i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -7 is -0.016+0.08708i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -7.28 is -0.016+0.086231i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -7.56 is -0.016+0.085421i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -7.84 is -0.016+0.084649i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -8.12 is -0.016+0.08391i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -8.4 is -0.016+0.083202i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -8.68 is -0.016+0.082523i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -8.96 is -0.016+0.081871i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -9.24 is -0.016+0.081244i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -9.52 is -0.016+0.080641i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -9.8 is -0.016+0.080059i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -10.08 is -0.016+0.079497i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -10.36 is -0.016+0.078955i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -10.64 is -0.016+0.078431i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -10.92 is -0.016+0.077924i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -11.2 is -0.016+0.077432i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -11.48 is -0.016+0.076956i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -11.76 is -0.016+0.076495i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -12.04 is -0.016+0.076046i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -12.32 is -0.016+0.075611i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -12.6 is -0.016+0.075188i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -12.88 is -0.016+0.074776i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -13.16 is -0.016+0.074376i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -13.44 is -0.016+0.073986i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -13.72 is -0.016+0.073606i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -14 is -0.016+0.073235i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -14.28 is -0.016+0.072874i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -14.56 is -0.016+0.072521i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -14.84 is -0.016+0.072177i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -15.12 is -0.016+0.071841i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -15.4 is -0.016+0.071513i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -15.68 is -0.016+0.071192i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -15.96 is -0.016+0.070878i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -16.24 is -0.016+0.070571i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -16.52 is -0.016+0.07027i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -16.8 is -0.016+0.069976i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -17.08 is -0.016+0.069688i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -17.36 is -0.016+0.069405i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -17.64 is -0.016+0.069129i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -17.92 is -0.016+0.068857i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -18.2 is -0.016+0.068591i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -18.48 is -0.016+0.068331i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -18.76 is -0.016+0.068075i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -19.04 is -0.016+0.067823i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -19.32 is -0.016+0.067577i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -19.6 is -0.016+0.067334i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -19.88 is -0.016+0.067096i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -20.16 is -0.016+0.066862i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -20.44 is -0.016+0.066633i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -20.72 is -0.016+0.066407i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -21 is -0.016+0.066185i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -21.28 is -0.016+0.065966i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -21.56 is -0.016+0.065751i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -21.84 is -0.016+0.06554i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -22.12 is -0.016+0.065332i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -22.4 is -0.016+0.065127i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -22.68 is -0.016+0.064926i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -22.96 is -0.016+0.064727i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -23.24 is -0.016+0.064532i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -23.52 is -0.016+0.064339i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -23.8 is -0.016+0.064149i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -24.08 is -0.016+0.063963i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -24.36 is -0.016+0.063778i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -24.64 is -0.016+0.063597i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -24.92 is -0.016+0.063418i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -25.2 is -0.016+0.063241i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -25.48 is -0.016+0.063067i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -25.76 is -0.016+0.062895i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -26.04 is -0.016+0.062726i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -26.32 is -0.016+0.062559i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -26.6 is -0.016+0.062394i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -26.88 is -0.016+0.062231i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -27.16 is -0.016+0.06207i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -27.44 is -0.016+0.061912i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -27.72 is -0.016+0.061755i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -28 is -0.016+0.061601i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -28.28 is -0.016+0.061448i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -28.56 is -0.016+0.061297i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -28.84 is -0.016+0.061148i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -29.12 is -0.016+0.061001i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -29.4 is -0.016+0.060856i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -29.68 is -0.016+0.060712i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -29.96 is -0.016+0.06057i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -30.24 is -0.016+0.06043i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -30.52 is -0.016+0.060291i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -30.8 is -0.016+0.060154i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -31.08 is -0.016+0.060018i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -31.36 is -0.016+0.059884i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -31.64 is -0.016+0.059751i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -31.92 is -0.016+0.05962i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -32.2 is -0.016+0.059491i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -32.48 is -0.016+0.059362i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -32.76 is -0.016+0.059235i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -33.04 is -0.016+0.05911i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -33.32 is -0.016+0.058986i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -33.6 is -0.016+0.058863i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -33.88 is -0.016+0.058741i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -34.16 is -0.016+0.058621i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -34.44 is -0.016+0.058502i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -34.72 is -0.016+0.058384i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -35 is -0.016+0.058267i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -35.28 is -0.016+0.058151i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -35.56 is -0.016+0.058037i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -35.84 is -0.016+0.057923i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -36.12 is -0.016+0.057811i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -36.4 is -0.016+0.0577i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -36.68 is -0.016+0.05759i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -36.96 is -0.016+0.057481i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -37.24 is -0.016+0.057373i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -37.52 is -0.016+0.057266i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -37.8 is -0.016+0.05716i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -38.08 is -0.016+0.057055i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -38.36 is -0.016+0.056951i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -38.64 is -0.016+0.056848i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -38.92 is -0.016+0.056745i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -39.2 is -0.016+0.056644i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -39.48 is -0.016+0.056544i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -39.76 is -0.016+0.056444i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -40.04 is -0.016+0.056346i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -40.32 is -0.016+0.056248i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -40.6 is -0.016+0.056151i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -40.88 is -0.016+0.056055i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -41.16 is -0.016+0.05596i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -41.44 is -0.016+0.055865i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -41.72 is -0.016+0.055772i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -42 is -0.016+0.055679i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -42.28 is -0.016+0.055587i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -42.56 is -0.016+0.055495i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -42.84 is -0.016+0.055405i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -43.12 is -0.016+0.055315i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -43.4 is -0.016+0.055226i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -43.68 is -0.016+0.055138i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -43.96 is -0.016+0.05505i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -44.24 is -0.016+0.054963i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -44.52 is -0.016+0.054877i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -44.8 is -0.016+0.054791i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -45.08 is -0.016+0.054706i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -45.36 is -0.016+0.054622i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -45.64 is -0.016+0.054538i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -45.92 is -0.016+0.054455i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -46.2 is -0.016+0.054373i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -46.48 is -0.016+0.054291i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -46.76 is -0.016+0.05421i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -47.04 is -0.016+0.054129i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -47.32 is -0.016+0.054049i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -47.6 is -0.016+0.05397i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -47.88 is -0.016+0.053891i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -48.16 is -0.016+0.053813i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -48.44 is -0.016+0.053736i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -48.72 is -0.016+0.053659i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -49 is -0.016+0.053582i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -49.28 is -0.016+0.053506i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -49.56 is -0.016+0.053431i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -49.84 is -0.016+0.053356i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -50.12 is -0.016+0.053281i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -50.4 is -0.016+0.053208i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -50.68 is -0.016+0.053134i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -50.96 is -0.016+0.053061i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -51.24 is -0.016+0.052989i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -51.52 is -0.016+0.052917i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -51.8 is -0.016+0.052846i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -52.08 is -0.016+0.052775i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -52.36 is -0.016+0.052705i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -52.64 is -0.016+0.052635i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -52.92 is -0.016+0.052565i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -53.2 is -0.016+0.052496i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -53.48 is -0.016+0.052428i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -53.76 is -0.016+0.05236i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -54.04 is -0.016+0.052292i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -54.32 is -0.016+0.052225i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -54.6 is -0.016+0.052158i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -54.88 is -0.016+0.052092i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -55.16 is -0.016+0.052026i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -55.44 is -0.016+0.051961i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -55.72 is -0.016+0.051895i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -56 is -0.016+0.051831i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -56.28 is -0.016+0.051767i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -56.56 is -0.016+0.051703i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -56.84 is -0.016+0.051639i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -57.12 is -0.016+0.051576i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -57.4 is -0.016+0.051513i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -57.68 is -0.016+0.051451i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -57.96 is -0.016+0.051389i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -58.24 is -0.016+0.051328i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -58.52 is -0.016+0.051266i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -58.8 is -0.016+0.051206i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -59.08 is -0.016+0.051145i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -59.36 is -0.016+0.051085i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -59.64 is -0.016+0.051025i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -59.92 is -0.016+0.050966i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -60.2 is -0.016+0.050907i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -60.48 is -0.016+0.050848i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -60.76 is -0.016+0.05079i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -61.04 is -0.016+0.050732i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -61.32 is -0.016+0.050674i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -61.6 is -0.016+0.050617i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -61.88 is -0.016+0.05056i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -62.16 is -0.016+0.050503i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -62.44 is -0.016+0.050447i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -62.72 is -0.016+0.05039i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -63 is -0.016+0.050335i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -63.28 is -0.016+0.050279i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -63.56 is -0.016+0.050224i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -63.84 is -0.016+0.050169i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -64.12 is -0.016+0.050115i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -64.4 is -0.016+0.05006i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -64.68 is -0.016+0.050006i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -64.96 is -0.016+0.049953i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -65.24 is -0.016+0.049899i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -65.52 is -0.016+0.049846i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -65.8 is -0.016+0.049794i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -66.08 is -0.016+0.049741i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -66.36 is -0.016+0.049689i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -66.64 is -0.016+0.049637i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -66.92 is -0.016+0.049585i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -67.2 is -0.016+0.049534i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -67.48 is -0.016+0.049483i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -67.76 is -0.016+0.049432i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -68.04 is -0.016+0.049381i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -68.32 is -0.016+0.049331i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -68.6 is -0.016+0.049281i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -68.88 is -0.016+0.049231i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered during search.
(Function value at -69.16 is -0.016+0.049181i.)
Check function or try again with a different starting value.
Exiting fzero: aborting search for an interval containing a sign change
because complex function value encountered dur...

plot(x,y);

### More Answers (1)

KSSV
on 10 Aug 2022

syms x y

f = 1==1/y*x*exp(x*y)

f =

solve(f,x)

ans =

solve(f,y)

Warning: Solutions are only valid under certain conditions. To include parameters and conditions in the solution, specify the 'ReturnConditions' value as 'true'.

ans =

##### 3 Comments

belghazdis mohammed
on 10 Aug 2022

Thank you very much for your answer. for me I am looking for the values of y when x varies between 0.1 and 1.

thank you in advance

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!**An Error Occurred**

Unable to complete the action because of changes made to the page. Reload the page to see its updated state.

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

## How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

### Americas

- América Latina (Español)
- Canada (English)
- United States (English)

### Europe

- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)

- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)

### Asia Pacific

- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)