Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 Implement !VALUES, !ERROR_STATE, !ERROR and !ERR (!PI/!DPI)

closed
nobody
None
5
2004-04-30
2004-04-18
Craig Markwardt
No

This patch implements the system variables !VALUES,
!ERROR_STATE, !ERROR, and !ERR. It also uses a
programmatic way to initialize !DPI and !PI.

Note that this routine just creates the variables, it
does not force any of the code to actually use them.
The variables are initialized with sane values.

The !VALUES of Infinity and NaN are computed
programmatically from known expressions (1/0 and sqrt(-1)).

The values of !PI and !DPI are also computed in this
way so that they aren't hardcoded. [ The hardcoded way
is a problem, for example, on different architectures
the values might be slightly different. The
programmatic way is sure to preserve trig identities.]
How does one use M_PI and so on. Can one just include
<math.h>?

Craig Markwardt

gdl 0.7.2
[462]> uname -a; cat /etc/redhat-release
Linux xylo 2.4.20-20.7smp #1 SMP Mon Aug 18 14:39:05
EDT 2003 i686 unknown
Red Hat Linux release 7.1 (Seawolf)

Discussion

  • Patch to 0.7.2 to create several system variables

     
    Attachments
  • Marc Schellens
    Marc Schellens
    2004-04-30

    • status: open --> closed
     
  • Marc Schellens
    Marc Schellens
    2004-04-30

    Logged In: YES
    user_id=932957

    Included in 0.8