Re: A83: Calculating this formula...


[Prev][Next][Index][Thread]

Re: A83: Calculating this formula...




In a message dated 07/05/00 02:42:29 GMT Daylight Time, dwedit@hotmail.com 
writes:

<< (A^2/2) + (rand*5*A) + (2*A) + 3
 
 (put the answer in de) >>

Right. First you need to establish some specifics to answer this question.

1) Is A integer or real ? 
2) Is A in the range 0..15 (A*A/2) , or 0..Sqr(128) ((A/2)*A) is integer
3) Is A in the range 0..255 ?
4) What is the range for Rand()
5) What do you do with overflowed values ?
6) Why do you want to calculate this ?