New answers tagged

3

From my understanding Matlab has double precision by default and we can change it. Sort of. You can force it to run computations in single-precision, but you need to be very careful or your variables will be silently promoted to double precision. You can also use variable precision arithmetic (vpa, I think it's in the symbolic toolbox), but it is a lot ...


0

I cannot claim very deep computational expertise, so in case it might help you, I can just post some code that contains two versions of a fixed-step straight-forward symplectic algorithms (leap-frog / Verlet's type). I however am not so proficient in C++, so I can offer a python version, so maybe you can translate it into C++. On the bright side, the python ...


Top 50 recent answers are included