Improper tan and atan on Solaris

From: Andreas Hoeschler (ahoesch_at_smartsoft.de)
Date: 06/02/04

  • Next message: Andreas Hoeschler: "Summary: Improper tan and atan on Solaris"
    Date: Wed, 2 Jun 2004 16:06:35 +0200
    To: sunmanagers@sunmanagers.org
    
    

    Hi,

    >> on Solaris the tan() and atan() functions do not seem to work
    >> properly.
    >> The same code built on MacOSX produces proper results. On Solaris
    >> these
    >> functions return wrong values. Anybody seen this and knows hot to fix
    >> that? I am using the gcc 3.x from sunfreeware.com.
    >
    > What does "improper" mean in this context?
    >
    > (Inputs, outputs?)

    Oh sorry. Here is what I get:

    > 2004-06-02 15:58:29.294 RasterServiceFillMerc[24022] aa 1.252687
    > 2004-06-02 15:58:29.306 RasterServiceFillMerc[24022] tan (aa)
    > 1072958209.000000

    > 2004-06-02 15:58:29.318 RasterServiceFillMerc[24022] aa
    > 1072957976.967294
    > 2004-06-02 15:58:29.318 RasterServiceFillMerc[24022] atan (aa) =
    > 1104148997.000000

    MacOSx and my pocket calculator come to identical values, Solaris has a
    different understanding of these functions. Any ideas?

    I could work around the tan() problem by using sin(aa) / cos(aa)
    instead instead of tan(aa). However, I don't know of a replacement for
    atan() and I don't have my Bronstein handy right now. Any ideas?

    Thanks!

    Regards,

       Andreas
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Andreas Hoeschler: "Summary: Improper tan and atan on Solaris"

    Relevant Pages

    • Improper tan and atan on Solaris
      ... on Solaris the tanand atan() functions do not seem to work properly. ... The same code built on MacOSX produces proper results. ...
      (SunManagers)
    • Re: Is Solaris 10 a good home os?
      ... Of course, you must set up proper CC, CFLAGS, LD_OPTIONS, CPPFLAGS, you ... I had never tried to compile it on Solaris. ... CFLAGS you gave me. ...
      (comp.unix.solaris)
    • Re: Solaris mktemp()
      ... >>application just core dumps i've narrowed it down to the way mktemp() ... >>behaves on Solaris compares to MacOSX any reason why this snipnett of code ...
      (comp.unix.solaris)
    • Need advise and feedback (possibly off topic)
      ... am trying to document the proper (in my own opinion) way to ... prefer to install software on solaris. ...
      (SunManagers)
    • /bin/sh: test: argument expected
      ... we are doing cross platform development on Solaris, Linux and MacOSX ... Making build-headers for framework MyAccess... ... Normally I would ask the GNUstep list for help but this problem seems ...
      (SunManagers)