I like to know best practices for documenting mathematical formulas in C ++ code.
Ideally, this could be ideal to be able to write equations directly in comments, but it does not seem possible to write them in human-readable form.
I looked at LaTex, MathML, and the syntax is complicated when working with many people coming from different horizons (after all, not all are mathematicians). If you have experience in this area, please comment.
For example, Im adds a cross-reference to external HML files in every function that needs to be documented, but is difficult to maintain. I tried the Doxygen formulas, and most of us have found that the syntax is very complex.
\f[ |I_2|=\left| \int_{0}^T \psi(t) \left\{ u(a,t)- \int_{\gamma(t)}^a \frac{d\theta}{k(\theta,t)} \int_{a}^\theta c(\xi)u_t(\xi,t)\,d\xi \right\} dt \right| \f]
source share