LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 1998, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 4 Aug 1998 20:27:54 GMT
Reply-To:     Melvin Klassen <Klassen@UVIC.CA>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Melvin Klassen <Klassen@UVIC.CA>
Organization: University of Victoria
Subject:      Re: SASTrap: Use of ** operator can be inconsistent
Content-Type: text/plain; charset="us-ascii"

On Tue, 4 Aug 1998 19:17:34, walter_davis@unc.edu (Walter Davis) wrote:

> but there is an oddity, or inconsistency, or trap, or something > regarding negatives raised to powers less than 1. > For example, the cube root of -1 is -1 (yes, there are more exciting examples :-). > Yet SAS won't properly evaluate it. > Not that this comes up in practice for me very often.

The "trap" is that SAS evaluates 'X**Y' by using 'EXP(Y*LOG(X))'. Note that this algorithm restricts the value of 'X' to be a positive number.


Back to: Top of message | Previous page | Main SAS-L page