Re: question for math wizards

Originally Posted by
aajgss
Acetronics,
Yes, its not me its Excel !!
Are you really sure your Math is good ???
I'm not ...
for counts = 0 to 10000
knots = ((SQR(counts*100))*1563)/10000
knotsRem = (SQR(counts*100)*1563)//10000
1) due to your ADC ... "Counts" granularity is 1/1024 or 1/4096 ( let's dream ) ... just a detail ... but important.
2) knots = ((SQR(counts*100))*1563)/10000 = SQR ( counts ) * 1563 / 1000 ... YESSS, no need to multiply "Counts", as granularity will remain the same ... !!!
3) you can't use the remainder trick ... as it is a SQUARE function ... remember SQR ( A ) + SQR ( B ) != SQR ( A+B )
Ok, I don't have the easy solution at the time ... but' Im on the way !!!
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks