Re: [fpc-devel] Math and numlib

2017-03-14 Thread Michael Van Canneyt
On Tue, 14 Mar 2017, Werner Pamler wrote: Thanks - unfortunately I've just uploaded a patch for unit typ implementing IsNaN and IsInfinity according to Michael's suggestion. But I think I'll withdraw the patch and replace it with one for a cleaned up typ unit. How about cleaning up also sp

Re: [fpc-devel] Math and numlib

2017-03-14 Thread Werner Pamler
Thanks - unfortunately I've just uploaded a patch for unit typ implementing IsNaN and IsInfinity according to Michael's suggestion. But I think I'll withdraw the patch and replace it with one for a cleaned up typ unit. How about cleaning up also spe? It contains a large number of functions wh

Re: [fpc-devel] Math and numlib

2017-03-14 Thread Marco van de Voort
In our previous episode, Werner Pamler said: > > is no way to check whether a value is "equal" to NaN. In math, however, > there is a function IsNaN(). And my feeling is that these special > numbers NaN and Infinity are implemented in math in a more general way > than in numlib. An idea would b

Re: [fpc-devel] Math and numlib

2017-03-14 Thread Michael Van Canneyt
On Mon, 13 Mar 2017, Werner Pamler wrote: Hi everybody - my first post here... At the moment I am spending some time with fpc's numlib and writing a wrapper for a more versatile fitting procedure. Are there any problems to add the unit math to the uses clause of some numlib units? I want to

[fpc-devel] Math and numlib

2017-03-14 Thread Werner Pamler
Hi everybody - my first post here... At the moment I am spending some time with fpc's numlib and writing a wrapper for a more versatile fitting procedure. Are there any problems to add the unit math to the uses clause of some numlib units? I want to use the value NaN (not-a-number) which is de