Namespaces | Functions
get_D_Coeffs.cpp File Reference
#include "get_D_Coeffs.hpp"
#include "Ax_b.hpp"
#include "factorial.hpp"
#include <cmath>
#include "print.hpp"
#include <iostream>
#include "Init_Vec.hpp"

Namespaces

 SPE
 Namespace containing all functions and data classes for this solver.
 

Functions

PetscInt SPE::get_D_Coeffs (const PetscScalar s[], const PetscInt &n, Vec &output, const PetscInt &d=2)
 Solve arbitrary stencil points s of length N with order of derivatives d<N can be obtained from equation on MIT website http://web.media.mit.edu/~crtaylor/calculator.html where the accuracy is determined as the usual form O(h^(N-d)) More...