Conceptual Models > Kinetics and rate controlling factors
syntax error in rate equation
(1/1)
kathryn.johnson@barr.com:
I'm hoping that someone can assist me in finding the syntax error in the following RATE block.
Uraninite
-start
#rate UO2 =(k1 x [H+]^0.37 x [O2(aq)]^0.31) + (k2 [HCO3-]^0.35)
10 rate = ((10e-7.56)*(ACT("H+"))^-7.2 *(ACT("O2"))^-3) + ((3.15e-10)*(ACT("HCO3-"))^-2)
20 moles = rate * TIME
200 SAVE moles
-end
ERROR: Syntax_error: missing ) or ] in line:
ERROR: in BASIC line
10 rate = ((10e-7.56)*(ACT("H+"))^-7.2 *(ACT("O2"))^-3) + ((3.15e-10)*(ACT("HCO3-"))^-2)
ERROR: Fatal Basic error in rate Uraninite
dlparkhurst:
This is wrong 10e-7.56, and I am not sure what you meant.
Break the equation into pieces if you need to:
--- Code: ---k1 = 10^-7.56
f1 = k1*act("H+")^0.37
f2 = act("O2")^0.31
t1 = k1*f1*f2
...
--- End code ---
Navigation
[0] Message Index
Go to full version