HP Forums
awk (or better gawk) libraries of math functions - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not remotely HP Calculators (/forum-9.html)
+--- Thread: awk (or better gawk) libraries of math functions (/thread-11317.html)



awk (or better gawk) libraries of math functions - pier4r - 09-02-2018 08:38 AM

Follow up of http://www.hpmuseum.org/forum/thread-10132.html .

Since gawk 4.1 (debian 8 has it, so it was included relatively recently in the main linux distributions) gawk has also arbitrary precision arithmetic like bc, plus a couple of construct more than bc. The syntax is pretty easy to pick up (it is like C), so it is a nice programming environment (although not that optimized of course).

As another confirmation that internet forgets, in the past there were more than one site hosting awk communities that collected plenty of contributions. One was awk.info or the like. Of those sites there are some parts, but only few, on the internet wayback machine.

Therefore a lot of potential contributions got lost. The best I could find that is available nowadays with a quick search is this nice wiki http://balbach.net/awk/doku.php?id=start .
(I note that although communities may be active, wikis may be lacking most of the contributions, like our wiki at http://www.wiki4hp.com . That's a pity)

Checking quickly the libraries there I found this:
https://github.com/numcommand/num/tree/master/src
That's quite a work.

I think the libraries developed for bc should be larger than those for awk and they could provide a base for a possible port.


RE: awk (or better gawk) libraries of math functions - Paul Dale - 09-02-2018 10:41 AM

The internet never forgets:

https://web.archive.org/web/*/http://awk.info

Try early 2016.


Pauli


RE: awk (or better gawk) libraries of math functions - Albert Chan - 09-04-2018 10:52 PM

Awk program to do shortest path: http://andrear.altervista.org/contents/pc/awkdijkstra/


RE: awk (or better gawk) libraries of math functions - BruceH - 09-04-2018 11:40 PM

comp.lang.awk on Usenet is still active. A question there would soon be answered.