Search found 2 matches

by bnathan
Tue Dec 20, 2011 9:01 am
Forum: Help With Programming
Topic: Setting dummy values to Integer
Replies: 3
Views: 6998

Re: Setting dummy values to Integer

Thanks, Tom. That worked well.

The dummy never takes a value other than 1 or 0. I'm not sure why I needed to fix anything.
by bnathan
Mon Dec 19, 2011 9:55 am
Forum: Help With Programming
Topic: Setting dummy values to Integer
Replies: 3
Views: 6998

Setting dummy values to Integer

Hello, I'm trying to teach myself RATS and I am struggling with a while loop. Borrowing from some code in the Reference Manual, I've gotten to: compute countq1=0, i=0, sumq1=0.0 while countq1<17 { compute i=i+1 if q1dummy(i)>0 compute sumq1=sumq1+lnagg(i),countq1=countq1+q1dummy(i) } endwhile displa...