CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
CoolPropTools.cpp File Reference
#include <string>
#include <vector>
#include <cstdio>
#include <cstdarg>
#include <stdlib.h>
#include "math.h"
#include "stdio.h"
#include "float.h"
#include <string.h>
#include "CoolPropTools.h"

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_WARNINGS
 

Functions

double root_sum_square (std::vector< double > x)
 
std::string format (const char *fmt,...)
 
std::vector< std::string > strsplit (std::string s, char del)
 
double interp1d (std::vector< double > *x, std::vector< double > *y, double x0)
 
double powInt (double x, int y)
 
double QuadInterp (double x0, double x1, double x2, double f0, double f1, double f2, double x)
 
double CubicInterp (double x0, double x1, double x2, double x3, double f0, double f1, double f2, double f3, double x)
 
void MatInv_2 (double A[2][2], double B[2][2])
 
std::string get_file_contents (const char *filename)
 
void solve_cubic (double a, double b, double c, double d, double *x0, double *x1, double *x2)
 
std::string strjoin (std::vector< std::string > strings, std::string delim)
 

Macro Definition Documentation

#define _CRT_SECURE_NO_WARNINGS

Definition at line 1 of file CoolPropTools.cpp.

Function Documentation

double CubicInterp ( double  x0,
double  x1,
double  x2,
double  x3,
double  f0,
double  f1,
double  f2,
double  f3,
double  x 
)

Definition at line 145 of file CoolPropTools.cpp.

std::string format ( const char *  fmt,
  ... 
)

Definition at line 22 of file CoolPropTools.cpp.

std::string get_file_contents ( const char *  filename)

Definition at line 172 of file CoolPropTools.cpp.

double interp1d ( std::vector< double > *  x,
std::vector< double > *  y,
double  x0 
)

Definition at line 69 of file CoolPropTools.cpp.

void MatInv_2 ( double  A[2][2],
double  B[2][2] 
)

Definition at line 159 of file CoolPropTools.cpp.

double powInt ( double  x,
int  y 
)

Definition at line 95 of file CoolPropTools.cpp.

double QuadInterp ( double  x0,
double  x1,
double  x2,
double  f0,
double  f1,
double  f2,
double  x 
)

Definition at line 133 of file CoolPropTools.cpp.

double root_sum_square ( std::vector< double >  x)

Definition at line 13 of file CoolPropTools.cpp.

void solve_cubic ( double  a,
double  b,
double  c,
double  d,
double *  x0,
double *  x1,
double *  x2 
)

Definition at line 188 of file CoolPropTools.cpp.

std::string strjoin ( std::vector< std::string >  strings,
std::string  delim 
)

Definition at line 228 of file CoolPropTools.cpp.

std::vector<std::string> strsplit ( std::string  s,
char  del 
)

Definition at line 41 of file CoolPropTools.cpp.