Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!lightspeed.eweka.nl!lightspeed.eweka.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'element': 0.07; 'hosts': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrote': 0.14; 'belonging': 0.16; 'boolean': 0.16; 'dist': 0.16; 'expression.': 0.16; 'received:80.91.229.3': 0.16; 'received:97': 0.16; 'received:plane.gmane.org': 0.16; 'set,': 0.16; 'subscripted': 0.16; 'tuple': 0.16; 'wrote:': 0.18; 'header:X-Complaints-To:1': 0.27; 'forgot': 0.30; 'skip:( 20': 0.30; 'lines': 0.31; 'node': 0.31; 'monday,': 0.33; 'could': 0.34; 'list.': 0.37; 'clear': 0.37; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'remove': 0.60; 'skip:u 10': 0.60; 'email addr:gmail.com': 0.63; 'different': 0.65; 'between': 0.67; 'links,': 0.74; 'distances': 0.84; 'bandwidth': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: Representing mathematical equations Date: Mon, 6 Oct 2014 13:24:58 -0400 (EDT) Organization: news.gmane.org References: <9ea5c61c-9f06-4bcb-982e-2be0a910b817@googlegroups.com> <09669ac4-1aeb-48fa-8cc9-7f741f7fe6b3@googlegroups.com> <28aeb1c6-2a2f-4452-862d-c98b204eab34@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 97.73.240.54 X-Newsreader: PiaoHong.Usenet.Client.VIP:1.62 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1412616149 news.xs4all.nl 2896 [2001:888:2000:d::a6]:35855 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3795 X-Received-Body-CRC: 3739276057 Xref: csiph.com comp.lang.python:78776 varun7rs@gmail.com Wrote in message: > On Monday, 6 October 2014 15:03:44 UTC+2, varu...@gmail.com wrote: > (Deleted all the 8-space quoting. Either use a better email client or remove the extra 7 lines between every line you quote.) >> >> Okay, I forgot to explain them. L is a set of links, dist is a number (distance), bd is the bandwidth and hc is a number as well (hopcount)...different bandwidths, hopcounts and distances for different links... >> >> b(i,x) is what i intend to calculate out of these details...here 'i' could be the head or tail of the link l and x is a node that hosts i > > Unbelievable. I again forgot to express them > > L = [(1,3), (5,7), .....] > bd = [23, 34,43.44.....] > dist = [3,7,5,7, ....] > hc = [2,3,4,1,2,2,...] > for every l belonging to L, i could be either 1 or 3 for L[0], similarly for L[1] it could be 5 or 7 Now it's clear I don't have a clue. L is either a set or a list. Little l is an element of that set, and is either a tuple or is mysteriously subscripted by a boolean at the other end of the expression. .. -- DaveA