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

  • Context: Graduate 
  • Thread starter Thread starter Big-Daddy
  • Start date Start date
Click For Summary
SUMMARY

This discussion focuses on deriving a closed-form expression, k(n), for the rounding-down function RD(f(n)) where f(n) is defined for positive integers n. The key findings indicate that for even n, RD(f(n)) equals f(n), while for odd n, RD(f(n)) can be expressed as f(n) minus a constant fraction x, which varies by function. Specifically, the constants are x=0.5 for the first function, x=0.75 for the second, and x=0.25 for the third. The proposed solution involves defining a function g(n) that differentiates between even and odd n to facilitate the closed-form expression.

PREREQUISITES
  • Understanding of rounding functions, specifically RD(f(n)) and the floor function.
  • Familiarity with mathematical notation and functions, particularly in the context of integer values.
  • Basic knowledge of piecewise functions and their applications.
  • Experience with function manipulation and algebraic expressions.
NEXT STEPS
  • Research the properties and applications of the floor function, particularly in mathematical analysis.
  • Explore piecewise function definitions and their implications in mathematical modeling.
  • Investigate the use of rounding functions in computational algorithms.
  • Learn about closed-form expressions and their significance in mathematical problem-solving.
USEFUL FOR

Mathematicians, computer scientists, and students studying discrete mathematics or numerical methods who are interested in function analysis and closed-form solutions.

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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K