MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / root_sum_square

Function root_sum_square

src/CPnumerics.cpp:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <unsupported/Eigen/Polynomials>
5
6double root_sum_square(const std::vector<double>& x) {
7 double sum = 0;
8 for (double i : x) {
9 sum += pow(i, 2);
10 }
11 return sqrt(sum);
12}
13double interp1d(const std::vector<double>* x, const std::vector<double>* y, double x0) {
14 std::size_t i = 0, L = 0, R = 0, M = 0;
15 L = 0;

Callers 1

NDNewtonRaphson_JacobianFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected