Hi John, slightly OT but do you know if you can give arbitrary mathematica syntax to wolfram Alpha? i was trying to use its functional programming model but it tends to ignore my syntax and get confused. Wondered how far you had pushed it? thanks, Mike On Thu, Sep 24, 2009 at 10:47 PM, John M McIntosh <johnmci@smalltalkconsulting.com> wrote:
Well yes I was *thinking* of using curl and asking wolfram alpha... for example, but perhaps someone can do that task for me? Â Never enough time to do all this...
http://www.wolframalpha.com/input/?i=1E2 http://www.wolframalpha.com/input/?i=1.0e%2B2 http://www.wolframalpha.com/input/?i=1.0e-2 http://www.wolframalpha.com/input/?i=1E-2
On 2009-09-24, at 2:40 PM, csrabak@bol.com.br wrote:
Can we add some more (in the Pharo's spirit of getting at a better Smalltalk):
'1.0e+2' "now returns 1.0 although for simmetry should return 100.0"
'1E2' Â Â "now returns 1, however a lot of applications (like spreadsheets, Fortran printouts) when saving to text use the capital letter for the exponential part".
By the same reason:
'1.0E2'
'1E-2'
'1E+2'
Em 24/09/2009 17:36, John M McIntosh < johnmci@smalltalkconsulting.com > escreveu:
Ok, well I'm going to go away and build a test suite to check for all combos of '.' '1.' '1.2' '.e' '1.e' '1.2e' '1.2e3' '-1.e' '-1.2e-3'
so we can at least agree on what a valid number is.
On 2009-09-24, at 6:57 AM, Nicolas Cellier wrote:
SqNumberParser>>fail failBlock isNil ifFalse: [^failBlock value]. self error: 'Reading a number failed'
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- = = = ======================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Â Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. Â http://www.smalltalkconsulting.com = = = ========================================================================
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project