Date: Mon, 6 Nov 2000 16:28:55 -0500
Reply-To: "Hanson, Eric A" <Eric.Hanson@CFSAN.FDA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Hanson, Eric A" <Eric.Hanson@CFSAN.FDA.GOV>
Subject: Re: 3.14159 is an estimate of Pi,
did SAS has a better way of get ting it?
Content-Type: text/plain; charset="iso-8859-1"
Yes it is SAS 8. It is referenced, for example in the PDF version of the
CD-ROM
documentation drive:\SASV8\Documentation\PDF\saspdf\lgref\pdfidx.htm in the
SAS Language Reference: Dictionary, Chapter 4, 'Functions and CALL Routines'
under 'CONSTANT' (PAGE 298). Your path name may differ.
There are other, more machine-oriented constants also, such as
the largest double-precision floating point number (8-bytes) that is
representable on your computer.
Other functions and calls include a function to compute combinations
of n elements taken r at a time; a function to compute a factorial; a
function
for calculating permutations, all in base SAS. And there is more.
Eric
-----Original Message-----
From: Charles Patridge [mailto:Charles_S_Patridge@PRODIGY.NET]
Sent: Monday, November 06, 2000 3:44 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: 3.14159 is an estimate of Pi, did SAS has a better way of
getting it?
Eric,
I tried using this function "constant" in version 6.12 and did not work.
SAS does not recognize this as a function.
Is this something new in version 8??
If so, then I understand why it didn't work.
Thanks,
Charles Patridge
Email: Charles_S_Patridge@prodigy.net
In article <4923E246C55CD411B9110008C75DF3125E8868@CFSFB8EXC01>,
"Hanson, Eric A" <Eric.Hanson@CFSAN.FDA.GOV> wrote:
> SAS has a set of constants:
>
> DATA one;
> pi = constant('PI');
> e = constant('E'); /*The natural base*/
> Euler = constant('EULER');
>
> Eric A. Hanson
> Food and Drug Administration
> Washington, D.C.
>
> -----Original Message-----
> From: Paul Dorfman [mailto:paul_dorfman@HOTMAIL.COM]
> Sent: Monday, November 06, 2000 2:36 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: 3.14159 is an estimate of Pi, did SAS has a better way of
> geting it?
>
> Vincent Girard <v__girard@HOTMAIL.COM>
>
> >All I want is something better than using a ligne with P1=3.1416. A
macro?
> >a function()?
>
> Vincent,
>
> To start with, how about ARCOS(-1) ? Say,
>
> data _null_;
> pi = arcos(-1);
> put pi=;
> run;
> --------------------
> PI=3.1415926536
>
> Kind regards,
> =====================
> Paul M. Dorfman
> Jacksonville, Fl
> =====================
>
________________________________________________________________________
_
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
--
Charles Patridge - PDPC, Ltd.
172 Monce Road - Burlington, CT 06013 USA
Phone: 860-673-9278 or 860-675-9026
Email: Charles_S_Patridge@prodigy.net - Web: www.sconsig.com
Sent via Deja.com http://www.deja.com/
Before you buy.
|