GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Math2.cc File Reference
#include <iostream>
#include <cmath>
#include <vector>
Include dependency graph for Math2.cc:

Classes

class  MArray< I, T >
class  DiffArray< T >
class  Derivatives< T >
class  GenerateSequence2< T >
class  TestSeq
struct  NS_Point
class  NS_StateSpace
class  NS_StateSpaceInitial
class  NS_InitialConditions

Functions

template<class T>
void print (const MArray< int, T > &arr)
template<class T>
void print (const MArray< float, T > &arr)
std::vector< float > diff_init (float value)
std::vector< float > diff_array (std::vector< float > vec, float value)
std::vector< std::vector< float > > collect_diffs (std::vector< float > orig_seq)
std::vector< float > diff_array_ends (std::vector< std::vector< float > > vec)
std::ostream & operator<< (std::ostream &o, std::vector< float > vec)
long double select (long double n, int k)
long double select_sum (int n, std::vector< float > diff_end)
float derivative (float f_x_plus_dx, float f_x, float dx=1.0f)
float next_item (float f_x, float df_dx_at_x, float dx=1.0f)
float prev_item (float f_x_plus_dx, float df_dx_at_x, float dx=1.0f)

Variables

float test_arr []

Function Documentation

◆ collect_diffs()

std::vector< std::vector< float > > collect_diffs ( std::vector< float > orig_seq)

◆ derivative()

float derivative ( float f_x_plus_dx,
float f_x,
float dx = 1.0f )

◆ diff_array()

std::vector< float > diff_array ( std::vector< float > vec,
float value )
Here is the caller graph for this function:

◆ diff_array_ends()

std::vector< float > diff_array_ends ( std::vector< std::vector< float > > vec)

◆ diff_init()

std::vector< float > diff_init ( float value)
Here is the caller graph for this function:

◆ next_item()

float next_item ( float f_x,
float df_dx_at_x,
float dx = 1.0f )

◆ operator<<()

std::ostream & operator<< ( std::ostream & o,
std::vector< float > vec )

◆ prev_item()

float prev_item ( float f_x_plus_dx,
float df_dx_at_x,
float dx = 1.0f )

◆ print() [1/2]

template<class T>
void print ( const MArray< float, T > & arr)

◆ print() [2/2]

template<class T>
void print ( const MArray< int, T > & arr)

◆ select()

long double select ( long double n,
int k )
Here is the caller graph for this function:

◆ select_sum()

long double select_sum ( int n,
std::vector< float > diff_end )

Variable Documentation

◆ test_arr

float test_arr[]
Initial value:
=
{
7,7,7,7,9,9,9,9,9,9,11,11,11,11,11,13,13,13,15,15,17,17,19,21,21,23,27,29,33,37,43,51,55,66,77,88,99,100,150
}