Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Harrison's Postulate: For every action, there is an equal and opposite criticism.


devel / comp.lang.fortran / Re: Automatic Differentiation

SubjectAuthor
* Automatic DifferentiationDaniel Feenberg
+- Re: Automatic DifferentiationRon Shepard
+* Re: Automatic DifferentiationThomas Koenig
|`* Re: Automatic Differentiationgah4
| `* Re: Automatic DifferentiationThomas Koenig
|  +* Re: Automatic Differentiationgah4
|  |+- Re: Automatic DifferentiationThomas Koenig
|  |+* Re: Automatic DifferentiationSpiros Bousbouras
|  ||`* Re: Automatic DifferentiationArjen Markus
|  || `* Re: Automatic DifferentiationRon Shepard
|  ||  +- Re: Automatic Differentiationgah4
|  ||  `- Re: Automatic DifferentiationThomas Koenig
|  |`- Re: Automatic DifferentiationIan Gay
|  +* Re: Automatic DifferentiationDaniel Feenberg
|  |+- Re: Automatic DifferentiationArjen Markus
|  |`- Re: Automatic Differentiationgah4
|  `* Re: Automatic DifferentiationStefan Ram
|   `* Re: Automatic DifferentiationThomas Koenig
|    +- Re: Automatic DifferentiationStefan Ram
|    +- Re: Automatic DifferentiationStefan Ram
|    `* Re: Automatic Differentiationgah4
|     `- Re: Automatic DifferentiationRon Shepard
+- Re: Automatic Differentiationgah4
+- Re: Automatic DifferentiationDavid Duffy
+* Re: Automatic DifferentiationJeff Ryman
|`- Re: Automatic DifferentiationArjen Markus
`- Re: Automatic DifferentiationLouis Krupp

Pages:12
Re: Automatic Differentiation

<91d9b4d7-ed41-4008-8371-da62c3129392n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2207&group=comp.lang.fortran#2207

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:40e:b0:2f3:bad4:ae29 with SMTP id n14-20020a05622a040e00b002f3bad4ae29mr2206105qtx.557.1651725238664;
Wed, 04 May 2022 21:33:58 -0700 (PDT)
X-Received: by 2002:a25:31c2:0:b0:641:660f:230f with SMTP id
x185-20020a2531c2000000b00641660f230fmr20087740ybx.472.1651725238538; Wed, 04
May 2022 21:33:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 4 May 2022 21:33:58 -0700 (PDT)
In-Reply-To: <t4ud3s$1f3$1@newsreader4.netcologne.de>
Injection-Info: google-groups.googlegroups.com; posting-host=75.37.192.241; posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 75.37.192.241
References: <18d0a177-dfda-40ba-aeea-e4f83f6d5876n@googlegroups.com>
<t46iir$uun$2@newsreader4.netcologne.de> <ba27b0bb-2883-4b1b-9884-b65d8551fb1dn@googlegroups.com>
<t46vde$8sm$1@newsreader4.netcologne.de> <derivative-20220504181241@ram.dialup.fu-berlin.de>
<t4ud3s$1f3$1@newsreader4.netcologne.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <91d9b4d7-ed41-4008-8371-da62c3129392n@googlegroups.com>
Subject: Re: Automatic Differentiation
From: gah4@u.washington.edu (gah4)
Injection-Date: Thu, 05 May 2022 04:33:58 +0000
Content-Type: text/plain; charset="UTF-8"
 by: gah4 - Thu, 5 May 2022 04:33 UTC

On Wednesday, May 4, 2022 at 10:28:31 AM UTC-7, Thomas Koenig wrote:

(snip)

> There is no "exactly x=0.1" in binary floating point (and I'm not
> sure that even a single Fortran compiler supports decimal floating
> point, despite radix being present in selected_real_kind), which
> is why I chose that particular number, to add a bit of difficulty.

I now have an IBM Power7 machines, which (like Power6) has decimal
floating point. I haven't gotten to install an OS yet, with AIX and Linux
being two choices, and don't know which compilers have support for it.

Re: Automatic Differentiation

<jgKcK.5564$tTq1.4870@fx34.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2208&group=comp.lang.fortran#2208

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.neodome.net!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.9.0
Subject: Re: Automatic Differentiation
Content-Language: en-US
Newsgroups: comp.lang.fortran
References: <18d0a177-dfda-40ba-aeea-e4f83f6d5876n@googlegroups.com>
<t46iir$uun$2@newsreader4.netcologne.de>
<ba27b0bb-2883-4b1b-9884-b65d8551fb1dn@googlegroups.com>
<t46vde$8sm$1@newsreader4.netcologne.de>
<derivative-20220504181241@ram.dialup.fu-berlin.de>
<t4ud3s$1f3$1@newsreader4.netcologne.de>
<91d9b4d7-ed41-4008-8371-da62c3129392n@googlegroups.com>
From: nospam@nowhere.org (Ron Shepard)
In-Reply-To: <91d9b4d7-ed41-4008-8371-da62c3129392n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 40
Message-ID: <jgKcK.5564$tTq1.4870@fx34.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 5 May 2022 01:37:02 -0500
X-Received-Bytes: 3328
 by: Ron Shepard - Thu, 5 May 2022 06:37 UTC

On 5/4/22 11:33 PM, gah4 wrote:
> On Wednesday, May 4, 2022 at 10:28:31 AM UTC-7, Thomas Koenig wrote:
>
> (snip)
>
>> There is no "exactly x=0.1" in binary floating point (and I'm not
>> sure that even a single Fortran compiler supports decimal floating
>> point, despite radix being present in selected_real_kind), which
>> is why I chose that particular number, to add a bit of difficulty.
>
> I now have an IBM Power7 machines, which (like Power6) has decimal
> floating point. I haven't gotten to install an OS yet, with AIX and Linux
> being two choices, and don't know which compilers have support for it.

This issue has absolutely nothing to do with decimal arithmetic and
whether a particular processor supports it or not.

In the original code, there was an if statement that compared to the
literal value 0.1. That literal value is translated to floating point,
and in floating point, it has a definite value. That numerical value
might be different between the two, but that doesn't matter. Just like
it doesn't matter if the value is represented in 32-bit floating point
or 46-bit floating point or 64-bit floating point, however it is
translated, it has a value. What matters is that some value exists. Then
expressions such as "x > 0.1" have a meaning given the values of x and
the values of 0.1. Those values can compare to be equal, regardless of
whether binary or floating point arithmetic is being done.

Or stated a different way, when the programmer writes "x > 0.1", he is
telling the processor to compare the value of x to another value that it
can represent, he is not telling the processor to compare x to some
hypothetical value that it might not be able represent.

As for fortran support of decimal floating point, I am curious how this
is done too. Presumably there are some KIND values for those REALs? What
happens with mixed-kind arithmetic? Is one kind converted to the other,
or is there hardware support for the mixed-kind operations?

$.02 -Ron Shepard

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor