1 Reply Latest reply on May 9, 2017 1:24 PM by Steven Barry

    Discontinuous Equation-driven curve function

    John Scattiglio

      Hello, I'm trying to create a wave function with decreasing frequency/periodicity. My math skills are rusty but I've had plenty of calc based trig in college(ehh hmmm20yrs ago..). I'm trying the equation-driven curves to accomplish this. The function I've created to suit my project's dimensions is : y(x) = .15*sin(x^(1+x/100)*pi/3)+.33


      This works fine for domain x {0,30} but fails when x spans from negative to positive values. So I tried:


      y(x) = .15*sin(abs(x)^(1+abs(x)/100)*pi/3)+.33


      This tells me the curve cannot be generated because it is discontinuous. Essentially it says y=abs(x) is discontinuous. Any math people out there who can advise? Thank you.

        • Re: Discontinuous Equation-driven curve function
          Steven Barry

          Hi John.


          Another mathematical definition of abs(x) is sqr(x^2)

          I just tried it out, and it appears to work fine in the negative domain, basically mirroring your function about x = 0.


          So what you will type into the equation line is:




          Another idea: you might consider swapping sin for cos or (1-cos(...)), so you avoid the cusp at x = 0 (although I'm not sure what your application is).