Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56675

Re: Complex literals (was Re: I am never going to complain about Python again)

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <oscar.j.benjamin@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'root': 0.05; 'widely': 0.05; 'subject:Python': 0.06; 'conventions': 0.07; 'adopted': 0.09; 'earliest': 0.09; 'pointless': 0.09; 'terms,': 0.09; 'whichever': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'suggest': 0.14; '(it': 0.16; '(there': 0.16; '[*]': 0.16; 'alphabet': 0.16; 'denote': 0.16; 'notation': 0.16; 'numbers;': 0.16; 'roy': 0.16; 'subject: \n ': 0.16; 'symbols': 0.16; 'wrote:': 0.18; 'obviously': 0.18; '>>>': 0.22; 'previously': 0.22; 'cc:addr:python.org': 0.22; 'instead.': 0.24; 'please?': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'chris': 0.29; 'am,': 0.29; 'words': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '>>>>': 0.31; 'about.': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'though.': 0.31; 'this.': 0.32; 'fri,': 0.33; 'maybe': 0.34; 'subject: (': 0.35; 'agree': 0.35; 'common': 0.35; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'adjust': 0.36; 'unit': 0.37; 'being': 0.38; 'explain': 0.39; "couldn't": 0.39; 'skip:p 20': 0.39; 'called': 0.40; 'even': 0.60; 'letters': 0.60; 'most': 0.60; 'numbers': 0.61; 'simple': 0.61; 'real': 0.63; 'field': 0.63; 'choose': 0.64; 'more': 0.64; 'talking': 0.65; 'to:addr:gmail.com': 0.65; 'between': 0.67; 'natural': 0.68; 'circle': 0.68; 'smith': 0.68; 'study': 0.69; 'electrical': 0.74; 'square': 0.74; 'subject.': 0.74; 'discovered': 0.83; 'confusing': 0.84; 'elementary': 0.84; 'oscar': 0.84; 'snow': 0.91; 'from.': 0.93; 'taught': 0.96; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Gq+VcjczPXOA4xWBzwesK6dRKYS/PfOd5aQGDiC8XO0=; b=NgfpggiCP5j6I6/Im1zEL3Xn4ntwuYCl+aX7+XBHizf91HM7WmF2B/O8ewmR2/Qdp4 /r3MTaoIipZnf5pr8DOmi3f71SZsy3uOm1n4Dqh4lFCHd6ptrA39SsvNjI75DJcw5Jdi mTgkxl65MJzxnZ6WkmEkma7bNErrhyF7j1v03alIduqqqHJ6N31x0/fiEmCIPppCdv0k 2X0NF5tdNhq7Ftlr5JZVfQEgy+i9UXIqyW02a0Z4DdpdiighVVLfLVNUmJowkPwuRrNX SDgfykcfo1cab4T10QzaaHBUwLYJMIIIaOmFjvQytgVcjszdW6kyQHh8S+KDhvF0zeI2 IigA==
X-Received by 10.220.58.1 with SMTP id e1mr445569vch.0.1381491071852; Fri, 11 Oct 2013 04:31:11 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CAMPXz=oj+BNNjvy6PPZ3j6GANY_ioxyznU9jPTu4e-qMyncPKw@mail.gmail.com>
References <mailman.937.1381411535.18130.python-list@python.org> <525753ee$0$29984$c3e8da3$5496439d@news.astraweb.com> <CAMPXz=oj+BNNjvy6PPZ3j6GANY_ioxyznU9jPTu4e-qMyncPKw@mail.gmail.com>
From Oscar Benjamin <oscar.j.benjamin@gmail.com>
Date Fri, 11 Oct 2013 12:30:51 +0100
Subject Re: Complex literals (was Re: I am never going to complain about Python again)
To David <bouncingcats@gmail.com>
Content-Type text/plain; charset=ISO-8859-7
Content-Transfer-Encoding quoted-printable
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1001.1381491074.18130.python-list@python.org> (permalink)
Lines 46
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1381491074 news.xs4all.nl 15915 [2001:888:2000:d::a6]:49562
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:56675

Show key headers only | View raw


On 11 October 2013 10:35, David <bouncingcats@gmail.com> wrote:
> On 11 October 2013 12:27, Steven D'Aprano
> <steve+comp.lang.python@pearwood.info> wrote:
>> On Fri, 11 Oct 2013 00:25:27 +1100, Chris Angelico wrote:
>>
>>> On Fri, Oct 11, 2013 at 12:09 AM, Roy Smith <roy@panix.com> wrote:
>>>> BTW, one of the earliest things that turned me on to Python was when I
>>>> discovered that it uses j as the imaginary unit, not i.  All
>>>> right-thinking people will agree with me on this.
>>>
>>> I've never been well-up on complex numbers; can you elaborate on this,
>>> please? All I know is that I was taught that the square root of -1 is
>>> called i, and that hypercomplex numbers include i, j, k, and maybe even
>>> other terms, and I never understood where j comes from. Why is Python
>>> better for using j?
>>
>> Being simple souls and not Real Mathematicians, electrical engineers get
>> confused by the similarity between I (current) and i (square root of -1),
>> so they used j instead.
> [...]
>> <wink>
>
> No, electrical engineers need many symbols for current for the same reason
> that eskimos need many words for snow :) [*]

There are many other letters in the Roman alphabet to choose from
though. In particular the study of complex numbers and the choice of i
for sqrt(-1) predates most of the study of electricity and the use of
I to denote current (it was previously called C in English texts).
Obviously I understand that that's all history and once conventions
are so widely adopted it's pointless to change them but it's good to
have common notation for the elementary parts of maths. If someone
tried to explain why their field couldn't use π for the circumference
of a unit circle I would suggest that they adjust the other parts of
their notation not π (there are other uses of π.

Truthfully I've now spent more time with engineers than
physicists/mathematicians and find it natural to switch between i and
j depending on who I'm talking to and what I'm talking about. It's
still confusing for students though when I switch between conventions
to use whichever is standard for a given subject.


Oscar

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Complex literals (was Re: I am never going to complain about Python again) Chris Angelico <rosuav@gmail.com> - 2013-10-11 00:25 +1100
  Re: Complex literals (was Re: I am never going to complain about Python again) Grant Edwards <invalid@invalid.invalid> - 2013-10-10 14:12 +0000
    Re: Complex literals (was Re: I am never going to complain about Python again) Chris Angelico <rosuav@gmail.com> - 2013-10-11 01:20 +1100
      Re: Complex literals (was Re: I am never going to complain about Python again) Grant Edwards <invalid@invalid.invalid> - 2013-10-10 16:54 +0000
        Re: Complex literals (was Re: I am never going to complain about Python again) Christian Gollwitzer <auriocus@gmx.de> - 2013-10-10 21:08 +0200
    Re: Complex literals (was Re: I am never going to complain about Python again) William Ray Wing <wrw@mac.com> - 2013-10-10 11:36 -0400
    Re: Complex literals (was Re: I am never going to complain about Python again) Ethan Furman <ethan@stoneleaf.us> - 2013-10-10 10:39 -0700
    Re: Complex literals (was Re: I am never going to complain about Python again) Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-10-10 20:13 -0400
    Re: Complex literals (was Re: I am never going to complain about Python again) Chris Angelico <rosuav@gmail.com> - 2013-10-11 17:01 +1100
    Re: Complex literals (was Re: I am never going to complain about Python again) Nobody <nobody@nowhere.com> - 2013-10-11 12:21 +0100
  Re: Complex literals (was Re: I am never going to complain about Python again) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-11 01:27 +0000
    Re: Complex literals (was Re: I am never going to complain about Python again) David <bouncingcats@gmail.com> - 2013-10-11 20:35 +1100
    Re: Complex literals (was Re: I am never going to complain about Python again) Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-10-11 12:30 +0100
      Re: Complex literals (was Re: I am never going to complain about Python again) Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-10-11 15:11 +0300
      Re: Complex literals (was Re: I am never going to complain about Python again) Roy Smith <roy@panix.com> - 2013-10-11 10:05 -0400
        Re: Complex literals (was Re: I am never going to complain about Python again) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-11 17:03 +0000
        Re: Complex literals (was Re: I am never going to complain about Python again) Gene Heskett <gheskett@wdtv.com> - 2013-10-11 13:00 -0400
    Re: Complex literals (was Re: I am never going to complain about Python again) John Nagle <nagle@animats.com> - 2013-10-15 22:27 -0700
      Re: Complex literals (was Re: I am never going to complain about Python again) Roy Smith <roy@panix.com> - 2013-10-16 08:21 -0400
      Re: Complex literals (was Re: I am never going to complain about Python again) Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-10-16 13:22 -0400

csiph-web