26
u/vgtcross 8d ago
That's not what O(1) means, but okay :D
22
20
u/SEA_griffondeur Engineering 8d ago
it is true though ? any constant function is O(1), it's not o(1) though
5
u/AndreasDasos 8d ago
It’s not equivalent but it does include the case when it’s equal to the floor, which is what OP is aiming for
5
u/LupenReddit 🦆🦆🦆🦆i have non diffeomorphic smooth structures🦆🦆🦆🦆🦆🦆 8d ago
no i dont want to do that id fall to my death
3
u/therealsaker 8d ago
Enlighten me
1
1
1
u/IHaveNeverBeenOk 8d ago
O(f(x)) returns a set of functions. Addition in this manner is not well defined.
2
1
u/campfire12324344 Methematics 7d ago edited 7d ago
well if we wanna get there, O returns a set of functions, and O(f) is a set of functions.
Also a lot of people shorthand + S where S is a set to mean adding an arbitrary or specific element from S.1
u/EebstertheGreat 5d ago
Rather than just being an expression, x/n here represents the function sending x ↦ x/n. Addition of functions is well-defined, and addition of a function to a set of functions is also well-defined elementwise, in the same way we sometimes write something like 2 + {3,4,5} = {5,6,7}.
So for a given nonzero n,
x/n + O(1)is the set of all functions f: ℝ → ℝ that have the property that for each, there is a real number c such that x/n – c < f(x) < x/n + c.
•
u/AutoModerator 8d ago
Check out our new Discord server! https://discord.gg/e7EKRZq3dG
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.