From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,aa41eec229b45fce,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-21 14:22:26 PST Path: bga.com!news.sprintlink.net!hookup!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!news.msfc.nasa.gov!news.larc.nasa.gov!zorba7.larc.nasa.gov From: m.w.rowland@larc.nasa.gov (Michael W. Rowland) Newsgroups: comp.unix.osf.osf1 Subject: OSF/1 v2.0--FORTRAN v3.4-480 Trig Error Date: Tue, 21 Jun 1994 16:55:03 -0500 Organization: SAIC Distribution: world Message-ID: <9406211655.AA03592@zorba7.larc.nasa.gov> Reply-To: m.w.rowland@larc.nasa.gov (Michael W. Rowland) NNTP-Posting-Host: zorba7.larc.nasa.gov Summary: Error in DCOSD result! Keywords: osf/1 fortran trig dcosd X-Newsreader: InterCon TCP/Connect II 1.2 For those of you whom might be running OSF/1 V2.0 with the DEC FORTRAN compiler f77 v3.4-480 and its associated trig library functions, I have found an erratic problem with the call to DCOSD: sometimes it will put the result in a negative quadrant! My workaround was to convert my calling argument to radians and then call DCOS. The problem went away. The angle (degrees) that I had problems with was around +87 degrees. The absolute value of the answer was correct but the number was negative! Has anyone else seen this problem? Please e-mail. Mike Rowland ********************************************************* *** Mike Rowland--SAIC, NASA Langley Research Center **** ** Aerosol Research Branch, M/S 475, Hampton, VA 23681 ** * ph: (804) 864-2691, e-mail: m.w.rowland@larc.nasa.gov * *********************************************************