|
Robotran C Documentation
|
Go to the documentation of this file.
11 #ifndef _MBS_POLYNOMIAL_H_
12 #define _MBS_POLYNOMIAL_H_
82 int nb_deriv,
double **deriv_xyp);
int mbs_polynomial_print(MbsPolynomial *poly)
Print information about the polynomial.
Definition: mbs_polynomial.c:333
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
void lubksb_0(double **a, int n, int *indx, double b[])
Definition: lubksb.c:31
double * get_dvec_0(int l_v)
create (with memory allocation) a vector (length l_v) of doubles, starting at index 0
Definition: mbs_1D_array.c:955
void free_ivec_0(int *vec)
release memory for a vector of integers, starting with index 0
Definition: mbs_1D_array.c:490
void free_dmat_0(double **mat)
release memory for a matrix of doubles, starting at index 0
Definition: mbs_matrix.c:332
int order
Order of the polynomial, positive or null ie:
Definition: mbs_polynomial.h:24
int ludcmp_0(double **a, int n, int *indx, double *d)
LU decomposition of a matrix with index starting at 0.
Definition: ludcmp.c:82
int mbs_polynomial_eval(MbsPolynomial *poly, double x, double *y, int deriv)
Evaluate the polynomial (or its nth derivative) at the provided coordinate.
Definition: mbs_polynomial.c:303
double ** get_dmat_0(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of doubles, starting at index 0
Definition: mbs_matrix.c:277
int mbs_polynomial_eval_vec(MbsPolynomial *poly, int nx, double *vx, double **p_vy, int deriv)
Evaluate the polynomial (or its nth derivative) at the provided coordinates vector.
Definition: mbs_polynomial.c:356
void * mbs_polynomial_delete(MbsPolynomial *poly)
Free a polynomial and return NULL.
Definition: mbs_polynomial.c:92
MbsPolynomial * mbs_polynomial_constrained(int nb_pos, double **pos_xy, int nb_deriv, double **deriv_xyp)
Create a polynomial fulfilling the position and first derivative.
Definition: mbs_polynomial.c:103
int mbs_polynomial_eval(MbsPolynomial *poly, double x, double *y, int deriv)
Evaluate the polynomial (or its nth derivative) at the provided coordinate.
Definition: mbs_polynomial.c:303
double * coef
Array containing the coefficients, the number of coefficient is order + 1.
Definition: mbs_polynomial.h:31
Definition: mbs_polynomial.h:22
MbsPolynomial * mbs_polynomial_constrained(int nb_pos, double **pos_xy, int nb_deriv, double **deriv_xyp)
Create a polynomial fulfilling the position and first derivative.
Definition: mbs_polynomial.c:103
void * mbs_polynomial_delete(MbsPolynomial *poly)
Free a polynomial and return NULL.
Definition: mbs_polynomial.c:92
int mbs_polynomial_check(MbsPolynomial *poly)
Check the validity of the provided polynomial.
Definition: mbs_polynomial.c:43
int * get_ivec_0(int l_v)
create (with memory allocation) a vector (length l_v) of integers, starting at index 0
Definition: mbs_1D_array.c:474
int mbs_polynomial_print(MbsPolynomial *poly)
Print information about the polynomial.
Definition: mbs_polynomial.c:333
MbsPolynomial * mbs_polynomial_new(int order)
Allocate a polynomial.
Definition: mbs_polynomial.c:63
int factorial(int n)
Definition: mbs_polynomial.c:21
void copy_dvec_0(double *vec_src, double *vec_dest, int l_v)
Copy the content of a vector (of sizel_v) of doubles to a second vector, starting with index 0.
Definition: mbs_1D_array.c:981
void free_dvec_0(double *vec)
release memory for a vector of doubles, starting at index 0
Definition: mbs_1D_array.c:971
MbsPolynomial * mbs_polynomial_new(int order)
Allocate a polynomial.
Definition: mbs_polynomial.c:63
double mbs_polynomial_get_value(MbsPolynomial *poly, double x, int deriv)
Evaluate the polynomial without any checks.
Definition: mbs_polynomial.c:267
int mbs_polynomial_eval_vec(MbsPolynomial *poly, int nx, double *vx, double **p_vy, int deriv)
Evaluate the polynomial (or its nth derivative) at the provided coordinates vector.
Definition: mbs_polynomial.c:356