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


Groups > comp.lang.python > #78781

Re: Representing mathematical equations

Newsgroups comp.lang.python
Date 2014-10-06 11:06 -0700
References <9ea5c61c-9f06-4bcb-982e-2be0a910b817@googlegroups.com> <09669ac4-1aeb-48fa-8cc9-7f741f7fe6b3@googlegroups.com> <28aeb1c6-2a2f-4452-862d-c98b204eab34@googlegroups.com> <mailman.14650.1412616149.18130.python-list@python.org> <381deb51-46e8-480c-9c9b-cf63ebe303c5@googlegroups.com>
Message-ID <ed6684c3-5094-4ef5-8e6d-4f2fd0ef6953@googlegroups.com> (permalink)
Subject Re: Representing mathematical equations
From Rustom Mody <rustompmody@gmail.com>

Show all headers | View raw


On Monday, October 6, 2014 11:18:55 PM UTC+5:30, Rustom Mody wrote:

> >>> sum([(x,y) for (x,y) in L])
> Traceback (most recent call last):
> TypeError: unsupported operand type(s) for +: 'int' and 'tuple'

> Python just expressing that you are goofing off by trying to add tuples
> rather than numbers

I forgot to mention that this comes from just taking your
denominator
term  "Σ(l∈L) l" literally.

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


Thread

Representing mathematical equations varun7rs@gmail.com - 2014-10-06 04:13 -0700
  Re:Representing mathematical equations Dave Angel <davea@davea.name> - 2014-10-06 08:50 -0400
  Re: Representing mathematical equations varun7rs@gmail.com - 2014-10-06 06:03 -0700
    Re: Representing mathematical equations varun7rs@gmail.com - 2014-10-06 06:07 -0700
      Re: Representing mathematical equations Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-06 15:10 +0100
      Re: Representing mathematical equations Michael Torrie <torriem@gmail.com> - 2014-10-06 08:42 -0600
        Re: Representing mathematical equations Peter Pearson <pkpearson@nowhere.invalid> - 2014-10-06 16:45 +0000
          Re: Representing mathematical equations Michael Torrie <torriem@gmail.com> - 2014-10-06 20:07 -0600
      Re: Representing mathematical equations Dave Angel <davea@davea.name> - 2014-10-06 13:24 -0400
        Re: Representing mathematical equations Rustom Mody <rustompmody@gmail.com> - 2014-10-06 10:48 -0700
          Re: Representing mathematical equations Rustom Mody <rustompmody@gmail.com> - 2014-10-06 11:06 -0700

csiph-web