Newsgroups: sci.math.num-analysis
From: Gordon Sande <g.sa...@worldnet.att.net>
Date: Sun, 02 Nov 2008 19:13:22 GMT
Local: Sun, Nov 2 2008 8:13 am
Subject: Re: Any way around non-reversibility of floating point ops
On 2008-11-02 12:30:20 -0400, Peter Seibel <peter.sei...@gmail.com> said:
> I've got an algorithm for computing the probability of a candidate in If you are doing a lot of manipulations this numers that are 1 - eps > the presidential election winning a certain number of elector votes > that looks like this (in pseudo-code): > define compute-ev-probabilites (state-probs) > define fold-into (probs votes prob) > So far so good. Now I'd like to add this function which can back out > define back-out (probs votes prob) > Mathematically this works--I've actually implemented this in Common > Is there some obvious way to write this so I can still use floating > -Peter it may pay to use a bit of symbolic smarts to keep the 1 separate from the eps. How to do this "depends". Working through an error analysis should tell you where it might help. You would be using the symbolic analysis to lower the sensitivity of the computation to error progation. However since you had to ask one suspects that you may not be familiar You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||