2 ms·
First of all, differential equations can generally be verified to be valid solutions by evaluating the solution functions. So you don't have to cross-validate t
by jiggawatts 5y ago
First of all, differential equations can generally be verified to be valid solutions by evaluating the solution functions. So you don't have to cross-validate to check the output.
Mathematica does this for you. If it can't, it'll complain that the solutions are incomplete or are likely invalid due to numerical error somewhere.
Chaos theory is highly relevant here -- there is no way to directly compare two numerical solutions to many ODEs if anything is different. Unless the code is literally the same down to the machine instruction levels, all bets are off. Even floating point rounding error will result in sufficient noise to cause divergence.
Mathematica -- like most of mathematics -- is not designed to operate in a vacuum, outputting solutions that are simply published as-is. Everything you do with it should be rigorously proven and/or verified in some way to make sure that it makes sense. This ought to be the same with any tool. You don't necessarily need to know all of its internal details in order to do this. Like I said, run the equations forwards, substitute solutions, use symbol and numerical methods, graph the results and make sure they make sense, etc...