Menu

#166 mathematical oddity

closed-fixed
5
2004-10-02
2004-01-06
No

hello,

using gri version 2.12.6 with the following input:

show {rpn 19 exp10}
show {rpn 20 exp10}
show {rpn 21 exp10}
show {rpn 22 exp10}
show {rpn 23 exp10}
show {rpn 24 exp10}

i get:

1e+19
1e+20
1e+21
missing_value_code
1e+23
1e+24

why is 10^22 not good?

cheers,
andrew.

Discussion

  • Dan Kelley

    Dan Kelley - 2004-01-06

    Logged In: YES
    user_id=31559

    That's because it is the default missing-value code. To see this
    code, enter Gri and type
    <tt>show all</tt>

    You may set the missing value to another number by e.g.

    <tt>set missing value -999</tt>

    NOTE: this 'missing value' system is part of Gri because it is
    commonly employed in datasets. Quite often the missing-value
    code in datasets is -999 (as above) but I chose a higher number,
    because I feared that -999 might come up in real data.

    I actually should add a new gri command, of the form
    <tt>set missing value none</tt>

    in order to turn this effect off... if you want me to do that, please
    enter a 'feature request' on this website (at the "Contact" tab).

    Thanks. Dan.

     
  • Dan Kelley

    Dan Kelley - 2004-01-06
    • status: open --> open-rejected
     
  • Dan Kelley

    Dan Kelley - 2004-01-06
    • status: open-rejected --> closed-rejected
     
  • Dan Kelley

    Dan Kelley - 2004-01-07
    • status: closed-rejected --> open-accepted
     
  • Dan Kelley

    Dan Kelley - 2004-01-07

    Logged In: YES
    user_id=31559

    I'm marking this as 'open' again, because I'm going to try a code
    change. First I need to query some of the prime Gri users, to see
    if they like the new 'set missing value none' syntax that we've
    discussed. D.

     
  • Dan Kelley

    Dan Kelley - 2004-01-07

    Logged In: YES
    user_id=31559

    The latest CVS version of Gri has been modified to address this issue,
    but I would appreciate it if you could check. To do this, follow these
    steps (on a linux-like machine):

    tar xvfz bug#.tgz
    make

    where '#' is the bug number, i.e. where the first step is just the
    unpacking of the 'tarball' file that I've attached to this message.

    Please note: the CVS version is NOT FOR EVERYDAY use. It is just for
    testing. It works on your issue AT THE MOMENT when I'm making this
    report, but it could fail later, as I (or other developers) change other
    things in Gri.

    Thanks. Dan.

     
  • Dan Kelley

    Dan Kelley - 2004-01-07
     
  • Andrew Collier

    Andrew Collier - 2004-01-08

    Logged In: YES
    user_id=1663

    works fine:

    ../../src/gri -directory ../../src bug.gri
    1e+19
    1e+20
    1e+21
    1e+22
    1e+23
    1e+24

     
  • Dan Kelley

    Dan Kelley - 2004-01-11
    • status: open-accepted --> open-fixed
     
  • Dan Kelley

    Dan Kelley - 2004-10-02

    Logged In: YES
    user_id=31559

    Thanks for the bug report. The current release (as of this
    posting)
    no longer suffers from the bug you reported.

    -- the developer

     
  • Dan Kelley

    Dan Kelley - 2004-10-02
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.