How do i repeat a function n times

how do i repeat a function n times without having to add multiple of the same function (it will take a lot of them at the same time)

Why do you need it multiple times? There may be a more efficient way than having separate expression lines for each one.

off the dome I’d say make a template with all the appropiate transformations and then for each transformation make it a list.

f(x)=ax+b

a=[3,4,5]
b=[-2,7,1]

That way you can have a bunch of different versions of the original parent function. Depending on what you’re doing, those lists can be dynamic and have elements added to them from the CL layer.

1 Like

If you want to repeat the same function, graphed with the same color, you could also use something like:

f(x)=ax+b
a=[4].random(10)
b=[-6].random(10)

This would make 10 “copies” of a line with slope 4 and y-intercept -6.

(There is a method to have different colors using a list, but I think it’s a little unwieldy)