View Single Post
  #5 (permalink)  
Old June 20th, 2006, 01:01 PM
ChrisKlok
Guest
 
Posts: n/a
Default Please excuse my dear Aunt Sally

Hi there,
I took a look at the file. Remember the order of mathematical operations? I looked it up (thanks to http://mathforum.org):
"... you might remember this as "Please excuse my dear Aunt Sally.

1. Parentheses
2. Exponents
3. Multiplication and Division
4. Addition and Subtraction
"
Put the -1 in brackets and your problem is solved.

off = (-1)^IDX1
if off <1
memb_v = (lead_v)*(2)
else
memb_v = lead_v
endif

Greetings - Chris
Reply With Quote