CoolProp
6.6.0
An open-source fluid property and humid air property database
|
Go to the source code of this file.
Functions | |
double | root_sum_square (const std::vector< double > &x) |
double | interp1d (const std::vector< double > *x, const std::vector< double > *y, double x0) |
double | powInt (double x, int y) |
void | MatInv_2 (double A[2][2], double B[2][2]) |
void | solve_cubic (double a, double b, double c, double d, int &N, double &x0, double &x1, double &x2) |
Solve a cubic with coefficients in decreasing order. More... | |
void | solve_quartic (double a, double b, double c, double d, double e, int &N, double &x0, double &x1, double &x2, double &x3) |
double interp1d | ( | const std::vector< double > * | x, |
const std::vector< double > * | y, | ||
double | x0 | ||
) |
Definition at line 12 of file CPnumerics.cpp.
void MatInv_2 | ( | double | A[2][2], |
double | B[2][2] | ||
) |
Definition at line 70 of file CPnumerics.cpp.
double powInt | ( | double | x, |
int | y | ||
) |
Definition at line 39 of file CPnumerics.cpp.
double root_sum_square | ( | const std::vector< double > & | x | ) |
Definition at line 5 of file CPnumerics.cpp.
void solve_cubic | ( | double | a, |
double | b, | ||
double | c, | ||
double | d, | ||
int & | N, | ||
double & | x0, | ||
double & | x1, | ||
double & | x2 | ||
) |
Solve a cubic with coefficients in decreasing order.
0 = ax^3 + b*x^2 + c*x + d
a | The x^3 coefficient |
b | The x^2 coefficient |
c | The x^1 coefficient |
d | The x^0 coefficient |
N | The number of unique real solutions found |
x0 | The first solution found |
x1 | The second solution found |
x2 | The third solution found |
Definition at line 81 of file CPnumerics.cpp.
void solve_quartic | ( | double | a, |
double | b, | ||
double | c, | ||
double | d, | ||
double | e, | ||
int & | N, | ||
double & | x0, | ||
double & | x1, | ||
double & | x2, | ||
double & | x3 | ||
) |
Definition at line 133 of file CPnumerics.cpp.