Repository of math formulas written as computer code?

148 Views Asked by At

I'm a novice programmer trying to do some rudimentary math & statistics.

When I come across standard math formulas, I usually need to convert the mathematical notation to either computer code (i.e. Python) or Excel syntax.

For example, someone mentioned using the normal equation in a related post: Basic Exponential Regression.

"...you can get variable $a$ directly from the normal equation:"

$$a=\frac{\sum_{i=1}^n x_iz_i } { \sum_{i=1}^n x_i^2 }=\frac{\sum_{i=1}^n x_i \log(21-y_i)} { \sum_{i=1}^n x_i^2 }$$


Question:

Are there any recourses that contain mathematical formulas that are written in computer code? (paid or unpaid)