[code]initial = -1[br]final = 1[br]period = abs(final-initial)[br][br]#-- Main function. You can modify this one!--#[br]f(x) = abs(x) + x[br]SetVisibleInView(f, 1, false)[br][br]#-- Auxilary functions --#[br]g(x) = If(initial <= x <= final, f)[br]SetVisibleInView(g, 1, false)[br][br]middle = initial + (final-initial)/2[br][br]r(x) = ((x - middle) / period - round((x - middle) / period, 0)) period + middle[br]SetVisibleInView(r, 1, false)[br][br]#-- Periodic function based on f(x)--#[br]h(x) = g(r(x))[/code]