caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Remi Vanicat <remi.vanicat@laposte.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] float type with better precision than the default
Date: Sat, 06 Dec 2003 12:54:47 +0100	[thread overview]
Message-ID: <87k75axit4.dlv@wanadoo.fr> (raw)
In-Reply-To: <1070682167.6259.31.camel@pelican> (skaller@ozemail.com.au's message of "06 Dec 2003 14:42:50 +1100")

skaller <skaller@ozemail.com.au> writes:

> On Sat, 2003-12-06 at 14:18, Brian Hurt wrote:
>> 30 decimal digits is enough accuracy to measure the 
>> distance between here and the Andromeda Galaxy in microns.  Why does he 
>> need such a ridiculous amount of precision?
>
> Standard eigen problem sometimes needs ridiculous precision:
> the scalar product of two vectors:
>
> 	sigma (i=1,n) (v1_i * v2_i)
>
> sometimes involves cancellation of large values.
> To see why there is a problem here, consider:
>
> 	1.000001e20 - 1e20 -
> 	(1.000001e-20 - 1e-20) 
>

[...]


This is what is called a numerical unstable algorithm...
-- 
Rémi Vanicat

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-12-06 11:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-06  0:44 romildo
2003-12-06  3:18 ` Brian Hurt
2003-12-06  3:42   ` skaller
2003-12-06 11:54     ` Remi Vanicat [this message]
2003-12-08 10:11 ` Jean-Christophe Filliatre
2003-12-08 11:29   ` Jean-Christophe Filliatre
2003-12-08 11:57   ` romildo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k75axit4.dlv@wanadoo.fr \
    --to=remi.vanicat@laposte.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).