Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6857

Re: higher precision doubles

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: higher precision doubles
Date Sun, 07 Aug 2011 21:23:03 +0200
Organization albasani.net
Lines 47
Message-ID <j1momo$34q$1@news.albasani.net> (permalink)
References <j1hqc1$1ch$1@news.albasani.net> <strictfp-20110806003831@ram.dialup.fu-berlin.de> <j1k4db$1n2$1@news.albasani.net> <j1k87t$kol$1@dont-email.me> <j1kb73$h3p$1@news.albasani.net> <j1kg3g$61c$1@dont-email.me> <j1kheh$ta4$1@news.albasani.net> <GMCdnfvkB6IaUaDTnZ2dnUVZ_omdnZ2d@earthlink.com> <j1kj1j$be$1@news.albasani.net> <t8idnWDwz_v8iKPTnZ2dnUVZ_gCdnZ2d@earthlink.com> <j1manb$2lu$1@news.albasani.net> <nOednS4yGv5WIaPTnZ2dnUVZ_gqdnZ2d@earthlink.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net 1KbueUWJd44edcbMfHazJCKqd0CvLLbac1OGf/9EFwzE8y1lG+NFJWUEEqnfA8axZfXloupTz05Zo20+6BtP7Q==
NNTP-Posting-Date Sun, 7 Aug 2011 19:23:04 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="npZF4sF2VSwXvYfWJRd0UzuMPS5ycjPuK+kFqqhN0ydtTL8SDGoSyuQZhJ3uGecPZOyRRNnkZv4P2EOe6F29gHfbPZFEao8EaW9Wl26G3qgdkQUpOmL9SPBsalpcwa2f"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110706 Firefox/5.0 SeaMonkey/2.2
In-Reply-To <nOednS4yGv5WIaPTnZ2dnUVZ_gqdnZ2d@earthlink.com>
Cancel-Lock sha1:SmTtUNG9JuF7a8VyXUPZX6oPSGs=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6857

Show key headers only | View raw


Patricia Shanahan schrieb:
> One can often make some particular combination of calculations give a
> more precise answer by some variations in the arithmetic. However, this
> does not give much indication of the real requirements.
>
> Do calculations involving trig functions of integer multiples of pi need
> to be exact in some application, even if trig functions of other angles
> have normal rounding behavior? If so, why? Or do you need trig functions
> in general to be more precise?

I guess you looking too far. The higher precision is just
parameter of the representation. From a far angel we have
the requirement that float fit into 32 bit and double into
64 bit. In my post 06.08.2011 13:03 I was writing:

 > I was wondering whether I can take advantage of an AMD64. Since
 > it has 80bit IEEE floating point registers:
 >
 > http://people.freebsd.org/~lstewart/references/amd64.pdf
 > Paragraph 1.2

So no need to show you any application. I am just interested
in the 80 bit. Whether I CAN work with them or not. I am
not interested in the question whether I SHOULD work
with them. In my post 06.08.2011 00:20, I was asking this
as follows:

 > IEEE allows to internally calculate with additional bits.
 > Is it possible to have awailable these ops? Like an add
 > with this higher precision? How could we store such a
 > result? Would there be a wrapper like Double?

We can also dig a little bit further what the representation
parameters are. In particular we have:

                        Mantissa   Exponent
    double 64bit:       52 bit     11 bit
    double 80bit:       64 bit     15 bit

So here I can restate my question:

   I would like for whatever reason work with 80bit
   floats as defined above in Java. I am interested
   in the full set of arithmetic functions, I/O and
   trigonometric functions. How could I do that?

Best Regards

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-06 00:20 +0200
  Re: higher precision doubles Patricia Shanahan <pats@acm.org> - 2011-08-06 03:35 -0700
    Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-06 13:03 +0200
      Re: higher precision doubles BGB <cr88192@hotmail.com> - 2011-08-06 12:20 -0700
        Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-06 23:30 +0200
          Re: higher precision doubles BGB <cr88192@hotmail.com> - 2011-08-06 16:12 -0700
            Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-07 01:35 +0200
              Re: higher precision doubles BGB <cr88192@hotmail.com> - 2011-08-06 19:26 -0700
    Re: higher precision doubles supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> - 2011-08-09 00:42 -0400
      Re: higher precision doubles Patricia Shanahan <pats@acm.org> - 2011-08-09 04:07 -0700
        Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-09 14:00 +0200
          Re: higher precision doubles Patricia Shanahan <pats@acm.org> - 2011-08-09 09:07 -0700
            Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-10 08:50 +0200
        Re: higher precision doubles supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> - 2011-08-10 20:16 -0400
      Re: higher precision doubles Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-08-09 10:11 -0500
        Re: higher precision doubles Arne Vajhøj <arne@vajhoej.dk> - 2011-08-09 22:40 -0400
          Re: higher precision doubles Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-08-09 22:06 -0500
            Re: higher precision doubles BGB <cr88192@hotmail.com> - 2011-08-10 08:53 -0700
  Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-06 21:24 +0200
    Re: higher precision doubles markspace <-@.> - 2011-08-06 13:29 -0700
      Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-06 23:20 +0200
        Re: higher precision doubles markspace <-@.> - 2011-08-06 15:43 -0700
          Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-07 01:06 +0200
            Re: higher precision doubles Patricia Shanahan <pats@acm.org> - 2011-08-06 16:21 -0700
              Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-07 01:34 +0200
                Re: higher precision doubles Patricia Shanahan <pats@acm.org> - 2011-08-06 21:32 -0700
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-07 17:24 +0200
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-07 17:39 +0200
                Re: higher precision doubles Patricia Shanahan <pats@acm.org> - 2011-08-07 09:26 -0700
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-07 21:23 +0200
                Re: higher precision doubles Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-08-07 20:48 -0400
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-08 09:05 +0200
                Re: higher precision doubles Patricia Shanahan <pats@acm.org> - 2011-08-08 05:37 -0700
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-08 19:08 +0200
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-08 19:16 +0200
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-08 19:29 +0200
                Re: higher precision doubles Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-08-08 21:34 -0500
                Re: higher precision doubles BGB <cr88192@hotmail.com> - 2011-08-08 13:49 -0700
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-09 01:08 +0200
                Re: higher precision doubles BGB <cr88192@hotmail.com> - 2011-08-09 02:44 -0700
                Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-09 12:52 +0200
                Re: higher precision doubles BGB <cr88192@hotmail.com> - 2011-08-09 13:15 -0700
                Re: higher precision doubles BGB <cr88192@hotmail.com> - 2011-08-07 13:51 -0700
              Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-07 01:59 +0200
        Re: higher precision doubles Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-08-08 21:03 -0500
    Re: higher precision doubles Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-08-06 17:33 -0400
    Re: higher precision doubles Patricia Shanahan <pats@acm.org> - 2011-08-06 14:51 -0700
      Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-08-07 00:57 +0200

csiph-web