Is there a way to find the integer representation of a real number?

  • Context: High School 
  • Thread starter Thread starter hatem240600
  • Start date Start date
  • Tags Tags
    Integer Representation
Click For Summary

Discussion Overview

The discussion revolves around finding an algebraic formula to represent the integer part of a real number without using the floor function. Participants explore various methods and definitions related to this problem.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant inquires about an algebraic formula to find the integer representation of a real number without using the floor function.
  • Another participant suggests using IF statements and considers the range of the function as a potential approach.
  • A different participant proposes using the arctan(tan(x)) function to create a sawtooth pattern, while questioning the inclusion of arctan2 in the algebraic formula.
  • There is a call for a clear definition of what constitutes an "algebraic" approach, indicating that the lack of clarity may hinder the discussion.
  • The thread is noted to be closed due to the original poster not addressing requests for clarification on their question.

Areas of Agreement / Disagreement

Participants express differing views on what constitutes an algebraic method and how to approach the problem, leading to a lack of consensus. The discussion remains unresolved due to the original poster's failure to clarify their question.

Contextual Notes

There are limitations regarding the definitions of algebraic methods and the assumptions underlying the proposed solutions. The discussion also highlights the challenge of undefined points in certain functions.

hatem240600
Messages
7
Reaction score
3
Is there a way to find the integer of a real number? Of course without using the [x] function. What I am looking for here is an algebraic formula.
 
Mathematics news on Phys.org
You want an algorithm for a function without allowing the use of functions, right ?

How about IF statements ? Range of your function ?

(by the way, in many computer languages a = b does tthe trick if a is an integer and b a real :smile: )
 
Last edited by a moderator:
  • Like
Likes   Reactions: jedishrfu
You can get pretty close by starting with arctan(tan(x)). This gives you a sawtooth which you can shift, scale and subtract from f(x)=x. It's just those pesky points where tan x is undefined that get you.

Will you allow arctan2 as part of an algebraic formula?
 
To get answers that you want, you will note that the posters so far have asked how you define algebraic. These answers are reasonable. Please provide a solid definition. We cannot leave the thread open, if you continue to have the people who are helping you forced to guess. Thanks.
 
  • Like
Likes   Reactions: YoungPhysicist, jedishrfu and BvU
Since the OP has come back to the site and ignored the request for question improvement, this thread is closed. Thanks to the two posters who gave it a good try.
 
  • Like
Likes   Reactions: YoungPhysicist, BvU and berkeman

Similar threads

  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K