unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: tomas@fabula.de
Cc: guile-user@gnu.org
Subject: Re: Floating Point?
Date: Tue, 9 Sep 2003 09:52:26 +0200	[thread overview]
Message-ID: <20030909075226.GA26222@www> (raw)
In-Reply-To: <20030908144359.GA2046@milla.autsens.localnet>

On Mon, Sep 08, 2003 at 11:43:59AM -0300, Betoes wrote:
> On Sat, Sep 06, 2003 at 01:10:21PM -0500, Peter S. Christopher wrote:
> > Hi there listers,
> > 
> > 	I've been thinking about how to make my floating point
> > calculations go faster. I thought that my FP calculations where so slow
> 
> I have doubt about the speed of floating point calculations too, but
> because of arbitrary precision of guile floating point
> arthmetics... Does it have a way to turn off this feature? Does it
> really have influence on speedy calculations?

No. Arbitrary precision is for integers (it's impossible to do general
arbitrary precision for reals). Floats in Guile are just machine floats
(properly wrapped as SCMs, which might make them a tad `slower', though).

If I see right, they are just machine doubles, referenced indirectly
through the SCM object (thus the unwrapping costs you a dereference).

Please correct me someone more in the know.

Regards
-- tomas


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2003-09-09  7:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-06 18:10 Floating Point? Peter S. Christopher
2003-09-08 14:43 ` Betoes
2003-09-09  7:52   ` tomas [this message]
2003-09-09  9:26     ` David Allouche
2003-09-09 14:34       ` Peter S. Christopher
2003-09-09 21:15         ` Robert Uhl

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=20030909075226.GA26222@www \
    --to=tomas@fabula.de \
    --cc=guile-user@gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).