tauint
Tau integration evaluation.
Syntax
[v, f] = tauint(step, x, fun, order)
Description
Evaluates the integral term from an approximated function.
Inputs
step = evaluatrion step (double).
x = independent tau variable (itau object).
fun = function f(x) (char or double vector).
order = derivative order (integer).
Outputs
v = v(x).
f = coefficients for the approximation int('fun(x)', order).
Examples
x = itau('LegendreP', [0 1], 5);
[v, f] = tauint(0.1, x, ''x^2-3*x+1'', 1); or:
x = itau('LegendreP', [0 1], 5);
[v, f] = tauint(0.1, x, [-1/6 -1 1/6]', 1);
In the first example the function is
interpolated by orthogonal basis whereas in the second the coefficients
are already provided.
See also
taufred, taudiff, taudiff.
Evaluates the integral term from an approximated function.
Inputs
step = evaluatrion step (double).
x = independent tau variable (itau object).
fun = function f(x) (char or double vector).
order = derivative order (integer).
Outputs
v = v(x).
f = coefficients for the approximation int('fun(x)', order).
Examples
x = itau('LegendreP', [0 1], 5);
[v, f] = tauint(0.1, x, ''x^2-3*x+1'', 1); or:
x = itau('LegendreP', [0 1], 5);
[v, f] = tauint(0.1, x, [-1/6 -1 1/6]', 1);
In the first example the function is
interpolated by orthogonal basis whereas in the second the coefficients
are already provided.
See also
taufred, taudiff, taudiff.
v = v(x). f = coefficients for the approximation int('fun(x)', order).
Examples
x = itau('LegendreP', [0 1], 5);
[v, f] = tauint(0.1, x, ''x^2-3*x+1'', 1); or:
x = itau('LegendreP', [0 1], 5);
[v, f] = tauint(0.1, x, [-1/6 -1 1/6]', 1);
In the first example the function is
interpolated by orthogonal basis whereas in the second the coefficients
are already provided.
See also
taufred, taudiff, taudiff.
taufred, taudiff, taudiff.