Mathematics is one area where computers excel, since they are able to calculate data so much quicker than us humans can. Therefore, it is always handy to be able to implement these effectively, so here are a bunch of routines which implement some common mathematical algorithms.
Data Analysis
- The arithmetic mean
- The geometric mean
- The median
- Standard deviation
- Variance
- Linear least squares fit
- Least squares fit with a log ordinate
- Least squares fit with a log abscissa
- Least squares fit using full logs
General
- Vectors
- Matrices
- Complex numbers
- Solving quadratic equation roots in C#
- Combinations, permutations and factorials
- Finding the prime factors of a number
- Finding the greatest common divisor
Comments