) |
import pygsl.chebyshev s=pygsl.chebyshev.cheb_series()
n) |
f, a, b) |
f ... a gsl_function a ... lower limit b ... upper limit
x) |
x) |
n, x) |
n, x) |
) |
) |
) |
) |
) |
) |
) |
) |
) |
) |
f) |
...) |
f, params) |
This class defines the callbacks known as gsl_function to gsl.
e.g to supply the function f:
def f(x, params): a = params[0] b = parmas[1] c = params[3] return a * x ** 2 + b * x + c
to some solver, use
function = gsl_function(f, params)