Closed-Form for RD(f(n)): Finding k(n)

  • Thread starter Thread starter Big-Daddy
  • Start date Start date
Big-Daddy
Messages
333
Reaction score
1
I have 3 functions in n which are rounded down to the nearest integer, and I need a closed-form way of writing each function. n will be a positive integer in all cases.

(Let the notation RD(f(n)) denote rounding-down the value of f(n) for a certain n, to the nearest integer.) What I have found with each function is that f(n)=RD(f(n)) for all even values of n, and RD(f(n))=f(n)-x where x is a fraction which varies from function to function but, for a given function, is constant across all values of n. For the first function, x=0.5, for the second, x=0.75, for the third, x=0.25.

Knowing this, how can I rewrite RD(f(n)) as a closed-form function, k(n), of n and f(n)? The key lies in finding some g(n) so that g(n)=-1 if n is odd and g(n)=0 if n is even; then I could write k(n)=RD(f(n))=f(n)+g(n)*x.
 
Mathematics news on Phys.org
Can't you use the "floor" function, f(x)= \lfloor x \rfloor which is defined as "the largest integer less than or equal to x"?
 
HallsofIvy said:
Can't you use the "floor" function, f(x)= \lfloor x \rfloor which is defined as "the largest integer less than or equal to x"?

No, that's the very definition of my problem. I need a k(x) such that k(x) = RD(f(x)) = \lfloor f(x) \rfloor to use your notation.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top