[Thread Prev][Thread Next][Index]
Re: teach me addition, please
Thank you kindly. I think this will do.
-Katsumi
On Fri, 10 Jan 2003, Mick Spillane wrote:
> Hi Katsumi,
> If its just one zero that needs to be added at the start of
> each series you could use
> let b=if(i eq 1)then 0 else a[i=@shf:-1]
> For example
> let a = {10,2,35}
> let b=if(i eq 1)then 0 else a[i=@shf:-1]
> list/i=1:4 b
> 1 / 1: 0.00
> 2 / 2: 10.00
> 3 / 3: 2.00
> 4 / 4: 35.00
>
> Mick
>
> |____spillane@pmel.noaa.gov____|
> |__Room 2070 Bldg#3 NOAA/PMEL__|
> |____Phone_:_(206)526-6780_____|
>
>
--
Katsumi Matsumoto
Princeton University (Forrestal Campus)
Program in Atmospheric and Oceanic Sciences
P.O. Box CN710, 401A Sayre Hall
Princeton, NJ 08544-0710
email: kmatsumo@splash.princeton.edu
tel: 609-258-1311
fax: 609-258-2850
http://www.aos.princeton.edu/WWWPUBLIC/katsumi/index.html
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement