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 Sat 16-May-2009 00:04:49 by m2html © 2003