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 (February 2005, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 17 Feb 2005 12:03:38 +0100
Reply-To:     Jan Selchau-Hansen <jan@SELCHAU-HANSEN.INVALID>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jan Selchau-Hansen <jan@SELCHAU-HANSEN.INVALID>
Organization: TDC Totalloesninger
Subject:      Re: calculating power

"Mayukh Dass" <mayukh.dass@gmail.com> wrote in message news:585ed04f05021621493208ca78@mail.gmail.com... > Hi, > > I am trying to calculate various powers of a variable, like square, > cube and so on. Is there any better way to do this apart from var*var, > var*var*var? > > Thanks in advance, > Mayu

Use "double*"

data test;

root=3;

SQUARE=ROOT**2;

CUBe=ROOT**3;

/* And so on */

RUN;

Jan Selchau-Hansen


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