mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-09 05:15:45 -05:00
More testing, changed vector to string functions
This commit is contained in:
@@ -12,6 +12,21 @@
|
||||
|
||||
namespace CoolProp{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
///*
|
||||
//Owe a debt of gratitude to http://sole.ooz.ie/en - very clear treatment of GJ
|
||||
//*/
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
//using namespace std;
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <MatrixMath.h>
|
||||
|
||||
int main()
|
||||
@@ -30,9 +31,14 @@ double eval = Eigen::poly_eval( coeffs, input);
|
||||
std::cout << "Evaluation of the polynomial at " << input << std::endl;
|
||||
std::cout << eval << std::endl;
|
||||
|
||||
//std::vector<double> vec(2,0.2);
|
||||
//std::cout << CoolProp::vec_to_string(vec) << std::endl;
|
||||
double vec0 = 0.1;
|
||||
std::vector<double> vec1(2,0.2);
|
||||
std::vector< std::vector<double> > vec2;
|
||||
vec2.push_back(std::vector<double>(2,0.2));
|
||||
vec2.push_back(std::vector<double>(2,0.3));
|
||||
|
||||
std::cout << CoolProp::vec_to_string(0.3) << std::endl;
|
||||
std::cout << CoolProp::vec_to_string(vec0) << std::endl;
|
||||
std::cout << CoolProp::vec_to_string(vec1) << std::endl;
|
||||
std::cout << CoolProp::vec_to_string(vec2) << std::endl;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user