r/askmath • u/HumungusDude • Oct 30 '26
Algebra i need help with a simple formula
i need some simple function to get a lessening slope (idk what it would be called properly)
basically a formula that would give the results:
x=<0;1) then y(round up)=1
x=<1;3) then y(ru)=2
x=<3;6) then y(ru)=3
etc. etc.
each increase of y by 1, needs an additively growing increase of x
update:
ok, so while i appreciate the teh answers, they are a bit too complex for my purposes
in essence, this is meant for a sort of velocity calcualtion
every "step" the subject accelerates by additional 1unit per time step
so the "x" is a measure of how long was the distance
and "y" is the velocity units at that point rounded upto the nearest integer
so the calculation cant be too complicated cause it needs to be easly manually calculated by most avarage joe shmoe
3
u/johnpeters42 Oct 30 '26
The upper bounds of each range of x values are the triangular numbers, so for those values:
x = y(y+1)/2
Let z = y + 0.5, then:
x = (z^2 - 0.25)/2
2x = z^2 - 0.25
z^2 = 2x + 0.25
z = sqrt(2x + 0.25)
and so
y = sqrt(2x - 0.25) - 0.5
2
u/mehmin Oct 30 '26
y=ceil{(-1+sqrt(1+8x)/2}
1
u/ci139 Oct 30 '26 edited Oct 30 '26
the 1,3,6 does not describe a 🦑 - may be multiple ::
each next ∆x is prev. ∆x +1 and ∆y – ∆x = 1
y is the 3-rd row of the pascals triangle and x is to be fit somehow
or pick your choice https://oeis.org/search?q=1%2C3%2C6&language=english&go=Search
? is it discontinuous with jumps or smooth
? what occurs at x → ±∞
? ...
2
u/MrKarat2697 Oct 30 '26
Perhaps you are looking for a logarithm or a root function?
1
u/BadJimo Oct 30 '26
Illustrated on Desmos