Mathematical Problem

Started by si20596, July 30, 2013, 01:32:09 AM

Previous topic - Next topic

how can i calculate the following line?

???
1 (100%)
???
0 (0%)

Total Members Voted: 1

si20596

Hello all,

how can i calculate the following line?

tmp = 1234567.12345 + 34567.45678 * 12 + 0.00123 * 12 * 12 + 0.00333 * 12 ^ 3 - 0.0022

Many thanks for your help!

stanl

Not sure about the grouping, but you can practice by putting the formula into Excel. See attached

td

First, you need to use the WinBatch Exponentiation operator

Code (winbatch) Select

tmp = 1234567.12345 + 34567.45678 * 12 + 0.00123 * 12 * 12 + 0.00333 * 12 ** 3 - 0.0022


and as Stan mentioned you may need to add parenthesizes to change the operator evaluation order.  It all depends on the purpose of  the expression.   
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade