Research/Etc_Research2007.01.08 10:07
QUAD   Numerically evaluate integral, adaptive Simpson quadrature.
    Q = QUAD(FUN,A,B) tries to approximate the integral of function
    FUN from A to B to within an error of 1.e-6 using recursive
    adaptive Simpson quadrature.  The function Y = FUN(X) should
    accept a vector argument X and return a vector result Y, the
    integrand evaluated at each element of X. 
 
    Q = QUAD(FUN,A,B,TOL) uses an absolute error tolerance of TOL
    instead of the default, which is 1.e-6.  Larger values of TOL
    result in fewer function evaluations and faster computation,
    but less accurate results.  The QUAD function in MATLAB 5.3 used
    a less reliable algorithm and a default tolerance of 1.e-3.
 
    [Q,FCNT] = QUAD(...) returns the number of function evaluations.
 
    QUAD(FUN,A,B,TOL,TRACE) with non-zero TRACE shows the values
    of [fcnt a b-a Q] during the recursion.
 
    QUAD(FUN,A,B,TOL,TRACE,P1,P2,...) provides for additional
    arguments P1, P2, ... to be passed directly to function FUN,
    FUN(X,P1,P2,...).  Pass empty matrices for TOL or TRACE to
    use the default values.
 
    Use array operators .*, ./ and .^ in the definition of FUN
    so that it can be evaluated with a vector argument.
 
    Function QUADL may be more efficient with high accuracies
    and smooth integrands.
 
    Example:
        FUN can be specified as:
 
        An anonymous function:
           F = @(x) 1./(x.^3-2*x-5);
           Q = quad(F,0,2);
 

        A function handle:
           Q = quad(@myfun,0,2);
           where myfun.m is an M-file:
              function y = myfun(x)
              y = 1./(x.^3-2*x-5);
 
    Class support for inputs A, B, and the output of FUN:
       float: double, single
 
    See also quadv, quadl, dblquad, triplequad, @, trapz.


    Reference page in Help browser
       doc quad

신고

'Research > Etc_Research' 카테고리의 다른 글

Monte Carlo Method  (0) 2007.01.08
Gradient  (0) 2007.01.08
Partial differential equations  (0) 2007.01.08
Matlab Integral 명령어  (1) 2007.01.08
산화환원 반응  (0) 2007.01.07
Matrix Inverse  (6) 2007.01.07

이 글은 새로운 정보가 추가될 때마다 업데이트됩니다. 추천으로 아래 숫자에 1을 더해보세요. :)
RSS구독을 하시면 포스트를 배달해 드립니다. ▷ 한RSS 구독하기, 구글리더 구독하기

댓글을 달아 주세요

  1. http://kooglog.tistory.com/
    때마침 필요한 명령어였는데... 커맨트창에 inte, integral이라고 치고있었네요-_-;;
    잘 배우고 가져갑니다~

    2008.10.08 21:59 신고 [ ADDR : EDIT/ DEL : REPLY ]


티스토리 툴바