> For the complete documentation index, see [llms.txt](https://ykkim.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ykkim.gitbook.io/wiki/numerical-method/nm-api-reference.md).

# NM API reference

## Non-Linear Solver

`# include "myNM.h"`

### Newton-raphson

Finds the solution of a non-linear equation with the given range.

`void newtonraphson()`

**Parameters**

* vector type m

## Linear Solver

### solveLinear()

solves for vector **x** from Ax=b, a linear system problem

```c
extern Matrix solveLinear(Matrix _A, Matrix _b, char* _method)
```

#### **Parameters**

* **A**: Matrix **A** in structure Matrix form. Should be (nxn) square.
* **b**: vector **b** in structure Matrix form. Should be (nx1)
* **method: character type,**
  * **'lu' :** LU decomposition
  * **'gauss':** Gauss elimination

#### Examples

```c
// Example code goes here
```
