Is there any interval arithmetic library available in Pharo ?
---------- Forwarded message ---------- From: Serge Stinckwich <[hidden email]> Date: Sun, Jun 28, 2015 at 6:24 PM Subject: Roassal Grapher problem To: Moose-related development <[hidden email]>, Nicolas Cellier <[hidden email]> For some function, the Roassal Grapher is not really good. Try this for example: b := RTGrapher new. b extent: 600 @ 200. ds := RTDataSet new. ds dotShape ellipse size: 0. ds points: (-2.0 to: 10.0 by: 0.001). ds connectColor: Color red. ds x: #yourself. ds y: [ :x | (x exp) sin ]. b add: ds. b axisXWithNumberOfTicks: 3. b axisYWithNumberOfTicks: 4. b build. b view This is well known problem when someone use n-equally space joint in a grapher. There is some explanation here: http://maurizzzio.github.io/function-plot/ The solution need to implement an interval arithmetic library apparently. Nicolas implement an arbitrary-precision float library available in SciSmalltalk, but I not sure this is enough for a grapher. -- Serge Stinckwich UCBN & UMI UMMISCO 209 (IRD/UPMC) Every DSL ends up being Smalltalk http://www.doesnotunderstand.org/ -- Serge Stinckwich UCBN & UMI UMMISCO 209 (IRD/UPMC) Every DSL ends up being Smalltalk http://www.doesnotunderstand.org/ -- You received this message because you are subscribed to the Google Groups "SciSmalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. Screen Shot 2015-06-28 at 18.05.57.png (390K) Download Attachment |
Hi Serge,
well I do have such a library but there are a few problems: ´ 1. I’m on holidays at the moment and will be sailing the coming month (no computer). 2. the library is not yet complete and ready for the public. 3. at the moment there are a few _normal_ pharo functions that are overwritten by this package: an example: Float>>/ aNumber <primitive. 50> aNumber = 0 ifTrue: [ZeroDivide signalWithDividend.self ]. ^aNumber adaptToFloat: self andSend: #/ gets changed to: <primitive. 50> aNumber isZero ifTrue: [ZeroDivide signalWithDividend.self ]. ^aNumber adaptToFloat: self andSend: #/ And a few other similar things. While these changes are not problematic as long as the implementation of the underlying pharo methods do not change, they get extremely problematic the moment pharo changes the implementations of these methods and that package does not get updated immediately. Iow for a use in packages like roassal it would perhaps make sense to make a slimmed down version (at the moment I can mix Numbers and RealIntervals anyway I want, but this is perhaps not necessary for everybody).
Perhaps we can talk about that sometime in august because now I’m in holiday stress. werner On Sun, Jun 28, 2015 at 9:15 PM, Serge Stinckwich <[hidden email]> wrote: Is there any interval arithmetic library available in Pharo ? You received this message because you are subscribed to the Google Groups "SciSmalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |