Home > freetb4matlab > odebvp > lfdif.m

lfdif

PURPOSE ^

% Approximate the solution of a boundary-value problem. The problem is

SYNOPSIS ^

function sol = lfdif(ai, bi, alpha, beta, n)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} lfdif (@var{a}, @var{b}, @var{alpha}, @var{beta}, @var{n})
% Approximate the solution of a boundary-value problem. The problem is
% defined as
%
% @iftex
% @example
% @tex
%  $y'' = p(x)  y' + q(x) y + r(x), a \le x \le b$, $y(a) = \alpha$, $y(b) = \beta$
% @end tex
% @end example
% @end iftex
% @ifnottex
% @example
%  y''=p(x)*y' + q(x)*y + r(x), a<=x<=b, y(a)=alpha, y(b)=beta
% @end example
% @end ifnottex
%
% @noindent
% by the linear finite-diffence method. The inputs are
%
% @table @asis
% @item a, b
% Endpoints
% @item alpha, beta
% boundary conditions
% @item n
% An integer value greater than or equal to 2
% @end table
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003