Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

All the simple programs have been written.


devel / comp.lang.forth / Re: computer algebra with Forth II

SubjectAuthor
* computer algebra with Forth IImhx
+- Re: computer algebra with Forth IIBuzz McCool
+* Re: computer algebra with Forth IIMarc Olschok
|`- Re: computer algebra with Forth IImhx
`* Re: computer algebra with Forth IIAhmed
 `* Re: computer algebra with Forth IImhx
  `* Re: computer algebra with Forth IIPaul Rubin
   `* Re: computer algebra with Forth IImhx
    `- Re: computer algebra with Forth IIPaul Rubin

1
computer algebra with Forth II

<e57be50db28139d71ae4061d732948ad@www.novabbs.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25688&group=comp.lang.forth#25688

  copy link   Newsgroups: comp.lang.forth
Date: Sat, 20 Jan 2024 13:17:37 +0000
Subject: computer algebra with Forth II
From: mhx...@iae.nl (mhx)
Newsgroups: comp.lang.forth
X-Rslight-Site: $2y$10$p5lFAIZdi2tfxNEJ.8gDNelwwtqhcGPQ2jmJJED0FphpLe2yi3FWO
X-Rslight-Posting-User: 59549e76d0c3560fb37b97f0b9407a8c14054f24
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
Organization: novaBBS
Message-ID: <e57be50db28139d71ae4061d732948ad@www.novabbs.com>
 by: mhx - Sat, 20 Jan 2024 13:17 UTC

( there is a thread about this from 2014 but it went nowhere )

Symbolic differentiation might be interesting for my circuit
simulation engine. Is there a Forth package available
to handle this, or at least be helpful with nuts and bolts
when implementing something?

I'd like to avoid having to build a full Lisp or Prolog engine
first (unless these are completely hands-off / can be kept
invisible).

-marcel

Re: computer algebra with Forth II

<up157m$30qtr$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25721&group=comp.lang.forth#25721

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: buzz_mcc...@yahoo.com (Buzz McCool)
Newsgroups: comp.lang.forth
Subject: Re: computer algebra with Forth II
Date: Fri, 26 Jan 2024 12:38:13 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <up157m$30qtr$1@dont-email.me>
References: <e57be50db28139d71ae4061d732948ad@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 26 Jan 2024 20:38:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0990d7cdfbb6aee3490c3a5e15c689c2";
logging-data="3173307"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8Hha9Zz/9A5RvK11Ee/SCP6MVb5iy+Rg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZMTag9E0DtS/YSpAhTsDBvhCptQ=
Content-Language: en-US
In-Reply-To: <e57be50db28139d71ae4061d732948ad@www.novabbs.com>
 by: Buzz McCool - Fri, 26 Jan 2024 20:38 UTC

On 1/20/2024 5:17 AM, mhx wrote:
> ( there is a thread about this from 2014 but it went nowhere )
>
> Symbolic differentiation might be interesting for my circuit
> simulation engine. Is there a Forth package available
> to handle this, or at least be helpful with nuts and bolts when
> implementing something?

Perhaps the book Scientific Forth: A Modern Language for Scientific
Computing by Julian V. Noble would be a starting point?

Re: computer algebra with Forth II

<up1fct$vdep$1@solani.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25722&group=comp.lang.forth#25722

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: nob...@nowhere.invalid (Marc Olschok)
Newsgroups: comp.lang.forth
Subject: Re: computer algebra with Forth II
Date: Fri, 26 Jan 2024 23:31:41 -0000 (UTC)
Sender: quarc <quarc@freeshell.de>
Message-ID: <up1fct$vdep$1@solani.org>
References: <e57be50db28139d71ae4061d732948ad@www.novabbs.com>
Injection-Date: Fri, 26 Jan 2024 23:31:41 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1029593"; mail-complaints-to="abuse@news.solani.org"
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-162-generic (x86_64))
Cancel-Lock: sha1:qh2x4+KmF3+b0rHflkt55u4tTa8=
X-User-ID: eJwFwYEBwCAIBLGVpMAp49RX9h/BJB1DM0giO1suKrRjtR1u+Vde0Duxe5bGmPK+4hD7hwceQhFH
 by: Marc Olschok - Fri, 26 Jan 2024 23:31 UTC

On Sat, 20 Jan 2024 14:17:37 mhx wrote:
> ( there is a thread about this from 2014 but it went nowhere )
>
> Symbolic differentiation might be interesting for my circuit
> simulation engine. Is there a Forth package available
> to handle this, or at least be helpful with nuts and bolts
> when implementing something?
>
> I'd like to avoid having to build a full Lisp or Prolog engine
> first (unless these are completely hands-off / can be kept
> invisible).

John Wavrik ( https://math.ucsd.edu/~jwavrik/ ) has used
Forth for work in algebra. He is probably not active anymore,
but you might find some useful pointers on his pages
(also https://math.ucsd.edu/~jwavrik/pub/index.html ).

--
M.O.

Re: computer algebra with Forth II

<06a8a08d45771e7ae2da686702d2c93f@www.novabbs.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25724&group=comp.lang.forth#25724

  copy link   Newsgroups: comp.lang.forth
Date: Sat, 27 Jan 2024 12:41:27 +0000
Subject: Re: computer algebra with Forth II
From: melahi_a...@yahoo.fr (Ahmed)
Newsgroups: comp.lang.forth
X-Rslight-Site: $2y$10$qqZJLqyaz5sH1zn6hgB3B.RBqbA2JO9fZQnGimR7KPWivvXE.c0Ie
X-Rslight-Posting-User: cdd77cd46f5cefdf617b921703a970831cf47f35
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <e57be50db28139d71ae4061d732948ad@www.novabbs.com>
Organization: novaBBS
Message-ID: <06a8a08d45771e7ae2da686702d2c93f@www.novabbs.com>
 by: Ahmed - Sat, 27 Jan 2024 12:41 UTC

Hi,

By "Symbolic Differentiation", do you mean "Automatic Differentiation"?
If so you can see the Julia language packages for AD "Automatic Differentiation" based on:
- dual numbers
- complex numbers (for precision)

Bye

Re: computer algebra with Forth II

<ca61a51ef5c7c5d8308ed3c466573e00@www.novabbs.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25725&group=comp.lang.forth#25725

  copy link   Newsgroups: comp.lang.forth
Date: Sat, 27 Jan 2024 16:36:39 +0000
Subject: Re: computer algebra with Forth II
From: mhx...@iae.nl (mhx)
Newsgroups: comp.lang.forth
X-Rslight-Site: $2y$10$36kUxDqTN8DKAwp.0YX4yu1Y9TUg3pSXCqXEuvkb54R.5dV.L9jwu
X-Rslight-Posting-User: 59549e76d0c3560fb37b97f0b9407a8c14054f24
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <e57be50db28139d71ae4061d732948ad@www.novabbs.com> <06a8a08d45771e7ae2da686702d2c93f@www.novabbs.com>
Organization: novaBBS
Message-ID: <ca61a51ef5c7c5d8308ed3c466573e00@www.novabbs.com>
 by: mhx - Sat, 27 Jan 2024 16:36 UTC

Ahmed wrote:

> By "Symbolic Differentiation", do you mean "Automatic Differentiation"?
> If so you can see the Julia language packages for AD "Automatic Differentiation" based on:
> - dual numbers
> - complex numbers (for precision)

Whoa, thanks a lot for this pointer!

Actually, I was looking for Symbolic differentiation
( https://www.cs.utexas.edu/users/novak/asg-symdif.html ).

I didn't know there is a well-established difference between
'Symbolic' and 'Automatic' differentiation. A quite lucid
introduction to AS can be found on Wikipedia
(https://en.wikipedia.org/wiki/Automatic_differentiation).

Instrumenting a compiler to find first order backward differences
alongside the 'normal' result, using dual numbers, is natural to
the Forth way of thinking and (appears) trivial to implement.
It might be much more fundamental to circuit simulation and discrete
control than I originally thought, and maybe even a breakthrough.

There might be a relation with past Forth experiments to implement
'reverse computation' or running programs backwards in time (website
of Forth UK?). I'll have to review that work.

Admittedly, I knew about Julia's secret AD weapon, but as it was never
properly explained what people meant with it, I had come to suspect that
it was just another hype. There's a JuliaCon in Eindhoven soon that
I probably should attend.

-marcel

Re: computer algebra with Forth II

<6fadf8f2c6af8e32ed656f775efb7b89@www.novabbs.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25726&group=comp.lang.forth#25726

  copy link   Newsgroups: comp.lang.forth
Date: Sat, 27 Jan 2024 16:50:39 +0000
Subject: Re: computer algebra with Forth II
From: mhx...@iae.nl (mhx)
Newsgroups: comp.lang.forth
X-Rslight-Site: $2y$10$hmH/8zH3pj4PtyJcBV95juLpqyoIbkfCFpNyncxLDberuUN0UbRky
X-Rslight-Posting-User: 59549e76d0c3560fb37b97f0b9407a8c14054f24
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <e57be50db28139d71ae4061d732948ad@www.novabbs.com> <up1fct$vdep$1@solani.org>
Organization: novaBBS
Message-ID: <6fadf8f2c6af8e32ed656f775efb7b89@www.novabbs.com>
 by: mhx - Sat, 27 Jan 2024 16:50 UTC

Marc Olschok wrote:

> John Wavrik ( https://math.ucsd.edu/~jwavrik/ ) has used
> Forth for work in algebra. He is probably not active anymore,
> but you might find some useful pointers on his pages
> (also https://math.ucsd.edu/~jwavrik/pub/index.html ).

Thank you. Not really what I was looking for, but I plan to read
the JOMA paper "Evolution of a Computer Application"
(https://mathweb.ucsd.edu/~jwavrik/pub/23_Evolution.pdf),
eventually.

-marcel

Re: computer algebra with Forth II

<874jeyxxlw.fsf@nightsong.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25727&group=comp.lang.forth#25727

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: computer algebra with Forth II
Date: Sat, 27 Jan 2024 13:41:47 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <874jeyxxlw.fsf@nightsong.com>
References: <e57be50db28139d71ae4061d732948ad@www.novabbs.com>
<06a8a08d45771e7ae2da686702d2c93f@www.novabbs.com>
<ca61a51ef5c7c5d8308ed3c466573e00@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="4dddeea1d89962691c3e28346f1f575a";
logging-data="3730224"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IEl8e0vdtj1rO/nAH6HkL"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:Ta9Db3lKiz6TehRMH+Nsa5xYPU8=
sha1:B7XrUv5hCdlodM4CzCu7D8MNHPg=
 by: Paul Rubin - Sat, 27 Jan 2024 21:41 UTC

mhx@iae.nl (mhx) writes:
> (https://en.wikipedia.org/wiki/Automatic_differentiation).

This is more concise and is where I first heard of the topic:

http://blog.sigfpe.com/2005/07/automatic-differentiation.html

It also points to a portal site, https://www.autodiff.org/

Sigfpe.com is a really cool site and I learned a lot there.

Re: computer algebra with Forth II

<ed18f885329f717b8cdfad0621981452@www.novabbs.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25729&group=comp.lang.forth#25729

  copy link   Newsgroups: comp.lang.forth
Date: Sun, 28 Jan 2024 08:51:27 +0000
Subject: Re: computer algebra with Forth II
From: mhx...@iae.nl (mhx)
Newsgroups: comp.lang.forth
X-Rslight-Site: $2y$10$3BKNnkel2mKjYNQm2zy.0eoG67VgP46o8rGlbdOcPGqHzYKku9x.6
X-Rslight-Posting-User: 59549e76d0c3560fb37b97f0b9407a8c14054f24
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <e57be50db28139d71ae4061d732948ad@www.novabbs.com> <06a8a08d45771e7ae2da686702d2c93f@www.novabbs.com> <ca61a51ef5c7c5d8308ed3c466573e00@www.novabbs.com> <874jeyxxlw.fsf@nightsong.com>
Organization: novaBBS
Message-ID: <ed18f885329f717b8cdfad0621981452@www.novabbs.com>
 by: mhx - Sun, 28 Jan 2024 08:51 UTC

Paul Rubin wrote:

> mhx@iae.nl (mhx) writes:
>> (https://en.wikipedia.org/wiki/Automatic_differentiation).

> This is more concise and is where I first heard of the topic:

> http://blog.sigfpe.com/2005/07/automatic-differentiation.html

> It also points to a portal site, https://www.autodiff.org/

> Sigfpe.com is a really cool site and I learned a lot there.

Both references assume for granted that readers know why one
would want to symbolically differentiate a computational
procedure. I see that sigfpe's lost paper
(search on the Wayback machine for http://homepage.mac.com/sigfpe/paper.pdf)
takes very good care of that and he probably didn't want to
repeat himself on his blog (such people exist :-)

-marcel

Re: computer algebra with Forth II

<87v87bwx9p.fsf@nightsong.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=25749&group=comp.lang.forth#25749

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: computer algebra with Forth II
Date: Mon, 29 Jan 2024 15:11:14 -0800
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <87v87bwx9p.fsf@nightsong.com>
References: <e57be50db28139d71ae4061d732948ad@www.novabbs.com>
<06a8a08d45771e7ae2da686702d2c93f@www.novabbs.com>
<ca61a51ef5c7c5d8308ed3c466573e00@www.novabbs.com>
<874jeyxxlw.fsf@nightsong.com>
<ed18f885329f717b8cdfad0621981452@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="350730d1f650b22cf1fccb30f754f91b";
logging-data="700410"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fuDRyW+hjb7O+WCHsXhe0"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:EF7l+ft0kbEVkUKxf4or7UWkWZQ=
sha1:/F1I8UzyB/d0X7jZqZwZjavBEKA=
 by: Paul Rubin - Mon, 29 Jan 2024 23:11 UTC

mhx@iae.nl (mhx) writes:
> Both references assume for granted that readers know why one
> would want to symbolically differentiate a computational procedure. I
> see that sigfpe's lost paper (search on the Wayback machine for
> http://homepage.mac.com/sigfpe/paper.pdf)
> takes very good care of that and he probably didn't want to repeat
> himself on his blog (such people exist :-)

A url from a blog comment is:
http://web.archive.org/web/20120111180418/http://homepage.mac.com/sigfpe/paper.pdf

I believe that Sussman and Wisdom's book "Structure and Interpretation
of Classical Mechanics" (which presents a lot of classical mechanics
formulas as Scheme code) uses this method extensively. But I haven't
looked at the book much. Maybe someday. The book is online: see
"External links" at the end of

https://en.wikipedia.org/wiki/Structure_and_Interpretation_of_Classical_Mechanics


devel / comp.lang.forth / Re: computer algebra with Forth II

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor