Misplaced Pages

Talk:Floor and ceiling functions: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 18:12, 29 January 2019 editSpitzak (talk | contribs)Extended confirmed users9,993 edits ISO codes← Previous edit Revision as of 12:58, 6 September 2019 edit undoIncnis Mrsi (talk | contribs)Extended confirmed users, Pending changes reviewers, Rollbackers11,646 edits postings from the Stone Age go to /Archive 1; Revert: new sectionNext edit →
Line 3: Line 3:
{{talkheader}} {{talkheader}}


== Formula disrupts article flow ==

If ''m'' and ''n'' are ] integers, then
:&sum;<sub>1&le;''i''&le;''n''-1</sub>&nbsp;floor(''im''/''n'') = (''m''-1)(''n''-1)/2.

This identity doesn't in any way help understanding what the floor function is. Nor is it somthing special: there are probably dozens of identities involving the floor function. It disrupts the flow of the article. If you want to include it, please explain why you want to on this page before doing so and try to fit it in with the rest of the article. -- ] 13:57 Dec 23, 2002 (UTC)

If there are dozens of identities involving the floor function, then they should all be listed in this article. Suppressing information certainly doesn't help the reader. But I agree with you that it was disrupting the flow of the article. ] 03:14 Dec 24, 2002 (UTC)

== same as ]? ==

Isn't the floor function just a specific case of ]? (i.e., truncating the number back to the ]) &nbsp; &ndash;] 02:14, 2005 Apr 20 (UTC)

:Not over its entire domain -- floor(-2.3) is -3, however the truncation of -2.3 is -2. -- 20:47, 14 September 2005 (UTC)

== Ceiling function ==

Why is the ceiling function here? It should be in its own article!! It's like having an article about males in the female article... ] 14:30, 15 Jun 2005 (UTC)

: ] redirects to this article. I think it's safe to say they're similar enough to warrant their current cohabitation. -- 20:47, 14 September 2005 (UTC)

== Derivative ==

<math>{ d \over dx } \lfloor x \rfloor = 0</math>

With the exception of discontinuities. -- 20:47, 14 September 2005 (UTC)

:And those discontinuities are represent-able as (x - )/(x - ) which has led many to try to see the results of just making it 0. It /is/ interesting but probably not worthwhile in a wiki article at this current time.

:] (]) 17:55, 7 March 2016 (UTC)

The representation as a ratio would depend on the limit being taken, e.g., central derivative vs. other. Regardless, a 0/0 formulation is not equivalent to "just making it 0". This would need citations before we could add something to the article. ] (]) 18:35, 7 March 2016 (UTC)

:Whoa whoa whoa. You completely misread what I just said. I said that it's discontinuity is expressed as a polynomial fraction. Some people (usually weird people doing very weird things) try to look at results of saying it is zero as an incorrect premise. Like I even said, it doesn't belong in article. So I don't see why you need to follow me around trying to say I'm wrong when I already told the person above me that the edit does not belong.

:] (]) 19:29, 7 March 2016 (UTC)

I have a watchlist that tells me when pages I am interested in are edited. It alerted me to your edits. I apologize that it looked like I was following you around and I apologize for misinterpreting your message. ] (]) 15:22, 8 March 2016 (UTC)

== Article name ==

The three functions discussed on the article page definitely should be in the same article, but the article name is slightly misleading. Can I suggest that whatever the collective term is for these functions be used? I'd move the page myself but I wouldn't know what to move it to. ] 02:13, 27 May 2006 (UTC)

: I don't think there really ''is'' an agreed upon name for them.

: ] (]) 19:31, 7 March 2016 (UTC)

:: Have you noticed that you are responding to remarks that are more than 9 years old? --] (]) 20:19, 7 March 2016 (UTC)

== Nitpick ==

"Continuous" is a dangerous word to use in computer science, since nothing is analogue. --] 05:18, 18 July 2006 (UTC)

== Rename to rounding function ==
<div class="boilerplate" style="background-color: #efe; margin: 2em 0 0 0; padding: 0 10px 0 10px; border: 1px dotted #aaa;"><!-- Template:polltop -->
:''The following discussion is an archived debate of the {{{type|proposal}}}. <font color="red">'''Please do not modify it.'''</font> Subsequent comments should be made in a new section on the talk page. No further edits should be made to this section. ''

{{{result|The result of the debate was}}} '''Move to ]''' ]<span style="font-size:70%;">]</span> 09:47, 13 December 2006 (UTC)
----
* I '''oppose'''. Rounding is something different than these: reducing the precision in the most accurate way possible. I could somewhat see including rounding here, but I would object to that too. ] 03:47, 22 September 2006 (UTC)
*: '''Update.''' After reading Omegatron's vote, I realized I was not clear with my intention. I oppose merging, under the condition that rounding functions becomes a ''category'', not an article. Then '''floor''', '''ceiling''', '''round''' (others?) would be individual articles, with appropriate crosslinks. Under this organization, I would support a skeleton article on '''rounding functions''' which would read like a disambiguation page, with links to the specific functions. Although the '''Categories:rounding_functions''' page might fit this bill. ] 14:13, 22 September 2006 (UTC)
*:: What are you going to put in ] that's so unique from ] that it deserves its own article? We don't have separate articles for ], ], and ] for the exact same reason. — ] 22:45, 22 September 2006 (UTC)
*::: Well, I would argue maybe we should. Clearly most ''specifics'' written about floor/ceiling are specific to them only. The spirit may be similar, yes, but not the specifics (exception: derivatives, which are some Dirac delta type animal...). But I have made my case, as have you, and others. I accept the community's wisdom. And yes, there are a lot of other controversies in WP that are far more problematic. If the page is merged like the trig page, I still feel it can work well, although some cleanup/reorg might be needed. ] 03:46, 23 September 2006 (UTC)
*: I '''oppose''' the move too, for the same reason. ] (]) 04:36, 22 September 2006 (UTC)
* '''Support''' - ''Floor function'' is of course the wrong title for this article, which covers several rounding methods. — ] 05:01, 22 September 2006 (UTC)

'''Discussion'''
A better name could then be '''floor and ceiling functions'''.

The redlink ] should rather redirect to ]. Note that floor and celing functions are very particular cases of rounding, namely rounding to integers. ] (]) 15:22, 22 September 2006 (UTC)

: ] — ] 22:45, 22 September 2006 (UTC)

:: That should be ] (plural). But I find that name to be too clumsy, and I think ] better reflects what's in the article. ] (]) 02:42, 23 September 2006 (UTC)

::: This somewhat reflects why individual pages would be a plus (see above). But given the choices presented, note that neither ] (plural) nor ] could include '''rounding''', as this is not necessarily "integer".

::: How about "Truncation functions"? I am not wed to this name, just wanted to see what everyone thought. ] 03:53, 23 September 2006 (UTC)

:::: Rounding 4.6 up to 5 is not truncation. — ] 00:50, 25 September 2006 (UTC)

::: Very good point. Although now that you mention that, it seems "rounding functions" suffers from the same drawback, say, floor(4.6). I like neither now, but "rounding" does seem the lesser evil. Can we do better? ]

* '''Oppose/support'''. I oppose the suggested name, but I strongly support a rename of the article. Regarding the suggested name, as previously said, neither '''floor''', nor '''ceiling''' is a rounding function. The only rouding function is '''''round'''''... You might call this article ], but '''round''' should be included as well in that case. A good suggestion already made is simply ], along with the relevant redirects from ] and ]. — ] 16:03, 17 October 2006 (UTC)
*: I saw somewhere a redirect or reference to "discretization"; I would perhaps consider "discretization functions" as an alternate renaming. Advantage: covers all types of functions discussed. Disadvantage: ugly name. Comments? ] 16:19, 17 October 2006 (UTC)

* '''Comment''' - It would make ''much'' more sense to split to ] and ]. They are similar in functionality (both round) but are diametrically different. I found it, for a lack of a better word, "disturbing" that I was redirected to an article entitled "floor function" when I was looking for the ceiling function. The proposition of renaming the article also addresses the problem of having the ceiling and floor functions cohabitating the same article. Just as well combine ] and ]. ] 01:57, 12 November 2006 (UTC)
*: No. War and peace are opposites. The floor and ceiling function are the same thing, but in different directions. I don't know how ''anyone'' could think they belong in different articles. Misplaced Pages articles are about a topic, not a word. — ] 04:24, 10 December 2006 (UTC)

* '''Strong oppose'''. Floor function should keep its status as a title, as Wolfram MathWorld uses it in their title. Also split the articles into ceiling function. ] 07:49, 21 November 2006 (UTC)
*: This is Misplaced Pages, not Wolfram MathWorld. — ] 14:56, 5 December 2006 (UTC)
*'''Oppose''' The rounding function is something else, Floor(''x''+ .5) or similar. Splitting is probably unnecessary, since all this says about the ceiling function is its relationship to the floor function. ] 21:14, 5 December 2006 (UTC)

*'''Oppose'''. I propose the article be renamed ], as per ] —] 03:58, 10 December 2006 (UTC)

== Rename ==

No no no. Vote like this. Which titles do you like best for this article? Note that it currently covers the floor function, ceiling function, and int function.

:Feel free to add additional names, if you support them; we don't need more choices nobody likes. ] <small>]</small> 16:38, 11 December 2006 (UTC)
:: Exactly. — ] 16:41, 11 December 2006 (UTC)

=== Floor function ===
# Keep things simple. ] <small>]</small> 16:35, 11 December 2006 (UTC)
#: I'd consider this "keeping things confusing", since the article is about three related functions. — ] 16:41, 11 December 2006 (UTC)

=== Rounding functions ===
# — ] 04:23, 10 December 2006 (UTC)

=== Integer rounding functions ===

=== Floor and ceiling functions ===
# — ] 04:23, 10 December 2006 (UTC)
# — ]<sup>(])</sup> 23:20, 10 December 2006 (UTC)
# - With redirects ]<sup>]|]</sup> 06:22, 11 December 2006 (UTC)
# Nothing really wrong with this; but it does need the redirects. ] <small>]</small> 16:37, 11 December 2006 (UTC)

=== Truncation functions ===

=== Integral conversion functions ===

=== Discretization functions ===
:''The above discussion is preserved as an archive of the debate. <font color="red">'''Please do not modify it.'''</font> Subsequent comments should be made in a new section on this talk page. No further edits should be made to this section.</div><!-- Template:pollbottom -->

== Error in function definition ==

Although the floor and ceiling functions are defined for all real values (of x), the definitions
max { n R : n <= x }
and
min { n R : n >= x }
do not restrict "n" to integral (integer) values. As defined in the article, the functions would always return the value x!

The necessary correction is to have n come from the set of integers, Z, rather than the set of real numbers, R:

max { n Z : n <= x }
and
min { n Z : n >= x }.
] (]) 17:59, 16 June 2008 (UTC)

== One formula is false ==

* When x and n are positive numbers
::<math> \left\lfloor \frac{n}{x} \right\rfloor \geq \frac{n}{x} - \frac{x-1}{x} </math>

If n=9.5, x=5

::<math> \left\lfloor \frac{n}{x} \right\rfloor = 1 </math>

::<math> \frac{n}{x} - \frac{x-1}{x} = 1.9 - 0.8 = 1.1</math>

] (]) 20:09, 29 July 2008 (UTC)

:I've changed ''numbers'' to ''integers''. ] (]) 19:45, 16 August 2008 (UTC)

== ANSI C ==

I've commented out a description of truncation -- ANSI C does not prescribe a direction to round in. ] (]) 19:46, 16 August 2008 (UTC)

: The C99 standard (section 6.3.1.4) requires truncation towards 0. ] (]) 22:52, 2 April 2009 (UTC)


== Computer implementations == == Computer implementations ==
Line 317: Line 158:
:Hope this is addressed with my last edit. :Hope this is addressed with my last edit.
] (]) 18:12, 29 January 2019 (UTC) ] (]) 18:12, 29 January 2019 (UTC)

== Revert ==
The “chosen wiki-links were totally inappropriate” innuendo is predictably false: indeed, {{math|−⌊''x''⌋ {{=}} ⌈−''x''⌉}} means namely that {{math|⌊·⌋}} and {{math|⌈·⌉}} are ] (wrt ]) by “−”. Certainly {{serif|I}} know that the composition of functions forms ] not a group, but don’t monoids pertain to ]? {{serif|I}} suggest {{u|Joel B. Lewis}} to think before crying loudly about bad links. Moreover, removal of the '']'' link borders vandalism, after all.

Also note that Joel’s edit confronts ] for the sake of confronting the nasty person Incnis_Mrsi. The “{{math|{''x''} + {−''x''} }}” piece was deleted without appearing in ]? Go and save it there, why should my cleanup be reverted? ] (]) 12:58, 6 September 2019 (UTC)

Revision as of 12:58, 6 September 2019

WikiProject iconComputer science B‑class Mid‑importance
WikiProject iconThis article is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Computer scienceWikipedia:WikiProject Computer scienceTemplate:WikiProject Computer scienceComputer science
BThis article has been rated as B-class on Misplaced Pages's content assessment scale.
MidThis article has been rated as Mid-importance on the project's importance scale.
Things you can help WikiProject Computer science with:

Here are some tasks awaiting attention:
WikiProject iconMathematics B‑class Mid‑priority
WikiProject iconThis article is within the scope of WikiProject Mathematics, a collaborative effort to improve the coverage of mathematics on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.MathematicsWikipedia:WikiProject MathematicsTemplate:WikiProject Mathematicsmathematics
BThis article has been rated as B-class on Misplaced Pages's content assessment scale.
MidThis article has been rated as Mid-priority on the project's priority scale.
This is the talk page for discussing improvements to the Floor and ceiling functions article.
This is not a forum for general discussion of the article's subject.
Article policies
Find sources: Google (books · news · scholar · free images · WP refs· FENS · JSTOR · TWL
Archives: 1


Computer implementations

Needs more references -- I've tagged with refimprove. Richard Pinch (talk) 21:35, 26 August 2008 (UTC)

Fractional Part Cleanup

The current state of the article is a Frankenstein's Monster reflecting both a time when the fractional part function was defined in the introduction, and now, when it has been moved to the Applications section. For example, the sentence in which the fractional part function is first defined begins "As stated above, ..." I propose putting all the fractional part material in the Applications section, including the fractional part properties. Thoughts? DRE (talk) 21:26, 8 September 2009 (UTC)

Truncation merge

It was proposed, about 29 months ago, that Truncation be merged into this article. I think it's a good idea, but no discussion was actually opened. — Arthur Rubin (talk) 19:38, 12 March 2011 (UTC)

Spreadsheets

Misplaced Pages is not a manual for Excel or other package. I propose to delete that section of the article. McKay (talk) 06:56, 5 September 2011 (UTC)

Inverse

What is the inverse function of these functions, if it even exists? Either way, this info should be added to the article. --93.141.51.184 (talk) 16:36, 22 January 2012 (UTC)

Since all of these functions are piecewise constant, none of them has an inverse function. Just look at the graph! --Joel B. Lewis (talk) 16:43, 22 January 2012 (UTC)

Naked assertion

"None of the formulas in this section is of any practical use."

Very entertaining statement, one that to some would make the section even more worthwhile. Too bad it is impossible to prove. Pressed to correct it, one might substitute the weaker but less objectionable, "Perhaps one day some formula in this section will become something other than a useless curiosity." 129.176.151.28 (talk) 06:02, 13 February 2013 (UTC)129.176.151.28 (talk) 17:18, 13 February 2013 (UTC)

It is absolutely true that none of the formulas is of any practical use. That statement is not contradicted by the assertion that some day someone may find a use for one of them, because it does not say "..and never will be of any practical use". However, it is very difficult to imagine any way that any such formula ever could be of any use. JamesBWatson (talk) 20:55, 15 February 2013 (UTC)
We have given this rather more discussion than it deserves but I stand by my assertion and suggest that you have a tough row to hoe in trying to contradict it. I would suggest that you adopt my position: keep the disputed statement; it's entertaining, quite likely correct, and in any event a harmless comment about something that is tangential to the thrust of the article.129.176.151.28 (talk) 00:31, 23 February 2013 (UTC)

I referenced the claim from a reliable source (Ribenboim) I think Crandall and Pomerance say pretty much the same thing - Virginia-American (talk) 12:16, 23 February 2013 (UTC)

Unlabelled Axes

Graphs with unlabelled axes are meaningless, so could someone please fix the three meaningless graphs in this article. Readers should not have to guess what the graphs are supposed to mean as they may guess wrongly!86.140.5.138 (talk) 13:55, 29 March 2014 (UTC)

Meaning of equivalence

In the section Floor and ceiling functions#Mod operator, could somebody please explain in what mathematical sense the equivalence below is true?

If x is an integer and y is a positive integer,

( x mod y ) x ( mod y ) . {\displaystyle (x\,{\bmod {\,}}y)\equiv x{\pmod {y}}.}

As far as I can tell, there is no equivalence defined in this article. We are therefore left to guess at which equivalence is meant; this is not a recipe for accuracy. If one should suggest that it is an equivalence of integers modulo y, that would seem to be circular; or if we are to understand it in terms of the mod operator defined here, surely it becomes trivial? Yoyo (talk) 04:03, 18 June 2015 (UTC)

Yes equivalence mod y, not circular, yes trivial (though not, perhaps, for the reason you wrote). Doubtful that it belongs in this article (about the floor function), right? --JBL (talk) 12:36, 18 June 2015 (UTC)
I just decided to get rid of it. --JBL (talk) 12:47, 18 June 2015 (UTC)

Is the formular for rounding away from zero correct?

Hi there, the formula for the rounding away from zero function ri(x) in this article's section Floor and ceiling functions#Rounding is claimed to be

ri ( x ) = sgn ( x ) | x | + 1 2 {\displaystyle {\text{ri}}(x)=\operatorname {sgn}(x)\left\lfloor |x|+{\tfrac {1}{2}}\right\rfloor } ,

while in article Rounding#Rounding to integer the respective general formula is

q = sgn ( y ) | y | = sgn ( y ) | y | {\displaystyle q=\operatorname {sgn}(y)\left\lceil \left|y\right|\right\rceil =-\operatorname {sgn}(y)\left\lfloor -\left|y\right|\right\rfloor \,}

and the particular formula for rounding half away from zero:

q = sgn ( y ) | y | + 0.5 = sgn ( y ) | y | 0.5 {\displaystyle q=\operatorname {sgn}(y)\left\lfloor \left|y\right|+0.5\right\rfloor =-\operatorname {sgn}(y)\left\lceil -\left|y\right|-0.5\right\rceil \,} .

So it might be useful to explain more precisely to which of both cases this article's rounding away from zero function applies. Apparently to the latter, and in this case its name shouldn't be just ri(x), but maybe rhi(x)? --Qniemiec (talk) 18:46, 2 May 2016 (UTC)

In the other article, it describes "rounding away from 0", then later describes "rounding to the nearest integer, with tiebreaking rules" (where one possible tiebreaking rule is "round away from 0"). In this article, it describes "round to the nearest integer, with tiebreaking rules" (and ditto). I do not think inventing new notations is a good solution in this situation, but perhaps there are other ways to make it clearer? --JBL (talk) 16:02, 4 May 2016 (UTC)

Inclusion of floor(x+y) and ceil(x+y)

Hello, I would like to propose an edit that would include following formulas

x + y = x + y + { x } + { y } , x + y = x + y + { x } + { y } {\displaystyle {\begin{aligned}\lfloor x+y\rfloor &=\lfloor x\rfloor +\lfloor y\rfloor +\lfloor \{x\}+\{y\}\rfloor ,\\\lceil x+y\rceil &=\lfloor x\rfloor +\lfloor y\rfloor +\lceil \{x\}+\{y\}\rceil \end{aligned}}}

to section 'Equivalences'. Although there are two similar inaqualities already present in the section I believe 'my' equations to be more precise. One of them can be found in Graham, Knuth, Patashnik on p. 70, right above chapter 3.2 FLOOR / CEILING APP., with the other derived likewise.

References

  1. Graham, R.; Knuth, D.; Patashnik, O. (1990). Concrete Mathematics (6. ed.). Addison-Wesley Publishing Company. p. 70.

--Martin Menkyna (talk) 09:56, 15 November 2016 (UTC)

No problem, afaiac go ahead. Don't forget to include the ISBN of the book. - DVdm (talk) 11:50, 15 November 2016 (UTC)

Please better representation

See better ceil(x) at https://www.maplesoft.com/support/help/content/1939/image84.png as better "filled color" (red in this case). The line is also filled, like a bolded line. The addiction of the "empty point" representation of the line function needs to be bold.

Bad source for prime test

This was a good edit by user Roger Hui (talk · contribs). Thanks! However, the cited source says something quite different. Our article now says:

m = 1 n ( n m n 1 m ) = 1 , {\displaystyle \sum _{m=1}^{\lfloor {\sqrt {n}}\rfloor }\left(\left\lfloor {\frac {n}{m}}\right\rfloor -\left\lfloor {\frac {n-1}{m}}\right\rfloor \right)=1,}

which seems correct. But the cited source (first edition, 2001) on page 46 says:

m = 1 ( n m n 1 m ) = 2 , {\displaystyle \sum _{m=1}^{\infty }\left(\left\lfloor {\frac {n}{m}}\right\rfloor -\left\lfloor {\frac {n-1}{m}}\right\rfloor \right)=2,}

which also seems correct. The 2nd edition, 2006, on page 50 of the book says the same. Do we have a source that backs the article's version? It does look far superior—and, looking at the summation limit, more "useful", so I suggest we either find a source, or, keeping the content, we remove the current source. Or of course, add the source's version to the article. - DVdm (talk) 07:45, 7 June 2018 (UTC)

Unless a source is found for the exact formula in the article, I suggest we keep the reference to Crandall and Pomerance, possibly modified to say that the article formula is based on it. Roger Hui (talk) 14:31, 7 June 2018 (UTC)
Yes, but that would be sort of wp:OR, even if it's trivial, and surely wp:CALC does not apply here. Unless of course we all agree here and just wp:IAR . - DVdm (talk) 14:36, 7 June 2018 (UTC)
A bit of history: the form this took originally in the article was the Crandall--Pomerance form. In this edit from February 2015, Thedoctor73 changed the upper bound from infinity to n. The (erroneous) version was introduced in this edit by an IP user in August 2015, and has been there for the last three years. I personally would advocate for either the Crandall--Pomerance version or the simpler Thedoctor73 version (on the grounds that that simplification really is straightforward). It is definitely not good to have a false citation for the current (corrected) form. While the current form is in some sense more efficient than the C--P form, neither one is usable in practice so who cares? --JBL (talk) 16:03, 7 June 2018 (UTC)
Aside from wp:OR (really? that is research?), the CP version has the advantage that (a) it works for all n whereas the current formula requires saying that n>1; and (b) it corresponds more closely to the fact that a prime is a number which is divisible by exactly two different divisors ( n m n 1 m {\displaystyle \left\lfloor {\frac {n}{m}}\right\rfloor -\left\lfloor {\frac {n-1}{m}}\right\rfloor } can be read as "m divides n"). The current formula has the advantage that (a) it has another use of floor, a not insignificant advantage in an article on floor and ceiling; (b) it makes the point that you only need to use trial divisors ≤ sqrt(n) and is useful in practice. Roger Hui (talk) 16:49, 7 June 2018 (UTC)
Yes, certainly it's OR. (The fact that it was wrong and undetected for 3 years is a good reason things should be supported by valid citations!) Roger Hui's list of reasons seems pretty clearly lopsided to me, and I have changed it back to the version of February 2015. --JBL (talk) 19:40, 7 June 2018 (UTC)
But but but ... in the CP reference it used ∞ as the upper limit on the sum, and here it says n. If you are going to change that upper limit (“original research”), why not change it to n {\displaystyle \lfloor {\sqrt {n}}\rfloor } . I am also thinking that perhaps the article should say explicitly that the summand is more understandable when interpreted as “m divides n”. -- Roger Hui (talk) 20:25, 7 June 2018 (UTC)
Smiling along, and agreeing that we change the upper limit to infinity, as in the source. I also moved the ref to the sentence preceeding the formula (as is usually done), and added the other condition to a footnote. If we have wp:consensus here that this is correct, there should be no problem. - DVdm (talk) 08:43, 8 June 2018 (UTC)
I like how it's now done, by stating the alternative in the note/reference. I added the additional requirement that n be greater than 1 in the note/reference. -- Roger Hui (talk) 14:32, 8 June 2018 (UTC)
Looks good to me. --JBL (talk) 19:09, 8 June 2018 (UTC)

prime test

m = 1 ( n m n 1 m ) = 2. {\displaystyle \sum _{m=1}^{\infty }\left(\left\lfloor {\frac {n}{m}}\right\rfloor -\left\lfloor {\frac {n-1}{m}}\right\rfloor \right)=2.}

I've added:

Equivalently, m = 2 n 1 ( n m n 1 m ) = 0. {\displaystyle \sum _{m=2}^{n-1}\left(\left\lfloor {\frac {n}{m}}\right\rfloor -\left\lfloor {\frac {n-1}{m}}\right\rfloor \right)=0.} This is correct because: n m n 1 m {\displaystyle \left\lfloor {\frac {n}{m}}\right\rfloor -\left\lfloor {\frac {n-1}{m}}\right\rfloor } is equal to 1 if m divides n, and to 0 otherwise, as can be seen immediately. q.e.d.

maimonid (talk) 11:40, 6 January 2019 (UTC)

See wp:UNSOURCED and wp:NOR. See also wp:CALC and wp:CONSENSUS. - DVdm (talk) 11:43, 6 January 2019 (UTC)
DVdm. Do you systematically paralyze any attempt to improve Misplaced Pages articles with wp:Unsourced ? It is a very bad practice to do so. You are missing the point of Misplaced Pages. Sources are demanded only when you have a real reason to disagree with a contributor, not because the contributor has not cited his sources. In the case of this article for example, there are full of non cited assertions (e.g. near the beginning of the article). The usual and good way to proceed is to clarify things in the discussion page, or to put a "citation needed" in the article.
maimonid (talk) 11:58, 6 January 2019 (UTC)
And, of course, wp:BURDEN. - DVdm (talk) 12:14, 6 January 2019 (UTC)
I've not restored the assertion you've deleted. So this has nothing to do with that. I think you answer like a robot (or more precisely, you don't answer, like a robot), so, you are probably a robot, an I have to stop this discussion.
maimonid (talk) 12:23, 6 January 2019 (UTC)
@Maimonid: I agree that DVdm's responses are not very constructive. Here is a more helpful response: there is a discussion in the section directly above this one of the reasons for writing the article in its present form. Before making changes, it would be good to engage with the discussion there -- there are very good reasons not to make the change you suggest, relating to core principles of Misplaced Pages, as well as to reasonable choices about writing and presentation. Also, the form you've written down does not have clear meaning when n = 1, which is problematic. --JBL (talk) 17:43, 6 January 2019 (UTC)
@Joel B. Lewis:. Thank you for answering me. Indeed, this was discussed just above, and in fact the formula with n {\displaystyle \lfloor {\sqrt {n}}\rfloor } reported in the footnotes is exactly the same. Nevertheless, the formula with the infinite bound is very misleading (and the discussion above shows I'm not the only person to think so), as it causes to think there is a limit process while the formula is quite trivial. I may add a small hint that fix that. maimonid (talk) 21:20, 6 January 2019 (UTC)
@Maimonid: You are welcome. I was worried in your original edit about giving too much weight to this one not-important formula, but I think the current formulation avoids that problem nicely. --JBL (talk) 18:19, 8 January 2019 (UTC)

ISO codes

I wanted to type the floor function symbols but, although I knew they existed, they were rather hard to find with Google. I even clicked on Misplaced Pages's Floor and ceiling functions page! Ha. Fat chance that the "new" Wiki would actually have what I'm looking for!  :-)

This is a test. I've added something useful to the page and have a bet with myself that some Wiki editor will find reason to remove my change without finding an alternate way to provide the same useful information. What do I win? Jamesdowallen (talk) 08:25, 28 January 2019 (UTC)

If you'd spent half as much time making your edit decent (correctly placed, correctly formatted, on topic) instead of writing this dickish message, I wouldn't have had to fix it for you. You're welcome. --JBL (talk) 12:00, 28 January 2019 (UTC)

Thank you very much, JBL. And, FTR, I 'd be more motivated to spend time improving Misplaced Pages if moronic and overly-pedantic editors didn't thoughtlessly revert my changes so often. I notice you didn't add the ceiling codes. I'll do that now that you've pointed the way. Thanks again! Jamesdowallen (talk) 16:18, 28 January 2019 (UTC)

Those are not "ISO codes". They are the decimal values of the Unicode code points, used by HTML character entities. You can use the hex values into a HTML character entity by typing &#x<hex>; most of Unicode is defined using the hex number not the decimal one so this is preferred. I put examples in to replace the other text which did not format correctly anyway. May want to add (using &amp; to get it to print correctly) the source, but please use the hex value.Spitzak (talk) 19:05, 28 January 2019 (UTC)

There is some message board software which DOES support the decimal codes but does NOT support the hexadecimal codes. I intervened on this page NOT because I had some theoretical idea of what the page 'should' look like, but because, as an ACTUAL Wiki user I found that the page did NOT serve my needs. I wanted the codes because I was composing a message-board post and was surprised to find the codes so hard to come by. (It was low-priority; I actually ended up rewording that post to avoid the need for floor symbols ::whack::) I tried to copy/paste the floor symbols. Doesn't work -- they're all* images. (Why? Do you use images for objects like the word 'the'?  :-) )

I DO know how to convert hexadecimal to decimal, but I did not wade through the Wiki article to find the one place where the useful information was available. Easy, obviously needed, information should be easy to find. Misplaced Pages used to be wonderful. Increasingly, unfortunately, the information REAL Misplaced Pages users are likely to want is drowned out in the tedium of structure. I comment on this more at my Talk page. HTH. Jamesdowallen (talk) 09:38, 29 January 2019 (UTC)

Hope this is addressed with my last edit.

Spitzak (talk) 18:12, 29 January 2019 (UTC)

Revert

The “chosen wiki-links were totally inappropriate” innuendo is predictably false: indeed, −⌊x⌋ = ⌈−x⌉ means namely that ⌊·⌋ and ⌈·⌉ are conjugate (wrt function composition) by “−”. Certainly I know that the composition of functions forms monoid not a group, but don’t monoids pertain to group theory? I suggest Joel B. Lewis to think before crying loudly about bad links. Moreover, removal of the additive inverse link borders vandalism, after all.

Also note that Joel’s edit confronts WP:Writing better articles for the sake of confronting the nasty person Incnis_Mrsi. The “{x} + {−x} ” piece was deleted without appearing in fractional part? Go and save it there, why should my cleanup be reverted? Incnis Mrsi (talk) 12:58, 6 September 2019 (UTC)

Categories: