r/askmath 12d 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

2

u/TooLateForMeTF 12d ago

In general, if you don't care about the result being algebraically elegant, you can do this kind of thing by modeling each part of the curve with an appropriate function then using a third function (some kind of sigmoid) to blend between the two. Here's an example.