Barry Schwartz 🫖 · @chemoelectric
490 followers · 7014 posts · Server masto.ai

I added to the repertoire of my answers to the arithmetic draft-task on :

Continued fraction/Arithmetic/G(matrix ng, continued fraction n1, continued fraction n2) - Rosetta Code rosettacode.org/wiki/Continued

#owllisp #continuedfractions #rosettacode #scheme #lisp #functionalprogramming

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
488 followers · 6987 posts · Server masto.ai

I translated, from to , the draft task:

Continued fraction/Arithmetic/G(matrix ng, continued fraction n1, continued fraction n2) - Rosetta Code rosettacode.org/wiki/Continued

I have decided there isn’t a single thing I like about Haskell syntax. I do not care how one writes a thing, I hate it. There is no reason whatsoever for Haskell not to have had a more ML-like syntax. None whatsoever, except to encourage breakage.

#mercury #haskell #continuedfractions #rosettacode

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
488 followers · 6982 posts · Server masto.ai

An implementation of the arithmetic draft task, in , based very loosely on the (that is based on the and the :

Continued fraction/Arithmetic/G(matrix ng, continued fraction n1, continued fraction n2) - Rosetta Code rosettacode.org/wiki/Continued

The implementation uses to represent continued fractions.

#rosettacode #continuedfractions #mercury #standardml #scheme #python #lazylists

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
488 followers · 6963 posts · Server masto.ai

The was a particular pleasure to write:

Continued fraction/Arithmetic/G(matrix ng, continued fraction n1, continued fraction n2) - Rosetta Code rosettacode.org/wiki/Continued

#standardml #sml #rosettacode #continuedfractions

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
488 followers · 6952 posts · Server masto.ai

I have now done the arithmetic draft task in --

Continued fraction/Arithmetic/G(matrix ng, continued fraction n1, continued fraction n2) - Rosetta Code rosettacode.org/wiki/Continued

I credit my own Python implementation as the original, although the Ada is quite different. Interestingly, I use ‘inheritance’ in the Ada but not in the Python! One might ask why ...

#rosettacode #continuedfractions #ada #adalang

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
486 followers · 6870 posts · Server masto.ai

This took a few days of overwork and obsessive overexcitement to write. A port of my for , including a primitive module:

Continued fraction/Arithmetic/G(matrix ng, continued fraction n1, continued fraction n2) - Rosetta Code rosettacode.org/wiki/Continued

Part of the problem, as I have mentioned before, is that gfortran is not especially helpful in tracking down bugs. But I see gdb has gotten better with Fortran.

#fortran #rosettacode #continuedfractions #multipleprecision

Last updated 2 years ago