Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Every living thing wants to survive. -- Spock, "The Ultimate Computer", stardate 4731.3


devel / comp.lang.mumps / POSIX plugin adds mathematical functions

SubjectAuthor
o POSIX plugin adds mathematical functionsK.S. Bhaskar

1
POSIX plugin adds mathematical functions

<8d988642-2787-49b0-b1ab-6fa55d2cf028n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:200b:b0:77d:cacf:43b2 with SMTP id c11-20020a05620a200b00b0077dcacf43b2mr310146qka.10.1701458636902;
Fri, 01 Dec 2023 11:23:56 -0800 (PST)
X-Received: by 2002:a17:902:db10:b0:1cf:c19e:5be7 with SMTP id
m16-20020a170902db1000b001cfc19e5be7mr4075579plx.12.1701458636313; Fri, 01
Dec 2023 11:23:56 -0800 (PST)
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.mumps
Date: Fri, 1 Dec 2023 11:23:55 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=71.162.243.192; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 71.162.243.192
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8d988642-2787-49b0-b1ab-6fa55d2cf028n@googlegroups.com>
Subject: POSIX plugin adds mathematical functions
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Fri, 01 Dec 2023 19:23:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: K.S. Bhaskar - Fri, 1 Dec 2023 19:23 UTC

The YottaDB POSIX plugin now provides the POSIX mathematical functions from libmath.h. There is a high level interface. For example, to get the value of π:

YDB>set pi=2*$$arccos^%ydbposix(0) write pi
3.1415926535898
YDB>

There is also a low level interface. For example, here is the value of log10(3):

YDB>do &ydbposix.log10(3,.out) write out
..477121254719662
YDB>

The functions are documented in the Plugins manual at https://docs.yottadb.com/Plugins/ydbposix.html.

Regards
– Bhaskar

--
YottaDB - Rock solid. Lightning fast. Secure. Pick any three.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor