- ##
- ## Return the coefficients of u(x0), u(x1), ..., u(xn) as a vector.
- ## Take for example a first order approximation, with,
- ##
- ## xs = [x0,x1,x2,x3,x4]
- ##
- ## f'(x1) ~= [f(x2)-f(x1)]/(x2-x1)
- ##
- ## This would return [0, -1/(x2-x1), 2/(x2-x1), 0, 0]. This aids the
- ## solution of linear systems.
- ##
- ##
- ## INPUTS:
- ##
- ## * ``integer_order`` - The order of the derivative which we're
- ## approximating.
- ##
- ## * ``xs`` - The vector of x-coordinates.
- ##
- ## * ``x`` - The point `x` at which you'd like to evaluate the
- ## derivative of the specified `integer_order`. This should be an
- ## element of `xs`.
- ##
- ##
- ## OUTPUTS:
- ##
- ## * ``coefficients`` - The vector of coefficients, in order, of
- ## f(x0), f(x1), ..., f(xn).
- ##
+ %
+ % Return the coefficients of u(x0), u(x1), ..., u(xn) as a vector.
+ % Take for example a first order approximation, with,
+ %
+ % xs = [x0,x1,x2,x3,x4]
+ %
+ % f'(x1) ~= [f(x2)-f(x1)]/(x2-x1)
+ %
+ % This would return [0, -1/(x2-x1), 2/(x2-x1), 0, 0]. This aids the
+ % solution of linear systems.
+ %
+ %
+ % INPUTS:
+ %
+ % * ``integer_order`` - The order of the derivative which we're
+ % approximating.
+ %
+ % * ``xs`` - The vector of x-coordinates.
+ %
+ % * ``x`` - The point `x` at which you'd like to evaluate the
+ % derivative of the specified `integer_order`. This should be an
+ % element of `xs`.
+ %
+ %
+ % OUTPUTS:
+ %
+ % * ``coefficients`` - The vector of coefficients, in order, of
+ % f(x0), f(x1), ..., f(xn).
+ %