Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Math

 

Code snippets of mathematical problems.

 

0.              Calculate a factorial

1.              Calculate an angle between two coordinats

2.              Calculate the distance between two coordinats

3.              Calculate the greatest common divisor

4.              Convolution, perform a convolution on an image, DoFilterOperation

5.              Cryptography algorithm (a very simple one)

6.              DoFilterOperation, perform a convolution on an image

7.              DoFilterOperation, perform a filter operation on an image

8.              Factorial: Calculate a factorial

9.              Filter operation, perform a filter operation on an image, DoFilterOperation

10.         FindEquilibrium: Finding an equilibrium or a cycle (uses the logistic growth equation)

11.         Finding a sum for any combination of values (a.k.a. The Combinator)

12.         Finding an equilibrium or a cycle (uses the logistic growth equation)

13.         Fmod: modulus on floating point numbers

14.         Gcd: Calculate the greatest common divisor

15.         Get the cumulative std::vector of a std::vector, GetCumulativeHistogram

16.         Get the mean and standard deviation

17.         Get the mean value of all elements in a container, GetMean

18.         Get the mean value of all elements in a container, GetMean

19.         GetAngle: Calculate an angle between two coordinats

20.         GetCumulativeHistogram, get the cumulative std::vector of a std::vector

21.         GetDistance: Calculate the distance between two coordinats

22.         GetMean, get the mean value of all elements in a container

23.         GetSum, get the sum of all elements in a container

24.         IsPrime, is a number prime?

25.         Maze algorithms: see 'Maze'

26.         MeanAndStdDev: Get the mean and standard deviation

27.         Modulus on floating point numbers

28.         Normal distribution: see 'Normal Distribution'

29.         Perfect elastic collision

30.         Perform a convolution on an image, DoFilterOperation

31.         Perform a filter operation on an image, DoFilterOperation

32.         Prime, IsPrime, is a number prime?

33.         Prime, PrimeExpert, to determine whether a number is prime quicker

34.         PrimeExpert, to determine whether a number is prime quicker

35.         Random numbers: see 'Random Numbers'

36.         Rescale a 2D std::vector from a certain range to a new range, Rescale

37.         Rescale a double from a certain range to a new range, Rescale

38.         Rescale, rescale a 2D std::vector from a certain range to a new range

39.         Rescale, rescale a double from a certain range to a new range

40.         Solve a quadratic equation, SolveQuadratic

41.         SolveQuadratic, solve a quadratic equation

42.         The Combinator: Finding a sum for any combination of values

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.