Files
Project-1/src/funcs.hpp
2023-09-12 22:48:28 +02:00

25 lines
358 B
C++

#ifndef __FUNCS__
#define __FUNCS__
#include <armadillo>
#include <cmath>
#define PRECISION 8
#define N_STEPS_EXP 7
double f(double x);
double u(double x);
void build_g_vec(int n_steps, arma::vec& g_vec);
void build_arrays(
int n_steps,
arma::vec& sub_diag,
arma::vec& main_diag,
arma::vec& sup_diag,
arma::vec& g_vec
);
#endif