Re: [NTG-context] Arithmetic Overflow error in MetaFun

2020-05-17 Thread Keith McKay
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, wrote: > On 5/16/2020 4:48 PM, Keith McKay wrote: > > Answering my own problem here. > > > > I've just searched through the mailing list

Re: [NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Hans Hagen
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

Re: [NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Hans Hagen
On 5/16/2020 4:36 PM, Keith McKay wrote: Colleagues I'm having problems with an Arithmetic Overflow error when calculating the x and y values for functions of the form: y = ax^4 + bx^3 + cx^2 + dx + e to which I then add a bit of randomness and other embellishments. I have had a look in

Re: [NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Keith McKay
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! Thanks Best Wishes Keith McKay On 16/05/2020 15:36, Keith McKay wrote: Colleagues I'm having problems

[NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Keith McKay
Colleagues I'm having problems with an Arithmetic Overflow error when calculating the x and y values for functions of the form: y = ax^4 + bx^3 + cx^2 + dx + e to which I then add a bit of randomness and other embellishments. I have had a look in the Metafun and Metafont manuals but nothing

Re: [NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-08 Thread Hans Hagen
On 9/7/2019 10:47 PM, Henning Hraban Ramm wrote: Bear with me, I still got no experience in MetaPost… I’m trying to place a pixel image on a MP page. According to the MetaFun manual this should work: \startMPpage draw externalfigure "mill.png" scaled 5cm shifted (-6cm,0) ; \stopMPpage And it

Re: [NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-07 Thread Fabrice L
Hi, > Le 7 sept. 2019 à 16:47, Henning Hraban Ramm a écrit : > > Bear with me, I still got no experience in MetaPost… > > I’m trying to place a pixel image on a MP page. > > According to the MetaFun manual this should work: > > \startMPpage > draw externalfigure "mill.png" scaled 5cm shifted

[NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-07 Thread Henning Hraban Ramm
Bear with me, I still got no experience in MetaPost… I’m trying to place a pixel image on a MP page. According to the MetaFun manual this should work: \startMPpage draw externalfigure "mill.png" scaled 5cm shifted (-6cm,0) ; \stopMPpage And it works with mill.png (copied into my test dir), but

Re: [NTG-context] Arithmetic Overflow

2006-01-06 Thread Taco Hoekwater
David Arnold wrote: I found warningcheck:=0. Anything allow me to get even bigger numbers to work? Not easily. There is a set of macros for arbitrary calculation using strings instead of integers (sarith), and for Mlog encoded numbers (marith). That might help, but it will mean quite some

[NTG-context] Arithmetic Overflow

2006-01-05 Thread David Arnold
All, Is there a switch I can set to get rid of the arithmetic overflow in the following example? %output=pdf \setupcolors[state=start] \definecolor[gridlines][s=0.7] \startMPinclusions color gridlines; gridlines:=\MPcolor{gridlines}; vardef create_grid (expr l,r,h,b,t,v,wid,ht)= save

Re: [NTG-context] Arithmetic Overflow

2006-01-05 Thread David Arnold
I found warningcheck:=0. Anything allow me to get even bigger numbers to work? On Jan 5, 2006, at 6:15 PM, David Arnold wrote: All, Is there a switch I can set to get rid of the arithmetic overflow in the following example? %output=pdf \setupcolors[state=start]