unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: Matt Wette <matt.wette@gmail.com>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: Double-precision floating point arithmetics behaves differently in Guile and in C
Date: Mon, 27 Sep 2021 16:04:55 +0200	[thread overview]
Message-ID: <CAMFYt2aCF1_d1gLDJuY_WShEHtqgRf7LiDKas74UFohR_Uwqhw@mail.gmail.com> (raw)
In-Reply-To: <f18d4482-3d82-8d4e-2171-5c192c2e2f91@gmail.com>

niedz., 26 wrz 2021 o 21:11 Matt Wette <matt.wette@gmail.com> napisał(a):

> Your post is a little vague.  Are you comparing singular values vectors
> of A vs
> eigenvalues, eigenvectors of A'*A ?  Also, SVD is iterative and
> different algorithms may yield
> different results (and some of the SVD algorithms out there are not great).
>   Are you using the exact same algorithm but noticing that (op x y) in
> Guile
> behaves differently than (x op y) in C?
>
>
Yes.
I mean, I have used exactly the same algorithm (obtained by mechanically
transforming the scmutils code into C), and I've been looking at its
operation, and noticed that the results of floating point operations
differed between Guile and C for the same input data.

However, it turned out that it wasn't those differences that caused the
trouble, and I currently believe that the numerical differences can be
tolerable for my application.


>


  reply	other threads:[~2021-09-27 14:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-26  8:45 Double-precision floating point arithmetics behaves differently in Guile and in C Panicz Maciej Godek
2021-09-26 11:55 ` Panicz Maciej Godek
2021-09-26 13:16   ` Eli Zaretskii
2021-09-26 16:48     ` Panicz Maciej Godek
2021-09-26 12:57 ` tomas
2021-09-26 19:11 ` Matt Wette
2021-09-27 14:04   ` Panicz Maciej Godek [this message]
2021-10-16  9:19     ` Maxime Devos

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=CAMFYt2aCF1_d1gLDJuY_WShEHtqgRf7LiDKas74UFohR_Uwqhw@mail.gmail.com \
    --to=godek.maciek@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=matt.wette@gmail.com \
    /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).