Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to solve transecedental equation using matlab
Date: Sat, 14 Feb 2009 21:33:02 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 7
Message-ID: <gn7dae$np3$1@fred.mathworks.com>
References: <3e609bfa-176d-4203-883a-6e51a6dca80d@g1g2000pra.googlegroups.com> <gn7895$o9t$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1234647182 24355 172.30.248.35 (14 Feb 2009 21:33:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 14 Feb 2009 21:33:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:518291

Roger,
Perhaps I missed something.  
We know tanh(a*x) has only one root, x = 0. But tan(a*x) has many roots because it is periodic, plotting tanh(a*x) and -tan(a*x) on the same graph, we can see multiple intersection points.

ezplot('-tan(2*x)',[-4*pi 4*pi])
hold on
ezplot('tanh(2*x)',[-4*pi 4*pi])