Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: How would you prepare for javascripting interview? Date: Mon, 05 Sep 2016 20:32:34 +0100 Organization: A noiseless patient Spider Lines: 24 Message-ID: <87twduxhv1.fsf@bsb.me.uk> References: <50e38667-93da-4c5d-bc02-a78394f0ca3b@googlegroups.com> <1875389.irdbgypaU6@PointedEars.de> <87h99vz2lp.fsf@bsb.me.uk> <2puqsbta8crtl2lthb1c63dpkqohbgtq0m@4ax.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="24869"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rKFqfPIjobRaiBqSD6vqj0Hd3p7ERwv8=" Cancel-Lock: sha1:39YTtsoJkZhtv+V6UMMg7kMiR5M= sha1:qPTfiHjXNXDY+f5CNWlGpOkm1s8= X-BSB-Auth: 1.32a6c4470aff5c945590.20160905203234BST.87twduxhv1.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:31243 ram@zedat.fu-berlin.de (Stefan Ram) writes: > Scott Sauyet writes: >>Well, it's easy enough to imagine an infinite collection, say, of all the >>positive rational numbers whose squares are less than 2. There's an >>obvious finite maximum in the real numbers, sqrt(2). See Dedekind cuts >>for more information. [1] > > /Supremum/. The /maximum/ of a set is an /element/ of that set, > but sqrt(2) is not a number whose square is /less than/ 2. Curiously, you've been arguing for a definition of maximum where it may /not/ be an element of the set. Further, when sup is defined on the extended reals (R U {-oo, +oo}) so that sup R = oo, it makes sense to define sup {} = -oo (and some authors actually do this). So here you seem to arguing that Math.max() = -Infinity is wrong because the maximum of a set is an element of that set, but there should be a Math.sup() whose value is -Infinity. -- Ben.