An example writte in the J programming language:
<<
Here's a J program to calculate the average of a list of numbers:
avg =. +/ % #
avg 1 2 3 4
2.5
'#' - counts the number of elements in the string. '+/' - adds up all the elements in the string. '%' - divides the sum of the elements by the number of elements.
>>
Amazing! The idea seems to be: you do not specify the parameters, only the functions to apply... :>
I have to get the specs (especially of the semantics) and see how they implemented it. It looks very "different".
Some fractals in J
http://www.jsoftware.com/jwiki/Studio/FractalsVisualizationJ
And even more graphics, math and fractals in J
http://ww2.lafayette.edu/~reiterc/
PLaSM
functional language for computing with geometry
http://www.plasm.net/index.html
No comments:
Post a Comment