[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Re: The function of a function of a function



PureBytes Links

Trading Reference Links

no - recursive is when you call the function f1 from within the function f1.
all of these calls to f1 were from outside the function - in f10.
 
d


  _____  

From: mmqp [mailto:mmqp@xxxxxxxxx] 
Sent: Tuesday, October 05, 2004 12:14 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: The function of a function of a function



Is this equivalent to recursive function call?

--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
<TSOKAKIS@xxxx> wrote:
> 
> The function f1 returns the sin of x.
> The function f10 returns the sin of the sin of the sin...10 
times... 
> of x.
> The f10(f10(f10(x))) applies the sin transformation 1000 times 
over 
> the result of sin(x).
> The respective AFL would be
> 
> //The function of a function
> function f1(x)
> {
> return sin(x);
> }
> function f10(x)
> {
> return f1(f1(f1(f1(f1(f1(f1(f1(f1(f1(x))))))))));
> }
> x=2*3.14*10*Cum(1);
> Plot(f1(x),"f1",colorBlack,1);
> Plot(f10(x),"f10",colorWhite,1);
> Plot(f10(f10(f10(x))),"f1000",colorRed,1);
> 
> Dimitris





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 



Yahoo! Groups Sponsor	

ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=129bhbcro/M=295196.4901138.6071305.3001176/D=gr
oups/S=1705632198:HM/EXP=1097079264/A=2128215/R=0/SIG=10se96mf6/*http://comp
anion.yahoo.com> click here	
 
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=
:HM/A=2128215/rand=325769913> 	


  _____  

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
<mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
  

*	Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/