From: Keith McKay <mckaymeister@gmail.com>
To: Hans Hagen <j.hagen@xs4all.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Arithmetic Overflow error in MetaFun
Date: Sun, 17 May 2020 09:19:12 +0100 [thread overview]
Message-ID: <CABX+t6BpBsKHiXpAgsPCD4Ucdy24ZNnsppdJ6qgdSMgbN=V=Dw@mail.gmail.com> (raw)
In-Reply-To: <09327997-b14d-c285-6daf-00a11dc0c86d@xs4all.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1339 bytes --]
Thanks for your help Hans and the pointer to the extended math library.
Lots more to explore now.
Best Wishes
Keith
On Sat, 16 May 2020, 20:46 Hans Hagen, <j.hagen@xs4all.nl> wrote:
> On 5/16/2020 4:48 PM, Keith McKay wrote:
> > Answering my own problem here.
> >
> > I've just searched through the mailing list archives and it seems that
> > if I add [instance=doublefun] I do not get the Arithmetic Overflow
> > error. Joy!
> fwiw, we have also instance=decimalfun
>
> concerning arithmic:
>
> in metapost we have
>
> scaled : upto 4K bp
> double : 64 bit floats
> decimal : configurable accuracy
> complex : dual doubles (only in luametafun)
>
> in lmtx lua we have:
>
> integer : lua tries to be clever but mixing leads to double
> float : lua tries to be clever
> decimal : userdata arbitrary precision (only in lmtx)
> complex : userdata dual doubles (only in lmtx)
>
> (in lmtx we have an extended math library and these function are also
> available in luametafun)
>
> Hans
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
[-- Attachment #1.2: Type: text/html, Size: 2004 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-05-17 8:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-16 14:36 Keith McKay
2020-05-16 14:48 ` Keith McKay
2020-05-16 19:46 ` Hans Hagen
2020-05-17 8:19 ` Keith McKay [this message]
2020-05-16 14:50 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABX+t6BpBsKHiXpAgsPCD4Ucdy24ZNnsppdJ6qgdSMgbN=V=Dw@mail.gmail.com' \
--to=mckaymeister@gmail.com \
--cc=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).