Newsgroups: sci.math.num-analysis
From: spellu...@fb04373.mathematik.tu-darmstadt.de (Peter Spellucci)
Date: Mon, 3 Nov 2008 14:06:25 +0100 (CET)
Local: Mon, Nov 3 2008 2:06 am
Subject: Re: Any way around non-reversibility of floating point ops
In article <7d6c2a14-36f5-426d-9563-b67f70e17...@a29g2000pra.googlegroups.com>, >I've got an algorithm for computing the probability of a candidate in as stated already by others, yuo must in principle use an error analysis based >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 on the (hopefully for your system ) correct model of the computer arithmetic (x machine operation y ) = (x exact operation y)(1+eta) with abs(eta)<= eps = "machine precision" = 2^(-53) in double 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.
| ||||||||||||||