Jump to content

Wikipedia:Reference desk/Archives/Mathematics/2022 February 21

From Wikipedia, the free encyclopedia
Mathematics desk
< February 20 << Jan | February | Mar >> Current desk >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


February 21

[edit]

The meaning of div(x, y)

[edit]

On a wepage that talks about the Julian Day Number and its converts ions to and from various different calendars (the webpage is aa.quae.nl/en/reken/juliaansedag.html ), I saw something. Section 3.1 talks about converting the Gregorian calendar to the JDN. The third line of this section (the eighth line of math overall) says the value {x3, x2} = div(x4, 100). For x4 values that are positive or zero (as they are for all proleptic Gregorian calendar dates from March of 1 BC or after), this seems to be quite straightforward, with x3 being the floor function of the quotient of x4 and 100, and x2 being x4 mod 100. My question is, what does div(x4, 100) mean for x4 values that are negative (like for proleptic Gregorian calendar dates from February of 1 BC or earlier)? Primal Groudon (talk) 17:59, 21 February 2022 (UTC)[reply]

There is no generally agreed conventional meaning for this notation. The webpage states (in Section 15.1): "The function DIV(x,y) corresponds to ⌊x/y⌋." If this also applies to the use of , we have, for example,  --Lambiam 20:23, 21 February 2022 (UTC)[reply]
Note that this definition implies that for all and for
Together with the range of being the integers, this property characterizes the function for positive second arguments completely.  --Lambiam 00:29, 22 February 2022 (UTC)[reply]