PureBytes Links
Trading Reference Links
|
Herman,
You mean a procedure like this
a=1;b=2;z=0;
st0=0.1;st1=0.01;st2=0.01;
//1st decimal
for(i=a;i<b;i=i+st0)
{
if(i^2<2 AND (i+st0)^2>2)
z=i;
}
//2nd decimal
for(i=z;i<z+st0;i=i+st1)
{
if(i^2<2 AND (i+st1)^2>2)
z=i;
}
//...etc
Plot(z,"sqrt(2)",1,1);
to find sqrt(2) without using all the values from 1 to 2 ?
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Herman vandenBergen" <psytek@xxxx>
wrote:
> Hello,
>
> has anybody come accross a successive approximation routine in afl?
Or
> perhaps js?
>
> thanks,
> herman
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|