02.04.2013 Views

Welcome to Adams/Solver Subroutines - Kxcad.net

Welcome to Adams/Solver Subroutines - Kxcad.net

Welcome to Adams/Solver Subroutines - Kxcad.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

22<br />

<strong>Adams</strong>/<strong>Solver</strong><br />

Input Arguments<br />

x A double-precision variable that specifies the independent variable.<br />

x0 A double-precision variable that specifies a shift in the Chebyshev<br />

polynomial.<br />

par A double-precision array of coefficients (a0,...,an).<br />

npar An integer variable that specifies the number of coefficients specified.<br />

iord An integer variable that specifies the order of the derivative that CHEBY<br />

is <strong>to</strong> return. IORD can be zero, one, or two.<br />

Output Arguments<br />

value A double-precision value the subroutine returns. The table below<br />

summarizes the value it returns:<br />

errflg A logical (true or false) variable that CHEBY returns <strong>to</strong> the calling<br />

subroutine. If CHEBY detects an error in the subroutine call statement,<br />

it sets errflg <strong>to</strong> true before it returns errflg <strong>to</strong> the calling subroutine.<br />

Extended Definition<br />

CHEBY evaluates a Chebyshev polynomial. The following equation defines CHEBY:<br />

where:<br />

and:<br />

0<br />

1<br />

2<br />

,<br />

IORD: Value:<br />

F( x)<br />

∂ F( x)<br />

--------------<br />

∂ x<br />

∂ F 2 ( x)<br />

∂ x 2<br />

----------------<br />

Tj( x – x0) – 2 ⋅( x – x0) ⋅Tj<br />

– 1( ( x – x0) ⋅Tj<br />

– 2( x – x0) )<br />

T0( x – x0) =<br />

1<br />

,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!