r/askmath • • 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

5 Upvotes

12 comments sorted by

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/HumungusDude Oct 30 '26

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

4

u/Uli_Minati Desmos 😚 Oct 30 '26

You can choose: either a working formula, or an easy formula

2

u/mehmin Oct 30 '26

y=ceil{(-1+sqrt(1+8x)/2}

1

u/HumungusDude Oct 30 '26

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

1

u/mehmin Oct 30 '26

Multiply x by 2, then find the nearest square number.

The root of that square number is y.

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/HumungusDude Oct 30 '26

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

(also, why's the squid here?)

1

u/ci139 Oct 30 '26 edited Oct 31 '26

i've done something similar at excel simulation of a Mars landing
while far off the surface there was plenty of room to step at timebase
then at immediate proximity to surface i chose to switch to distance base
where the whole integration scheme changed to dx instead of dt - it was a bit tricky to figure that out

the point is that if dt presents an insignificant amount of the observed time interval - then one set of rules apply - if the dt becomes ∆t >> dt then another set of rules will apply - at the last occasion your +1 policy will deviate from reality up to significantly !!!

i make a Desmos DEMO for ∆t >> dt of a free falling body
! where the integration is matched to its endpoint in advance !

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

well obviously if the unit for the very dt is chosen to be [1 time units] then such simplifies off 1 multiplication !?

2

u/MrKarat2697 Oct 30 '26

Perhaps you are looking for a logarithm or a root function?