Some stuff

This commit is contained in:
2023-09-12 17:34:40 +02:00
parent c9f9757957
commit 5f0363b895
9 changed files with 25 additions and 9 deletions

View File

@@ -4,6 +4,10 @@ double f(double x) {
return 100*std::exp(-10*x);
}
double u(double x) {
return 1. - (1. - std::exp(-10.))*x - std::exp(-10.*x);
}
void build_g_vec(int n_steps, arma::vec& g_vec) {
g_vec.resize(n_steps-1);