ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: Keith McKay <mckaymeister@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Arithmetic Overflow error in MetaFun
Date: Sat, 16 May 2020 21:46:40 +0200	[thread overview]
Message-ID: <09327997-b14d-c285-6daf-00a11dc0c86d@xs4all.nl> (raw)
In-Reply-To: <fb8b1c77-3094-4391-4228-1bd44db2029d@gmail.com>

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2020-05-16 19:46 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 [this message]
2020-05-17  8:19     ` Keith McKay
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=09327997-b14d-c285-6daf-00a11dc0c86d@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=mckaymeister@gmail.com \
    --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).