I came to see that in my games, no matter how hard I try to avoid using graphs, they're chillin' in a corner and from time to time they're like
So I have to deal with them and start embracing them already.
Ok. My math level is like from secondary school but I'll be studying more from now on.
The general idea is that most of the times I have the graph in mind (several pairs of points) and need to find the function for it.
I know how to play with linear functions, how to offset them up/down and left/right, or how to make them steeper/milder. I could even draw something with graph lines.
The problem arises when it comes about non-linear graphs, like polynomial, exponential, logarithmic, trigonometric etc. Here I know nothing.
So I'm making an appeal to whoever is willing to help me, please tell me if there's a place anywhere to discuss about graphs and I (very noob, as I was saying) could learn some techniques about them.
On with the questions at hand:
1. How would I know what kind of function I need for a certain graph shape?
I can plug in the pairs of points into some best fit finder software but it gives back some weird complicated functions which I can't manipulate to alter the offset or shape. So if I'd want to nudge it to the right a bit, I wouldn't know what values to change in the function. If I plug the new pairs of points more to the right, it throws me a different function.
So I want to find it manually, from 2 pairs of points(Yes, I know they should be 3 for a non-linear)representing the general slope of the function, starting from a more general class of functions. Knowing the class mechanism, I'd work a bit on each of the coefficients and I'd get a simple function to pass through the 2 points and as close as possible by the middle curving point, like a bezier curve in a paint program.
The curving point precision shouldn't be more important than the overall function simplicity.
2. Can a non-linear graph function be edited in such a way that the graph is
A. mirrored
B. flipped
C. made more steep/mild
...?
3. Here is an example of a graph I'd like to find the function of:

It's the pink one.
I don't ask you for the specific function for the graph; instead please tell me how to approach the problem knowing these:
A. it's symmetrical by the yellow line.
B' it has a vertical asymptote at x=0 and a horizontal one at y=0.
OR
B" it may cross the axes further to negative x and y, at 0,8 and 8,0 respectively.
C the curvature shape doesn't matter (it may be very well a quarter of a circle)
D. I'd like to easily edit the function so based on it, I get new ones for the red, green, blue and light blue ones.
My long guess tells me that it should be a simple function. I'd say logarithmic for the pink one but what about editing it to become blue or light blue? So I guess it's not log.











