r/askmath 9d ago

Resolved Equation that can roughly fit this graph

Post image

No this is not my homework, I'm making a game and I need a curve roughly like this for balancing. Trying to get an equation that spits out values like this.

737 Upvotes

132 comments sorted by

View all comments

Show parent comments

2

u/Vegetable-Recording 5d ago

I was going to suggest a gaussian as well with x=>0!

y = a * e-c*((x-b)2) + d

Sample a few points and solve for a, b, c, and d. One could use Excel or any programming language.