Ceiling and floor operators used for min max

  • Context: Undergrad 
  • Thread starter Thread starter quantum__2000
  • Start date Start date
  • Tags Tags
    Max Operators
Click For Summary

Discussion Overview

The discussion revolves around the use of ceiling and floor operators as substitutes for minimum and maximum functions in mathematical notation. Participants explore the clarity and acceptance of such notations, particularly in relation to programming conventions and mathematical definitions.

Discussion Character

  • Debate/contested
  • Technical explanation

Main Points Raised

  • Some participants recall seeing ceiling and floor operators used with super/subscripts to denote min and max, specifically citing the notation \lceil x \rceil ^k to represent min(x,k).
  • One participant expresses strong disapproval of this notation, ranking it among the worst they have encountered.
  • Another participant clarifies the definitions of the ceiling function, \lceil x \rceil, and the floor function, \lfloor x \rfloor, providing examples from programming languages.
  • One participant suggests that the notation could reasonably denote the smallest multiple of k greater than or equal to x, proposing a generalization of the ceiling function.
  • Another participant argues that the notation is incorrect and likely to be confused with exponents, advocating for more standard notations used in programming.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the appropriateness of using ceiling and floor operators for min and max functions. There are multiple competing views regarding the clarity and correctness of the notation.

Contextual Notes

There are unresolved issues regarding the acceptance of the proposed notation in mathematical and programming contexts, as well as potential confusion with established meanings of the ceiling and floor functions.

quantum__2000
Messages
1
Reaction score
0
I remember seeing somewhere people using symbols for ceiling and floor operators together with super/subscripts as substitutes for min and max. Example:
\lceil x \rceil ^k
to mean min(x,k).

Has anyone ever seen this? Where? Thanks!
 
Mathematics news on Phys.org
I'm sorry, I haven't seen this. But I just wanted to say that this certainly ranks among the top 10 worst notations I've ever seen.
 
quantum__2000 said:
I remember seeing somewhere people using symbols for ceiling and floor operators together with super/subscripts as substitutes for min and max. Example:
\lceil x \rceil ^k
to mean min(x,k).

Has anyone ever seen this? Where? Thanks!
I haven't seen the notation as you used it, to give the minimum of two numbers, but I have seen this:
##\lceil x \rceil##, also called the smallest integer function. It is defined as being the smallest integer that is greater than or equal to x. Many programming languages, including C, C++, and others, have a ceiling function, ceil(x), that does this.
For example, ##\lceil 1.8 \rceil = 2##.

The counterpart is the floor function, or greatest integer function, denoted ##\lfloor x \rfloor##. C, C++, and others have floor(x). This is defined as the largest integer that is less than or equal to x.
For example, ##\lfloor 2.35 \rfloor = 2##.

I agree with micromass that ##\lceil x \rceil^k## is terrible notation.
 
It would be a reasonable notation for denoting the smallest multiple of k greater than or equal to x. That is, the generalization of ceiling to a modulus other than 1.
 
  • Like
Likes   Reactions: ElijahRockers
Yes, that's definitely incorrect notation and most people will confuse it as exponents. As someone else stated, the notation that is correct and seen in programming languages is [7.8]=8 or [5.1]=5. These are more standard and less likely to be confused.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
21K
Replies
2
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K