ipkiss3.all.circuit_sim.polyval(p, x)

Polynomial evaluation of polynomial with coefficients p at variable value x

Can be used inside i3.CompactModel (calculate_smatrix, calculate_signals, caulcaulte_dydt) to evaluate a polynomial. Can take single variable values but also 1D or multi-dimensional arrays can be evaluated at once.

p: np.ndarray

1D array of polynomial coefficients, from highest degree to the constant term

x: np.ndarray, float or int

array of values (1D or higher) or a single value for the variable

nd.ndarray or single value, like x

with (d)type float if either x or p are of (d)type float or int if both x and p are int.