On 26/08/2017 03:22, Rick Johnson wrote:
Steve D'Aprano wrote:
Rustom Mody wrote:
Ian wrote:
"Larry Martell" wrote:
9:21 PM Rustom Mody wrote:
Statement 1: Aeroplanes fly. Statement 2: Submarines swim.
Are these two statements equally acceptable? [Inspired
by a talk by Noam Chomsky]
There
Steve D'Aprano wrote:
> Rustom Mody wrote:
> > Ian wrote:
> >> "Larry Martell" wrote:
> >> 9:21 PM Rustom Mody wrote:
> > > > Statement 1: Aeroplanes fly. Statement 2: Submarines swim.
> > > > Are these two statements equally acceptable? [Inspired
> > > > by a talk by Noam Chomsky]
> > > There sh
r...@zedat.fu-berlin.de (Stefan Ram) writes:
>>On Fri, 25 Aug 2017 11:25 am, Ben Bacarisse wrote:
>>With that in mind, "an Integral" is a shorthand for "an Integral value",
>
> In math, an integral value is called an /integer/.
> Therefore, in math, it would seem strange to avoid the noun
>
On Friday, August 25, 2017 at 11:23:26 PM UTC+5:30, MRAB wrote:
> On 2017-08-25 15:40, Dennis Lee Bieber wrote:
> > On Thu, 24 Aug 2017 21:47:41 -0700 (PDT), Rustom Mody declaimed the
> > following:
> >
> >
> >>This was true of Britain 100 years ago
> >>It was true of Rome 1000 years ago
> >
>
On 2017-08-25 15:40, Dennis Lee Bieber wrote:
On Thu, 24 Aug 2017 21:47:41 -0700 (PDT), Rustom Mody
declaimed the following:
This was true of Britain 100 years ago
It was true of Rome 1000 years ago
Rome was still a problem in 1017? That's only 50 years away from the
Battle of Hasti
On Thu, Aug 24, 2017 at 11:02 PM, Gene Heskett wrote:
> On Thursday 24 August 2017 23:21:22 Larry Martell wrote:
>
>> I think Chomsky is a jerk, and I'm angry at media outlets like CNN
>> giving him a forum to spew his idiocies.
>
> I agree Larry, Chomsky can be described in even more flowery term
On Friday, 25 August 2017 14:16:05 UTC+1, Chris Angelico wrote:
> Yep. We're in agreement on that. My only point about the confusion was
> the way in which you could get "wrong answers" in binary but "right
> answers" in decimal, leading to the "0.1 + 0.2 != 0.3" problem. That's
> a sum that works
On Fri, Aug 25, 2017 at 11:01 PM, Steve D'Aprano
wrote:
> How did we get onto prime factors of denominators? The point I was making is
> that there are plenty of fractions which are not multiples of 1/5 which
> nevertheless lead to unintuitive "wrong answers" in both Decimal and binary
> floating
On Fri, 25 Aug 2017 04:12 pm, Chris Angelico wrote:
>> And there are numbers which repeat in decimal but not binary, and numbers
>> which repeat in both, and numbers which don't repeat in either.
>
> Which ones repeat in decimal but not binary? An example, please.
What? No. I never said that, th
On Fri, Aug 25, 2017 at 4:26 PM, Paul Rubin wrote:
> Chris Angelico writes:
>>> And there are numbers which repeat in decimal but not binary,
>> Which ones repeat in decimal but not binary? An example, please.
>
> That should really have said binary but not decimal, since 2 divides 10.
Well, tho
Chris Angelico writes:
>> And there are numbers which repeat in decimal but not binary,
> Which ones repeat in decimal but not binary? An example, please.
That should really have said binary but not decimal, since 2 divides 10.
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Aug 25, 2017 at 4:03 PM, Steve D'Aprano
wrote:
> On Fri, 25 Aug 2017 03:22 pm, Chris Angelico wrote:
>
>>> py> from decimal import Decimal
>>> py> sum([1/13]*13)
>>> 0.9998
>>> py> sum([Decimal(1)/Decimal(13)]*13)
>>> Decimal('0.9997')
>>
>> Now do the s
On Fri, 25 Aug 2017 03:22 pm, Chris Angelico wrote:
>> py> from decimal import Decimal
>> py> sum([1/13]*13)
>> 0.9998
>> py> sum([Decimal(1)/Decimal(13)]*13)
>> Decimal('0.9997')
>
> Now do the same exercise with pencil and paper. What's 1/13?
Easy: 0.(076923
On Fri, Aug 25, 2017 at 3:08 PM, Steve D'Aprano
wrote:
> On Fri, 25 Aug 2017 02:21 pm, Chris Angelico wrote:
>
>> In fact, the ONLY way to create this confusion is to use (some
>> derivative of) one fifth, which is a factor of base 10 but not of base
>> 2. Any other fraction will either terminate
On Thursday 24 August 2017 23:21:22 Larry Martell wrote:
> On Thu, Aug 24, 2017 at 11:08 PM, Rustom Mody
wrote:
> > On Friday, August 25, 2017 at 8:28:55 AM UTC+5:30, Ian wrote:
> >> On Aug 24, 2017 8:51 PM, "Larry Martell" wrote:
> >>
> >> On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
> >
On Fri, 25 Aug 2017 02:21 pm, Chris Angelico wrote:
> In fact, the ONLY way to create this confusion is to use (some
> derivative of) one fifth, which is a factor of base 10 but not of base
> 2. Any other fraction will either terminate in both bases (eg "0.125"
> in decimal or "0.001" in binary),
On Friday, August 25, 2017 at 10:18:07 AM UTC+5:30, Rustom Mody wrote:
> On Friday, August 25, 2017 at 9:09:16 AM UTC+5:30, larry@gmail.com wrote:
> > On Thu, Aug 24, 2017 at 11:27 PM, Rustom Mody wrote:
> > > Chomsky is in the Turing bracket, I wonder where Larry falls wrt CS
> >
> > I have
On Fri, Aug 25, 2017 at 2:37 PM, Rustom Mody wrote:
> On Friday, August 25, 2017 at 9:58:15 AM UTC+5:30, Chris Angelico wrote:
>> On Fri, Aug 25, 2017 at 1:23 PM, Rustom Mody wrote:
>> > Early in my python classes I show this:
>> >
>> > $ python
>> > Python 2.7.13 (default, Jan 19 2017, 14:48:08)
On Friday, August 25, 2017 at 9:09:16 AM UTC+5:30, larry@gmail.com wrote:
> On Thu, Aug 24, 2017 at 11:27 PM, Rustom Mody wrote:
> > Chomsky is in the Turing bracket, I wonder where Larry falls wrt CS
>
> I have a degree in Software Engineering from Rochester Institute of
> Technology. I star
On Friday, August 25, 2017 at 9:58:15 AM UTC+5:30, Chris Angelico wrote:
> On Fri, Aug 25, 2017 at 1:23 PM, Rustom Mody wrote:
> > Early in my python classes I show this:
> >
> > $ python
> > Python 2.7.13 (default, Jan 19 2017, 14:48:08)
> > [GCC 6.3.0 20170118] on linux2
> > Type "help", "copyrig
On Fri, Aug 25, 2017 at 1:23 PM, Rustom Mody wrote:
> Early in my python classes I show this:
>
> $ python
> Python 2.7.13 (default, Jan 19 2017, 14:48:08)
> [GCC 6.3.0 20170118] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
.1 + .1 == .2
> True
.1 +
On Friday, August 25, 2017 at 9:06:53 AM UTC+5:30, Steve D'Aprano wrote:
> On Fri, 25 Aug 2017 01:27 pm, Rustom Mody wrote:
>
> > People should be free to dislike who they like to dislike
> > However…
> > Calling Newton an idiot is ok… if you are not a physicist (flat-earther??)
> > Calling Turing
On Thu, Aug 24, 2017 at 11:27 PM, Rustom Mody wrote:
> Chomsky is in the Turing bracket, I wonder where Larry falls wrt CS
I have a degree in Software Engineering from Rochester Institute of
Technology. I stared programming when I was 16, and I have worked
professionally since I was 19. I am 57 n
On Fri, 25 Aug 2017 01:27 pm, Rustom Mody wrote:
> People should be free to dislike who they like to dislike
> However…
> Calling Newton an idiot is ok… if you are not a physicist (flat-earther??)
> Calling Turing an idiot is ok if you dont like computers (Luddite??)
> Given that for most people w
On Fri, 25 Aug 2017 11:25 am, Ben Bacarisse wrote:
>> Integral \In"te*gral\, a. [Cf. F. int['e]gral. See Integer.]
>
> For me (and I suspect for BG too) the surprise is in its use as a noun.
> The capital letter is, presumably, significant because it refers to the
> Python class Integral -- a sub
On Friday, August 25, 2017 at 8:52:11 AM UTC+5:30, Steve D'Aprano wrote:
> On Fri, 25 Aug 2017 12:47 pm, Larry Martell wrote:
>
> > On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
> >
> >> Statement 1: Aeroplanes fly
> >> Statement 2: Submarines swim
> >>
> >>
> >> Are these two statements equ
On Fri, 25 Aug 2017 01:08 pm, Rustom Mody wrote:
> On Friday, August 25, 2017 at 8:28:55 AM UTC+5:30, Ian wrote:
>> On Aug 24, 2017 8:51 PM, "Larry Martell" wrote:
>>
>> On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
>>
>> > Statement 1: Aeroplanes fly
>> > Statement 2: Submarines swim
>> >
On Friday, August 25, 2017 at 8:39:25 AM UTC+5:30, Rustom Mody wrote:
> On Friday, August 25, 2017 at 8:28:55 AM UTC+5:30, Ian wrote:
> > On Aug 24, 2017 8:51 PM, "Larry Martell" wrote:
> >
> > On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
> >
> > > Statement 1: Aeroplanes fly
> > > Stateme
On Fri, 25 Aug 2017 12:47 pm, Larry Martell wrote:
> On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
>
>> Statement 1: Aeroplanes fly
>> Statement 2: Submarines swim
>>
>>
>> Are these two statements equally acceptable?
>>
>> [Inspired by a talk by Noam Chomsky]
>
> There should be a corolla
On Thu, Aug 24, 2017 at 11:08 PM, Rustom Mody wrote:
> On Friday, August 25, 2017 at 8:28:55 AM UTC+5:30, Ian wrote:
>> On Aug 24, 2017 8:51 PM, "Larry Martell" wrote:
>>
>> On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
>>
>> > Statement 1: Aeroplanes fly
>> > Statement 2: Submarines swim
>>
On Friday, August 25, 2017 at 8:28:55 AM UTC+5:30, Ian wrote:
> On Aug 24, 2017 8:51 PM, "Larry Martell" wrote:
>
> On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
>
> > Statement 1: Aeroplanes fly
> > Statement 2: Submarines swim
> >
> >
> > Are these two statements equally acceptable?
> >
>
On Aug 24, 2017 8:51 PM, "Larry Martell" wrote:
On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
> Statement 1: Aeroplanes fly
> Statement 2: Submarines swim
>
>
> Are these two statements equally acceptable?
>
> [Inspired by a talk by Noam Chomsky]
There should be a corollary of Godwin's la
On 2017-08-25 02:58, Ben Bacarisse wrote:
Chris Angelico writes:
On Fri, Aug 25, 2017 at 11:25 AM, Ben Bacarisse wrote:
The use as a noun is not covered here, though it is only a small step
from other places where membership of a mathematical set has turned the
adjective into a noun. "Ratio
On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
> Statement 1: Aeroplanes fly
> Statement 2: Submarines swim
>
>
> Are these two statements equally acceptable?
>
> [Inspired by a talk by Noam Chomsky]
There should be a corollary of Godwin's law for that idiot.
--
https://mail.python.org/mail
On Friday, August 25, 2017 at 6:55:46 AM UTC+5:30, Ben Bacarisse wrote:
> Steve D'Aprano writes:
>
> > On Fri, 25 Aug 2017 09:41 am, bob gailer wrote:
> >
> >>> Help on built-in function floor in module math:
> >>>
> >>> floor(...)
> >>> floor(x)
> >>>
> >>> Return the floor of x as an I
On Fri, Aug 25, 2017 at 11:58 AM, Ben Bacarisse wrote:
> Chris Angelico writes:
>
>> On Fri, Aug 25, 2017 at 11:25 AM, Ben Bacarisse wrote:
>>> The use as a noun is not covered here, though it is only a small step
>>> from other places where membership of a mathematical set has turned the
>>> ad
Chris Angelico writes:
> On Fri, Aug 25, 2017 at 11:25 AM, Ben Bacarisse wrote:
>> The use as a noun is not covered here, though it is only a small step
>> from other places where membership of a mathematical set has turned the
>> adjective into a noun. "Rational" and "real" started out as adje
On Fri, Aug 25, 2017 at 11:25 AM, Ben Bacarisse wrote:
> The use as a noun is not covered here, though it is only a small step
> from other places where membership of a mathematical set has turned the
> adjective into a noun. "Rational" and "real" started out as adjectives,
> but their use as nou
Steve D'Aprano writes:
> On Fri, 25 Aug 2017 09:41 am, bob gailer wrote:
>
>>> Help on built-in function floor in module math:
>>>
>>> floor(...)
>>> floor(x)
>>>
>>> Return the floor of x as an Integral.
>>> This is the largest integer <= x.
> [...]
>
>> I was surprised by the use
On Fri, 25 Aug 2017 05:24 am, Stefan Ram wrote:
> Is the output of »help(floor)« supposed to be a kind of
> normative documentation, i.e., /the/ authoritative
> documentation of »floor«?
No. The output of help() is intended as a short description of the function, not
the authoritative and c
On Fri, 25 Aug 2017 09:41 am, bob gailer wrote:
>> Help on built-in function floor in module math:
>>
>> floor(...)
>> floor(x)
>>
>> Return the floor of x as an Integral.
>> This is the largest integer <= x.
[...]
> I was surprised by the use of "integral". A dictionary search doe
On 8/24/2017 3:24 PM, Stefan Ram wrote:
This is a transcript:
from math import floor
floor( "2.3" )
Traceback (most recent call last):
File "", line 1, in
TypeError: must be real number, not str
help(floor)
Help on built-in function floor in module math:
floor(...)
floor(x)
On 8/24/2017 3:54 PM, Nathan Ernst wrote:
You passed a string to "math.floor", not anything resembling a numeric
type. Try using an actual float, int or Decimal:
It would seem you did not understand the OP's question. It was not "why
did I get this traceback."
He showed the traceback as leading
Stefan Ram wrote:
> This is a transcript:
>
from math import floor
floor( "2.3" )
> Traceback (most recent call last):
> File "", line 1, in
> TypeError: must be real number, not str
help(floor)
> Help on built-in function floor in module math:
>
> floor(...)
> floor(x)
>
On 2017-08-24 20:24, Stefan Ram wrote:
This is a transcript:
from math import floor
floor( "2.3" )
Traceback (most recent call last):
File "", line 1, in
TypeError: must be real number, not str
help(floor)
Help on built-in function floor in module math:
floor(...)
floor(x)
You passed a string to "math.floor", not anything resembling a numeric
type. Try using an actual float, int or Decimal:
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from math import floor
>>>
46 matches
Mail list logo