From: nobert gerome on 31 Dec 2009 07:57 I want to solve the same equation, but give me back 0, i don't understand why? somebody can explain to me my error??? "Faisal Siddiqui" <aeroengg(a)gmail.com> wrote in message <h3qqha$i91$1(a)fred.mathworks.com>... > "Matt Fig" <spamanon(a)yahoo.com> wrote in message <h3qnol$f6g$1(a)fred.mathworks.com>... > > f = @(x) cos(x) * cosh(x) + 1; > > fzero(f,2) > > ans = > > 1.8751 > > Can you please explain this a bit more, I am new to Matlab. > > Thanks a lot for your help
From: nobert gerome on 31 Dec 2009 07:58 I want to solve the same equation, but give me back 0, i don't understand why? somebody can explain to me my error??? "Faisal Siddiqui" <aeroengg(a)gmail.com> wrote in message <h3qqha$i91$1(a)fred.mathworks.com>... > "Matt Fig" <spamanon(a)yahoo.com> wrote in message <h3qnol$f6g$1(a)fred.mathworks.com>... > > f = @(x) cos(x) * cosh(x) + 1; > > fzero(f,2) > > ans = > > 1.8751 > > Can you please explain this a bit more, I am new to Matlab. > > Thanks a lot for your help
From: Greg Heath on 2 Jan 2010 14:17 On Dec 31 2009, 7:58 am, "nobert gerome" <kiki_jesp...(a)yahoo.fr> wrote: > I want to solve the same equation, but give me back 0, i don't understand why? somebody can explain to me my error??? >> solve('cos(x)*cosh(x)+1') solve('cos(x)*cosh(x)+1','x') x = solve('cos(x)*cosh(x)+1') x = solve('cos(x)*cosh(x)+1','x') ans = 1.8751040687119611664453082410782*i ans = 1.8751040687119611664453082410782*i x = 1.8751040687119611664453082410782*i x = 1.8751040687119611664453082410782*i Hope this helps. Greg
|
Pages: 1 Prev: how to Plot 3 graph in one figure Next: Sort labelled coordinates of an object |