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

[amibroker] The function of a function of a function



PureBytes Links

Trading Reference Links


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





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/