From: Ariel Gimenez on
Hi!,
I'm Ariel G and I have a problem with matlab. I tried to find a root of a function but I have differents numbers.
The funcion is:
y = log(x) - exp(-x)

The fzero('log(x)-exp(-x)',2) results: ans = 1.3098

I put an ezplot and everything goes ok. BUT, in other applets and in MAC OSX grapher
the root of the function is near 1.593...

What I'm missing ?
Thank you!!
From: TideMan on
On Jul 22, 5:16 pm, "Ariel Gimenez"
<ariel_gustavo_gime...(a)yahoo.com.ar> wrote:
> Hi!,
> I'm Ariel G and I have a problem with matlab. I tried to find a root of a function but I have differents numbers.
> The funcion is:
> y = log(x) - exp(-x)
>
> The fzero('log(x)-exp(-x)',2) results: ans = 1.3098
>
> I put an ezplot and everything goes ok. BUT, in other applets and in MAC OSX grapher
> the root of the function is near 1.593...
>
> What I'm missing ?
> Thank you!!

help log
help log10
From: Ariel Gimenez on
TideMan <mulgor(a)gmail.com> wrote in message <e1d9ef03-bafb-421d-9f97-4bddd04f40e7(a)g1g2000pre.googlegroups.com>...
> On Jul 22, 5:16 pm, "Ariel Gimenez"
> <ariel_gustavo_gime...(a)yahoo.com.ar> wrote:
> > Hi!,
> > I'm Ariel G and I have a problem with matlab. I tried to find a root of a function but I have differents numbers.
> > The funcion is:
> > y = log(x) - exp(-x)
> >
> > The fzero('log(x)-exp(-x)',2) results: ans = 1.3098
> >
> > I put an ezplot and everything goes ok. BUT, in other applets and in MAC OSX grapher
> > the root of the function is near 1.593...
> >
> > What I'm missing ?
> > Thank you!!
>
> help log
> help log10

SOLVED! Thank you!!
y = log10(x) - exp(-x)