Linear equations
We provide a variety of linear equations.
- temfpy.linear_equations.get_ill_cond_lin_eq(n)[source]
Create ill-conditioned system of linear equations given a 1-D solution array of ones.
\[Ax=b\]- Parameters
n (non-negative integer) – Dimension of linear equation.
- Returns
a (array_like) – 2-D ill-conditioned array.
x (array_like) – 1-D solution array of ones.
b (array_like) – 1-D data array.
References
- W2021
Vandermonde matrix. (2021, December 1). In Wikipedia. Retrieved from https://en.wikipedia.org/wiki/Vandermonde_matrix.
Examples
>>> import numpy as np >>> from temfpy.linear_equations import get_ill_cond_lin_eq >>> >>> n = 5 >>> a, x, b = get_ill_cond_lin_eq(n)