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


Groups > comp.lang.python > #78756

Re: Representing mathematical equations

Newsgroups comp.lang.python
Date 2014-10-06 06:07 -0700
References <9ea5c61c-9f06-4bcb-982e-2be0a910b817@googlegroups.com> <09669ac4-1aeb-48fa-8cc9-7f741f7fe6b3@googlegroups.com>
Message-ID <28aeb1c6-2a2f-4452-862d-c98b204eab34@googlegroups.com> (permalink)
Subject Re: Representing mathematical equations
From varun7rs@gmail.com

Show all headers | View raw


On Monday, 6 October 2014 15:03:44 UTC+2, varu...@gmail.com  wrote:
> On Monday, 6 October 2014 13:14:04 UTC+2, varu...@gmail.com  wrote:
> 
> > Hello,
> 
> > 
> 
> > 
> 
> > 
> 
> > I am working on a mathematical equation which I'm finding really hard to express in python. Could any of you spare some time to help me out?
> 
> > 
> 
> > 
> 
> > 
> 
> > The equation looks like this
> 
> > 
> 
> > 
> 
> > 
> 
> > b(i,x) = [Σ(l∈L) [bd(l) * dist(l) * hc(l)]]  / Σ(l∈L) l
> 
> > 
> 
> > 
> 
> > 
> 
> > I have a problem in representing the above equation. I don't know how to use teh loops over here to express b(i,x)
> 
> > 
> 
> > 
> 
> > 
> 
> > i,x,l are sets with different numbers
> 
> > 
> 
> > 
> 
> > 
> 
> > Thank You
> 
> > 
> 
> > I'm sorry if the equation is not expressed in a standard form. I don't have LateX
> 
> 
> 
> 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
> 
> 
> 
> Thank You

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

Back to comp.lang.python | Previous | Next — Previous in thread | Next 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