|
RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
|
Solve multi-variant nonlinear equation systems. More...
#include "vector.h"#include "matrix.h"#include "fsolve.h"#include "newton_raphson.h"#include "damped_newton_raphson.h"Go to the source code of this file.
Functions | |
| uint8_t | fsolve (uint8_t f_length, uint8_t x0_length, vector_t x0_arr[], enum NON_LIN_ALGORITHM algo, vector_t est_x_arr[], void(*get_non_lin_sys)(vector_t x_arr[], vector_t f_vec[]), void(*get_jacobian)(vector_t x_arr[], matrix_t J[][x0_length])) |
| Solve systems of multi-variant nonlinear equations. More... | |
Solve multi-variant nonlinear equation systems.
The multi-variant nonlinear equation systems are solved using damped or the Newton–Raphson algorithms.
Definition in file fsolve.c.
| uint8_t fsolve | ( | uint8_t | f_length, |
| uint8_t | x0_length, | ||
| vector_t | x0_arr[], | ||
| enum NON_LIN_ALGORITHM | algo, | ||
| vector_t | est_x_arr[], | ||
| void(*)(vector_t x_arr[], vector_t f_vec[]) | get_non_lin_sys, | ||
| void(*)(vector_t x_arr[], matrix_t J[][x0_length]) | get_jacobian | ||
| ) |
Solve systems of multi-variant nonlinear equations.
The user should provide pointers to non-linear equation systems and Jacobian functions. The user can choose between the damped or the Newton–Raphson algorithms.
| [in] | f_length | length of the error functions vector. |
| [in] | x0_length | length of the start vector. |
| [in] | x0_arr[] | start vector. |
| [in] | algo | damped or the Newton–Raphson algorithm. |
| [in,out] | est_x_arr[] | estimated (solution) vector. |
| [in] | (*get_non_lin_sys) | pointer to non-linear equation systems. |
| [in] | (*get_jacobian) | pointer to the Jacobian matrix. |
Definition at line 29 of file fsolve.c.
References damped_newton_raphson(), Damped_Newton_Raphson, Newton_Raphson, and newton_raphson().
Referenced by fsolve_test().