Path: news.mathworks.com!not-for-mail
From: "Steven_Lord" <slord@mathworks.com>
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$1@newscl01ah.mathworks.com>
References: <iuqiu9$mdj$1@newscl01ah.mathworks.com> <iuqojk$69r$1@newscl01ah.mathworks.com> <iuvs91$19b$1@newscl01ah.mathworks.com> <iv00l3$d2b$1@newscl01ah.mathworks.com> <iv0vj6$rlf$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: ah-slord.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain;
	format=flowed;
	charset="UTF-8";
	reply-type=response
Content-Transfer-Encoding: 7bit
X-Trace: newscl01ah.mathworks.com 1309959677 3222 172.31.44.194 (6 Jul 2011 13:41:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 6 Jul 2011 13:41:17 +0000 (UTC)
In-Reply-To: <iv0vj6$rlf$1@newscl01ah.mathworks.com>
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: news.mathworks.com comp.soft-sys.matlab:735125



"Reshma B" <rbmindworking@gmail.com> wrote in message 
news:iv0vj6$rlf$1@newscl01ah.mathworks.com...
> 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
slord@mathworks.com
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com