From: "Steven_Lord" <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Making two functions equal
Date: Wed, 6 Jul 2011 09:41:17 -0400
Organization: MathWorks
Lines: 21
Message-ID: <iv1olt$34m$>
References: <iuqiu9$mdj$> <iuqojk$69r$> <iuvs91$19b$> <iv00l3$d2b$> <iv0vj6$rlf$>
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Trace: 1309959677 3222 (6 Jul 2011 13:41:17 GMT)
NNTP-Posting-Date: Wed, 6 Jul 2011 13:41:17 +0000 (UTC)
In-Reply-To: <iv0vj6$rlf$>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Xref: comp.soft-sys.matlab:735125

"Reshma B" <> wrote in message 
> Dear Sir,
> Thanks for your reply. I am getting a NAN value when run the programme. 
> But I am getting the answer for the same input when I did using bisection 
> method. But it is consuming much of my time. Is there any way to solve 
> this? my input was q=0.2;

Impossible to say without seeing the code for your two functions. Please 
post them to the newsgroup (do NOT email them to me directly) and someone 
may be able to offer suggestions as to what's going wrong.

Steve Lord
To contact Technical Support use the Contact Us link on