Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78753
| From | Dave Angel <davea@davea.name> |
|---|---|
| Subject | Re:Representing mathematical equations |
| Date | 2014-10-06 08:50 -0400 |
| Organization | news.gmane.org |
| References | <9ea5c61c-9f06-4bcb-982e-2be0a910b817@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14634.1412599694.18130.python-list@python.org> (permalink) |
varun7rs@gmail.com Wrote in message: > 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 > Perhaps you meant L is a set of numbers, none repeated. If you really meant l, I have no clue. As for i and x, they don't appear on the right side so they're a red herring. I also don't know what bd, dist, and hc are. Are they each a function of a single number? Or are they vectors, indexed by int? If so, then presumably L is a set of ints. How about you express some sample data that you'd like to evaluate. For example, start with L = set (1, 4, 3) bd = [4.3, 12.11, 93, -0.9, 42] ..... > I'm sorry if the equation is not expressed in a standard form. I don't have LateX No problem, you did a good job expressing it in unicode in a text message. Ii Ll 1 -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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