Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'scipy': 0.05; 'subject:Python': 0.06; 'perl,': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; '1:13': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'it),': 0.16; 'precision,': 0.16; 'types,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'written': 0.21; 'cc:addr:python.org': 0.22; 'integer': 0.24; 'mathematical': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'second': 0.26; 'header:In- Reply-To:1': 0.27; 'strongly': 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'decimal': 0.31; 'perl': 0.31; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'library.': 0.36; 'too': 0.37; 'level': 0.37; 'performance': 0.37; 'pm,': 0.38; 'does': 0.39; 'bill': 0.39; 'easy': 0.60; 'high': 0.63; 'does!': 0.84; 'learn.': 0.84; 'trig': 0.84; 'absolutely': 0.87; 'to:none': 0.92; 'incredibly': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=WVHdBPYL0MmlB9rHGXVcERciAUjpBK5Fk5NlTiaNTgw=; b=fyv8cHS+ZCp4JI3pdoCbrqLEMPFc8o1Np/AU/bL76yCk6D+7MiuIqL6IKCc1d87BJQ z8Tatvw4SZJ3XsvUIXftBqQ8Muf3GEkS+Sk2w21wnJ9eBJALGBb5sN0i9AFhmoWeIqBs d9qh8y6n4bCSMU06CP9KHCR+qTSnzGAJP8JfnAzzySw7EgC4q5V9ADspHXUM0k1NzkF6 B3/3jc0ZkWA4cXYEMYJS5kVqLSK9H5c8iXTaZSPh3toTE/I4T7oKgAazYD2+nwDgSBJi Id6DGI2+DCH+8cMOCNCNMKZ9NktNt7PRCTM7EzxE9lYTjT6NRsYZpjE7NhMsYsVECV9u YB6w== MIME-Version: 1.0 X-Received: by 10.52.185.72 with SMTP id fa8mr5307990vdc.12.1400383982383; Sat, 17 May 2014 20:33:02 -0700 (PDT) In-Reply-To: References: Date: Sun, 18 May 2014 13:33:02 +1000 Subject: Re: Python and Math From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400383990 news.xs4all.nl 2834 [2001:888:2000:d::a6]:59904 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71720 On Sun, May 18, 2014 at 1:13 PM, Bill Cunningham wrote: > Does Python have good mathematical capabilities? I am interested in > learning a second language for mathematical purposes. I am considering > looking at python, perl, fortran, Adas out. It looked too complicated to > learn. Perl looked easy and I haven't really looked into python. Absolutely it does! In the built-in types, your integer has arbitrary precision, and there is an arbitrary-precision Decimal type in the standard library. There is also, naturally, a standard set of trig functions and so on. With additional libraries, you can get numeric and scientific functionality (lots of which is written in Fortran, as I understand it), giving incredibly high performance for a high level language; look into SciPy and NumPy. Strongly recommend Python for numeric work. ChrisA