Math-Algorithms

Math library with algorithms for c++

View on GitHub

Math-Algorithms

πŸ‡ΊπŸ‡Έ Math library with algorithms for c++
πŸ‡·πŸ‡Ί Π‘ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ° с++ с матСматичСскими Π°Π»Π³ΠΎΡ€ΠΈΡ‚ΠΌΠ°ΠΌΠΈ


πŸ‡ΊπŸ‡Έ Attention!!! Any function should be used with namespace mathAlgo::
πŸ‡·πŸ‡Ί Π’Π½ΠΈΠΌΠ°Π½ΠΈΠ΅!!! Π›ΡŽΠ±ΡƒΡŽ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΡŽ Π½ΡƒΠΆΠ½ΠΎ с ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ с пространством ΠΈΠΌΡ‘Π½ mathAlgo::


πŸ‡ΊπŸ‡Έ Navigation:

πŸ‡·πŸ‡Ί Навигация:


πŸ‡ΊπŸ‡Έ English category

Simple arithmetic


Arithmetic and geometric progressions





Probability Theory and Combinatorics













Numerical methods for solving nonlinear equations

Example of usage:

double f(double x)
{
  return (tan(0.3 * x + 0.4) - pow(x, 2));
}

int main
{
  cout << "halfDivisionMethod: " << mathAlgo::halfDivisionMethod(&f, 0, 2) << endl;
}

Output:

halfDivisionMethod: 0.88623


Example of usage:

double f(double x)
{
  return (tan(0.3 * x + 0.4) - pow(x, 2));
}

int main
{
  cout << "secantMethod: " << mathAlgo::secantMethod(&f, 0, 2) << endl;
}

Output:

secantMethod: 0.886345


Example of usage:

double f(double x)
{
  return (tan(0.3 * x + 0.4) - pow(x, 2));
}

int main
{
  cout << "parabolaMethod: " << mathAlgo::parabolaMethod(&f, 0, 2) << endl;
}

Output:

parabolaMethod: 0.886345


Recursive algorithms


Geometry




Working with arrays and matrices
































πŸ‡·πŸ‡Ί Русская катСгория

ΠŸΡ€ΠΎΡΡ‚Π°Ρ Π°Ρ€ΠΈΡ„ΠΌΠ΅Ρ‚ΠΈΠΊΠ°


АрифмСтичСская ΠΈ гСомСтричСская прогрСссии





ВСория вСроятности ΠΈ ΠΊΠΎΠΌΠ±ΠΈΠ½Π°Ρ‚ΠΎΡ€ΠΈΠΊΠ°













ЧислСнныС ΠΌΠ΅Ρ‚ΠΎΠ΄Ρ‹ Ρ€Π΅ΡˆΠ΅Π½ΠΈΡ Π½Π΅Π»ΠΈΠ½Π΅ΠΉΠ½Ρ‹Ρ… ΡƒΡ€Π°Π²Π½Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΈΠΌΠ΅Ρ€ использования:

double f(double x)
{
  return (tan(0.3 * x + 0.4) - pow(x, 2));
}

int main
{
  cout << "halfDivisionMethod: " << mathAlgo::halfDivisionMethod(&f, 0, 2) << endl;
}

Π’Ρ‹Π²ΠΎΠ΄:

halfDivisionMethod: 0.88623


ΠŸΡ€ΠΈΠΌΠ΅Ρ€ использования:

double f(double x)
{
  return (tan(0.3 * x + 0.4) - pow(x, 2));
}

int main
{
  cout << "secantMethod: " << mathAlgo::secantMethod(&f, 0, 2) << endl;
}

Π’Ρ‹Π²ΠΎΠ΄:

secantMethod: 0.886345


ΠŸΡ€ΠΈΠΌΠ΅Ρ€ использования:

double f(double x)
{
  return (tan(0.3 * x + 0.4) - pow(x, 2));
}

int main
{
  cout << "parabolaMethod: " << mathAlgo::parabolaMethod(&f, 0, 2) << endl;
}

Π’Ρ‹Π²ΠΎΠ΄:

parabolaMethod: 0.886345


РСкурсивныС Π°Π»Π³ΠΎΡ€ΠΈΡ‚ΠΌΡ‹


ГСомСтрия




Π Π°Π±ΠΎΡ‚Π° с массивами ΠΈ ΠΌΠ°Ρ‚Ρ€ΠΈΡ†Π°ΠΌΠΈ