How do you write in J a "tent" function:
g(x)= x/2 if 0<=x<=1/2,
(1-x)/2 if 1/2 < x < 1
and, more important, How do you write in J a Takagi function with the "tent"
function:
h(x)= Sum [r=0 to infinite, g(2^r x)/2^r]
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
