I'm working on game development, and I want to make a U-Shaped graph where I can specify the distance between the x intersections, and the depth of the graph. The closest thing I have is this:
https://www.desmos.com/calculator/efsp6ncsdt
This sort of works, in that they are proportional, but the values are not specific. The whole x-multiplier component I worked out through recording the distance between the intersections with increasingly small multipliers, but only works exactly for a specific depth. Thanks to anyone who can help