I have a variable Y that i pass through lots of maths functions.
Y in graphics is a line of length 1, ranging from 0 to 1, an axis of a graph.
I only need to do lots of maths functions on a small part of Y, a segment of the line going from 0 to 0.2
at the moment i am doing all the maths for the complete variable, and then multiplying the parts i dont need by zero. How can i instead do maths on only the part of the variable in the range 0 to 0.2?
help i am really stuck!!! i dont understand C processing
I suppose the maths looks like this:so a long equation, that is calculated 100 times, so alot of maths!Code:if (Y<0.2) y=y*4*tan(y)*acos(sin(y*pi))^4/X+var1+var2+var3*sin..... (ten lines later) *tan(y)*acos(sin(y*pi))^4