Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - English


intsplin

integration of experimental data by spline interpolation

Syntax

v = intsplin(y)
v = intsplin(x, y)

Arguments

x

Vector of increasing real abscissae. It must have the length of y. Default values are 1:size(y,'*').

y

vector of real or complex ordinates.

v

value of the integral. If y are complex numbers, the real and imaginary parts are integrated separately.

Description

Let f be a function defined at some given sampled experimental points (xi, yi=f(xi)).

intsplin computes an approximate of integral{f(x).dx} from x0=x(1) to x1=x($).

Between given points, f is approximated using a spline interpolation.

Examples

t = 0:0.1:%pi
intsplin(t,sin(t))

intsplin(1:5)            // 12

x = 0:0.1:0.4;
intsplin(x, 1:5)         // 1.2

intsplin((1:5)*%i)       // 12i
intsplin(x, (1:5)*%i)    // 1.2i
intsplin(x, x+(1:5)*%i)  // 0.08 + 1.2i

See also

  • intg — definite integral
  • integrate — integration of an expression by quadrature
  • inttrap — integration of experimental data by trapezoidal interpolation
  • splin — cubic spline interpolation
Report an issue
<< intl Differential Equations inttrap >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 24 11:13:08 CEST 2024