-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathNR.cpp
47 lines (42 loc) · 1.29 KB
/
NR.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* \copyright
* Copyright (c) 2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include <iostream>
#include <math.h>
#include <cmath>
#include <limits>
#include <stdio.h>
#include <string>
#include "NR.h"
using namespace std;
NR::NR(void) {}
NR::~NR(void) {}
double dfridr(double func(double),
const double /*x*/ /*, const double h, double &err*/)
{
(void)func;
// Removed
std::cout << "Error: NR::dfridr not implemented!" << std::endl;
return numeric_limits<double>::min();
}
double NR::dfridrX(double func(double, double), const double /*x*/,
const double /*y*/ /*, const double h, double &err*/)
{
(void)func;
// Removed
std::cout << "Error: NR::dfridrX not implemented!" << std::endl;
return numeric_limits<double>::min();
}
double NR::dfridrY(double func(double, double), const double /*x*/,
const double /*y*/ /*, const double h, double &err*/)
{
// Removed
(void)func;
std::cout << "Error: NR::dfridrY not implemented!" << std::endl;
return numeric_limits<double>::min();
}