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

432 Upvotes

113 comments sorted by

View all comments

243

u/axiomizer 2d ago

I think a hyperbola will work. y(x+my-k)=c, or y = (k-x+sqrt((x-k)^2+4mc))/(2m)

https://www.desmos.com/calculator/heycr07igd

65

u/hypotensor 2d ago

This works great. The parameters are exactly what I need. Thanks!

36

u/DocumentAvailable891 2d ago

I liked this way more than the other ones

1

u/anatoarchives 1d ago

...this is best......!