1-Visitor
April 4, 2013
Question
Chemeng Problem: Floating Point Error Runge-Kutta 4th order
- April 4, 2013
- 1 reply
- 2018 views
Hello! I am a newbie to this community
. I would really appreciate any help with my problem.
First of all, i was asked to apply the Runge-Kutta 4th order method to solve this problem.
I managed to get something out of this, but when i change the value of the rate constant (k), for valutes >2, i get a floating point error.
My aim is to get 9 different k (rate constants), ranging from 1 to 10, in order to get (via the Runge-Kutta) the C values of my components (i have named them x and y) . Then the C-t curves will be compared with my experimental curve.
However, whenever the value of k is greater than 2, i get a floating point error
. Any advice?
Any suggestions or corrections would really be appreciated.
I attach you the mathcad file:

