r/matlab • u/Vasg • Aug 01 '26
CodeShare I've been building a numerical solver app — currently working on ODEs and BVPs
I've been working on a numerical solver app for a while. The first version was mainly focused on algebraic equations, systems of equations, function plotting, and numerical calculations.
It's free and available on iOS and Android:
📱 App Store
🤖 Google Play
I'm currently working on what is probably the most challenging part of the project so far: ODEs and boundary value problems.
The goal is to make it generic enough that the user can enter their own ODE and boundary conditions, rather than having a collection of predefined equations.
I'm testing first-, second-, and higher-order equations, including BVPs with boundary conditions involving different orders of derivatives.
For example, one of the current tests is:
y''' + y = 0, y(0) = 0, y'(0) = 1, y''(0) = 0
I'm also testing more complicated problems and trying to find the point where the solver starts to break down. That's actually turned out to be one of the most interesting parts of the project — some very simple-looking equations can become surprisingly difficult numerical problems.
So I'm looking for some good torture tests. 😅
If you use MATLAB for numerical work, what ODEs or BVPs would you recommend as particularly good tests for a general-purpose solver?
I'm especially interested in stiff problems, nonlinear BVPs, higher-order equations, difficult boundary conditions, or anything else that you think would be a good challenge.
2
Aug 02 '26
[removed] — view removed comment
1
u/Vasg Aug 02 '26
Would you care to share an example of such a stiff problem? I'd love to use it as a test case.
1
u/Weed_O_Whirler +5 Aug 03 '26
This isn't meant as an attack, but an honest question - what is the use case for an app like this? If it's just for you to have fun building, cool. But I can't think of a time I'd want to solve an ODE on my phone.
1
u/Vasg Aug 04 '26
I wasn't offended at all. The answer is both, it is a hobby, but at the same time, I'm trying to make it a useful tool to solve any ODEs whenever you need it.
1
u/Vasg Sep 17 '26
Small update since my original post: Numerical Solver 2.1 is now available.
I've fixed several issues in the ODE solver and improved the handling and visualization of systems of ODEs.
You can now also choose which variables to plot against each other. For example, when solving the Lorenz system, you can look at different projections such as y vs x, z vs x, or z vs y.
I'm still looking for difficult ODE/BVP problems to use as torture tests, especially stiff or nonlinear problems. If anyone has a MATLAB example that would make a good test case, I'd be interested in trying it.






3
u/CheeseWheels38 Aug 01 '26
The same ones used in all the examples already. Heat transfer, diffusion, fluid mechanics, reaction mechanics in CSTRs.