PureBytes Links
Trading Reference Links
|
<SPAN
class=110334314-28012004>thanks DT, I have to study your code but I think you
have the general idea. I have an impossible formula to transform (it contains
HHV and LLVs, stochastic mutation) and want to find the x that would give
me the given y. Right now I linearly increment x untill I hit my
y-target, this is awfully slow.
<SPAN
class=110334314-28012004>
<SPAN
class=110334314-28012004>like y = function(x); // y ranges 0-100 and I want
2 decimal places for x that gives me a given
y
<SPAN
class=110334314-28012004>
<SPAN
class=110334314-28012004>I thought cutting the range in half, see whether it is
greater or less, cut the result in half again, etc. I am not a math guy but I
have used AD-converters that worked like that and what we can do in
hardware we can do in software :-)
<SPAN
class=110334314-28012004>
<SPAN
class=110334314-28012004>thanks for the starter
DT,
<SPAN
class=110334314-28012004>herman
<SPAN
class=110334314-28012004>
<SPAN
class=110334314-28012004>
<SPAN
class=110334314-28012004>
<SPAN
class=110334314-28012004>
<SPAN
class=110334314-28012004> <FONT
face=Tahoma size=2>-----Original Message-----From: DIMITRIS TSOKAKIS
[mailto:TSOKAKIS@xxxxxxxxx]Sent: January 28, 2004 9:18
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re:
Successive Approximation in afl
Herman,You mean a procedure like thisa=1;b=2;z=0;
st0=0.1;st1=0.01;st2=0.01;//1st
decimalfor(i=a;i<b;i=i+st0){if(i^2<2 AND
(i+st0)^2>2)z=i;}//2nd
decimalfor(i=z;i<z+st0;i=i+st1){if(i^2<2 AND
(i+st1)^2>2)z=i;}//...etcPlot(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,> hermanSend BUG
REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:<A
href="">http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:<A
href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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 Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|