Home

NUMERICS USER GUIDE Contents 1. General remarks 1 2

image

Contents

1. ax bry y cy dzy with positive parameters a b c d that must be provided via an additional window that shows up after pressing the Compute button of the actual window The differential equation has a stationary point at x y Which is attained if the initial value equals this value Otherwise the solution curve is a closed periodic orbit e Linear system x Ax you will be asked for the dimension of the matrix A and for its entries e y ay a real You will be asked for a e y ay a complex This is discretized as the real system u Re a u Im a v v Im a u Re a u with u Re y and v Im y You will be asked for the real part Re a and the imaginary part Im a of the complex number a e y dy wy asin yt p This is discretized as the corre sponding first order system x asin yt Y dx wy eae You will be asked for the numbers d w a y and w With the choice Output you determine the amount of printed out put in the Output area You have the options e None No output e All approximations Computed approximations after every time step In the text fields initial time and final time you should specify the initial time t and the final time T In the text field maximal number of steps you are asked to give the desired maximal number n of steps to be performed The initial guess for the first step size is 0 015 NUMERICS USER GUIDE 13 In
2. e arctan z e sin Nx a e Polynomial you will be asked for the degree and the coeffi cients e Rational function you will be asked for the degrees and coeffi cients of the nominator and denominator polynomials The choice Algorithm provides the following methods e Newton method without damping e Newton method with damping e Secant rule Regula falsi In the text field initial guess for zero you must enter the starting value for the corresponding algorithm The secant rule and the regula falsi both require a second starting value This one must be provided in the text field second guess for zero secant rule and regula falsi Please ignore this field when using a Newton method Recall that the function values at the two initial guesses must be of opposite sign when using the regula falsi In the text field number of iterations you should provide an upper bound for the number of iterations In the text field tolerance you are asked to specify an error tolerance Iterations will stop when either the given maximal number of iterations is achieved or when the absolute 6 R VERFURTH value of the function value at the actual iterate is below the prescribed tolerance 5 DIRECT SOLVERS FOR LINEAR SYSTEMS OF EQUATIONS This method provides algorithms for solving linear systems of equa tions using a direct solver i e Gaussian elimination and its relatives The choice Initialization of LSE gives you the following options f
3. GERMANY E mail address rv num1 rub de
4. The choice Initialization of Algorithm determines the way in which the chosen algorithm is started Some algorithms require an initial admissible bases This may be entered either manually via an additional window or may be determined automatically In the latter case the algorithms always take the last nr indices where nr is the number of rows of A This device is well suited for linear programs that originally have the non standard forms Ax lt b primal simplex or Ax gt b dual simplex The choice Output provides the following options e Optimal value of c z e All values of cz e All values of of cx and the solution vector z e All values of of cz the solution vector x and the data of the linear program e All values of of c z all iterates x and the data of the linear program In the text field number of parameters you should enter the num ber of unknowns In the text field number of constraints you should enter the num ber of constraints In the text fields number of iterations and tolerance you are asked to prescribe the maximal number of iterations and the desired error tolerance Iterations will stop when the maximal number of iter ations has been performed In addition the inner point iteration and NUMERICS USER GUIDE 15 the Nelder Mead algorithm will terminate when the Euclidean norm of a suitable residual is below the prescribed tolerance RUHR UNIVERSITAT BOCHUM FAKULTAT FUR MATHEMATIK D 44780 Bo CHUM
5. matrix Here matrixis generated with a random number generator The diagonal entries of the matrix have the form 0 5 rand dim the lower diagonal entries take the form rand 0 5 the upper diagonal entries equal their lower diagonal counterparts Here dim is the number of equations and rand a random number generator with values in the interval 0 1 This construction yields a symmetric and positive definite matrix The choice Algorithm allows to choose among of the following nu merical methods e Power iteration NUMERICS USER GUIDE 9 e Rayleigh quotient iteration only for symmetric positive definite matrices e Inverse power iteration e Inverse Rayleigh quotient iteration only for symmetric positive definite matrices e QR iteration The first two methods yield approximations of the largest in abso lute value eigenvalue the third and fourth ones those of the smallest in absolute value eigenvalue The last method gives approximations of all eigenvalues In this method the matrix is first transformed to a similar one with upper Hessenberg form This one will be a tridiagonal matrix if the original matrix is symmetric The choice Output offers the following options e Final approximation of eigenvalue s Computed eigenvalue s after the last iteration e All approximations of eigenvalue s Computed eigenvalue s after every iteration e Matrix and final approximation of eigenvalue s Matrix and computed ei
6. the text field error tolerance you have to prescribe the tolerance TOL for the step size control The step size control tries to monitor the computation such that all approximations have an error of at most TOL when compared to the unknown solution of the differential equation Once the computations have successfully been performed you may visualise the results be pressing the Draw Graph button This will open a new graphics window depicting the computed solution curves for all chosen algorithms 10 LINEAR PROGRAMS This method provides algorithms for solving linear programs in stan dard form minimize c x subject to the constraint Ar b x gt 0 The choice Initialization of LP gives you the following options for entering the linear system of equations to be solved e Manual You will be asked for the coefficients of the matrix A and the entries of the vectors b and c These are entered via additional windows that will show up after pressing the Com pute button of the actual window The number of columns of A has to fit with the value in the text field number of param eters and the number of rows of A has to be the same as the value in the text field number of constraints e Example shoes This example corresponds to the linear pro gram in non standard form maximize 16x 32y subject to the constraints 20x 10y lt 8000 4x 5y lt 2000 6x 15y lt 4500 e Example nutrition This example corresponds to the linear pr
7. MS VARIABLE STEP SIZE This method provides algorithms for numerically solving an ini tial value problem using step size control The Runge Kutta Fehlberg methods use a step size control based on comparing schemes with dif ferent order The other methods use a step size control based on com paring results using a given method with step sizes h and At the top of the Input section you ll find a list of labelled checkboxes showing the implemented algorithms Explicit Euler scheme Implicit Euler scheme Crank Nicolson scheme also called trapezoidal rule Classical Runge Kutta scheme explicit order 4 Strongly diagonal implicit Runge Kutta scheme of order 3 SDIRK8 2 levels e Strongly diagonal implicit Runge Kutta scheme of order 4 SDIRK4 5 levels e Strongly diagonal implicit Runge Kutta scheme of order 5 SDIRKS5 6 levels e Runge Kutta Fehlberg scheme of order 2 with 4 levels RKF2 e Runge Kutta Fehlberg scheme of order 3 with 5 levels RKF3 e Runge Kutta Fehlberg scheme of order 4 with 7 levels RKF4 12 R VERFURTH You choose an algorithm by clicking its checkbox You may choose as many algorithms as you like but at least one Note that the im plicit Euler the Crank Nicolson and the SDIRK schemes are A stable The Runge Kutta Fehlberg methods are all explicit schemes and have bounded stability regions The choice ODE provides the following sample differential equa tions e Population model x
8. NUMERICS USER GUIDE R VERFURTH CONTENTS 1 General remarks 1 2 Interpolation 3 3 Integration 4 4 Zeros of functions 5 5 Direct solvers for linear systems of equations 6 6 Iterative solvers for linear systems of equations 7 7 Eigenvalue problems 8 8 Initial value problems fixed step size 10 9 Initial value problems variable step size 11 10 Linear programs 13 1 GENERAL REMARKS Numerics is an applet demonstrating some basic numerical algo rithms Upon starting the applet you are provided with a list of choices showing the implemented methods see Fig 1 You choose one and than click the Run button to start the chosen algorithm Clicking the Quit button terminates the applet Applet demonstrating elementary numerical methods _ Interpolation RUN QUIT FIGURE 1 Numerics main window Once you have started any of the implemented methods you ll see a screen see Fig 2 which is split into three parts a left upper part labelled Input a right upper part labelled Output and a lower part containing buttons labelled Compute Draw Graph and Quit Date September 2006 2 R VERFURTH 00e Interpolation User Interface INPUT OUTPUT Function abs x ww Algorithm polynomial interpolation Node spacing equidistant wa first node 1 0 last node 1 0 number of nodes 2 Compute w Gra quit FIGURE 2 Window of a Numerics method In the input part you ll se
9. and side both are generated with a random number generator The diagonal entries of the matrix have the form 0 5 rand dim the lower diagonal entries take the form rand 0 5 the upper diagonal entries equal their lower diagonal counterparts Here dim is the number of equations and rand a random number generator with values in the interval 0 1 This construction yields a symmetric and positive definite matrix choice Algorithm allows to choose among of the following nu merical methods The Richardson iteration Jacobi iteration Gauss Seidel iteration Symmetric successive over relaxation SSOR Gradient iteration Conjugate gradient iteration CG Conjugate gradient iteration with SSOR preconditioning SSOR PCG choice Output provides the following options Norm of final residual Euclidean norm of the residual of the computed solution Norm of all residuals Euclidean norm of the residuals of all iterates Solution vector Components of the computed solution Matrix rhs solution Matrix entries and components of the right hand side and of the computed solution 8 R VERFURTH In the text field number of columns rows you should enter the number of equations of the linear system In the text fields number of iterations and tolerance you are asked to prescribe the maximal number of iterations and the desired error tolerance Iterations will stop either when the maximal number of iterations has been per
10. e several choices that allow to choose ex amples implemented methods etc and text fields for setting relevant parameters The text fields usually exhibit the default values of the corresponding parameters Once you have made your choices and entered your favourite param eters you press the Compute button to start the computations The results will be depicted in the output part Note that some examples e g interpolation of a rational function require additional input This will be provided via additional windows that show up after pressing the Compute Button of the main window These additional windows all have a top label explaining their purpose one or several labelled text fields for entering the relevant parameters and an OK button You have to press the latter one after having finished your input in order to continue the computation process Once the computation is completed you may eventually want to vi sualise the results by clicking the Draw Graph button Methods that do not provide this option e g Integration have the Draw Graph button disabled Upon pressing the Draw Graph button a graphics window will show up see Fig 3 It is split into three parts an upper part containing text fields labelled Xmin Xmax Ymin and Ymax a lower part containing buttons labelled Draw and Quit and a large middle part for the graphics The values in the text fields determine the drawing area min Tmax X Ymin Ymax and are initially set
11. formed or when the Euclidean norm of the residual of the actual iterate is below the prescribed tolerance Once the computations have successfully been performed you may visualise the results by pressing the Draw Graph button This will open a new graphics window It depicts the following three curves e Red relative residual i e the ratio of the actual residual to the initial residual e Blue convergence rate i e the ratio of the actual residual to the previous one e Green mean convergence rate i e the i th root of the ratio of the actual residual to the initial residual where 7 denotes the actual number of iterations 7 EIGENVALUE PROBLEMS This method provides algorithms for computing the largest eigen value the smallest eigenvalue and all eigenvalues of a square matrix The choice Initialization of matrix gives you the following options for entering the linear system of equations to be solved e Manual You will be asked for the coefficients of the matrix These are entered via additional windows that will show up after pressing the Compute button of the actual window e 5 point stencil Here the matrix is the one corresponding to a regular 5 point difference approximation of the Laplacian on a uniform grid i e 2 AUcenter Unorth Ueast Usouth Uwest h Vester The number of gridlines is the largest integer not greater than the square root of the prescribed size of the linear system e Random spd
12. genvalue s after the last iteration e Matrix and all approximations of eigenvalue s Matrix and computed eigenvalue s after every iteration In the text field number of columns rows you should enter the size of the matrix In the text fields number of iterations and tolerance you are asked to prescribe the maximal number of iterations and the desired error tolerance Iterations will stop either when the maximal number of iterations has been performed or when the difference between the actual approximation and the previous one is in absolute value below the prescribed tolerance When using the QR algorithm approximation means the largest absolute value in the lower diagonal of the current matrix Once the computations have successfully been performed you may visualise the results by pressing the Draw Graph button This will open a new graphics window It depicts the following three curves e Red relative residual i e the ratio of the estimated actual error to the initial estimated error e Blue convergence rate i e the ratio of the actual estimated error to the previous one e Green mean convergence rate i e the i th root of the ratio of the actual estimated error to the initial estimated error where i denotes the actual number of iterations Here the error is always estimated by computing a three term extrapo lation of the computed approximation to the corresponding eigenvalue 10 R VERFURTH When using the QR a
13. ial equation has a stationary point at x y which is attained if the initial value equals this value Otherwise the solution curve is a closed periodic orbit e Linear system x Ax you will be asked for the dimension of the matrix A and for its entries e y ay a real You will be asked for a e y ay a complex This is discretized as the real system u Re a u Im a u v Im a u Re a u NUMERICS USER GUIDE 11 with u Re y and v Im y You will be asked for the real part Re a and the imaginary part Im a of the complex number a ey dy wy asin yt p This is discretized as the corre sponding first order system x asin yt Y dx wy y r You will be asked for the numbers d w a y and w With the choice Output you determine the amount of printed out put in the Output area You have the options e None No output e All approximations Computed approximations after every time step In the text fields initial time and final time you should specify the initial time t and the final time T In the text field number of steps you are asked to give the desired number n of steps to be performed The fixed step size then is Tto Once the computations have successfully been performed you may visualise the results be pressing the Draw Graph button This will open a new graphics window depicting the computed solution curves for all chosen algorithms 9 INITIAL VALUE PROBLE
14. ill be asked for the degree and the coeff cients 4 R VERFURTH e Rational function you will be asked for the degrees and coeffi cients of the nominator and denominator polynomials The choice Algorithm provides the following interpolation methods e polynomial interpolation e spline interpolation natural cubic splines e trigonometric interpolation The choice Node spacing provides the following options e equidistant nodes are i Lfrst Zlast T Tfrst 1 0 1 se N 1 n 1 e transformed Cebysev nodes nodes are in cos 1 sani i Last 9 Diss Tfrst t U 4 N 1 Note that when using trigonometric interpolation the Numerics ap plet automatically converts your input to an odd number of equidistant interpolation nodes In the text fields First node and Last node you should enter the first interpolation node frst and the last interpolation node last re spectively The text field Number of nodes is used to enter the number n of interpolation nodes Upon clicking the Draw Graph button yov ll see a graphics win dow for visualising the error in red the interpolation in blue and the function to be interpolated in green 3 INTEGRATION This method demonstrates the numerical computation of integrals of functions of one real variable on a bounded interval with the use of quadrature formulae With exception of the Romberg scheme all quadrature formulae are composite ones i e the integ
15. ion The choice Output provides the following options e Norm of final residual Euclidean norm of the residual of the computed solution e Solution vector Components of the computed solution e Matrix rhs solution Matrix entries and components of the right hand side and of the computed solution In the text field number of columns rows you should enter the number of equations of the linear system NUMERICS USER GUIDE 7 6 ITERATIVE SOLVERS FOR LINEAR SYSTEMS OF EQUATIONS This method provides algorithms for approximately solving linear systems of equations using a stationary iterative method The choice Initialization of LSE gives you the following options for entering the linear system of equations to be solved The Manual You will be asked for the coefficients of the matrix and the entries of the right hand side These are entered via addi tional windows that will show up after pressing the Compute button of the actual window 5 point stencil with random rhs Here the matrix is the one corresponding to a regular 5 point difference approximation of the Laplacian on a uniform grid i e 2 AUcenter Unorth Ueast Usouth Uwest h Tceuker The number of gridlines is the largest integer not greater than the square root of the prescribed size of the linear system The right hand side of the linear system is generated with a random number generator Random spd matrix random rhs Here matrix and right h
16. lgorithm approximation means the largest ab solute value in the lower diagonal of the current matrix 8 INITIAL VALUE PROBLEMS FIXED STEP SIZE This method provides algorithms for numerically solving an initial value problem All algorithms use a fixed step size At the top of the Input section you ll find a list of labelled checkboxes showing the implemented algorithms Explicit Euler scheme Implicit Euler scheme Crank Nicolson scheme also called trapezoidal rule Classical Runge Kutta scheme explicit order 4 Strongly diagonal implicit Runge Kutta scheme of order 3 SDIRK8 2 levels e Strongly diagonal implicit Runge Kutta scheme of order 4 SDIRK4 5 levels e Strongly diagonal implicit Runge Kutta scheme of order 5 SDIRKS5 6 levels e Backward difference scheme with 2 steps BDF2 e Backward difference scheme with 3 steps BDF3 e Backward difference scheme with 4 steps BDF4 You choose an algorithm by clicking its checkbox You may choose as many algorithms as you like but at least one Note that the implicit Euler the Crank Nicolson and the SDIRK schemes are A stable and that the BDF schemes are Ao stable The choice ODE provides the following sample differential equa tions e Population model xv ax bry y cy dzy with positive parameters a b c d that must be provided via an additional window that shows up after pressing the Compute button of the actual window The different
17. o gram in non standard form minimize 102 7y subject to the constraints 20x 20y gt 60 15x 3y 15 5x 10y gt 20 e Example dual problem This example corresponds to the linear program in non standard form minimize x y subject to the constraints 2r y gt 23 L 2y gt 3 e Example Klee Minty This example corresponds to the linear program in non standard form maximize x subject to the constraints An2j 1 lt i lt 1 anzi 1 with zo 1 anda 14 R VERFURTH 0 5 You ll have to enter the number n in the text field number of parameters The choice Algorithm allows to choose among of the following nu merical methods e Primal simplex Apply the standard primal simplex algorithm starting from an admissible inital bases for the primal problem e Dual simplex Apply the standard dual simplex algorithm start ing from an admissible inital bases for the dual problem e Auto start simplex In a first step the primal simplex method is applied to a suitable auxiliary linear program in order to obtain a first admissible bases for the original linear program Then the primal simplex algorithm is applied to the original linear program starting with this initial bases e Inner point A Newton iteration is applied to an auxiliary non linear optimization method which has the same solution as the original linear program e Nelder Mead This implements the Nelder Mead algorithm of bisecting hyperplanes
18. or entering the linear system of equations to be solved e Manual You will be asked for the coefficients of the matrix and the entries of the right hand side These are entered via addi tional windows that will show up after pressing the Compute button of the actual window e 5 point stencil with random rhs Here the matrix is the one corresponding to a regular 5 point difference approximation of the Laplacian on a uniform grid i e nd ED AUicenter Unorth Ueast Usouth Uwest h feenter The number of gridlines is the largest integer not greater than the square root of the prescribed size of the linear system The right hand side of the linear system is generated with a random number generator e Random spd matrix random rhs Here matrix and right hand side both are generated with a random number generator The diagonal entries of the matrix have the form 0 5 rand dim the lower diagonal entries take the form rand 0 5 the upper diagonal entries equal their lower diagonal counterparts Here dim is the number of equations and rand a random number generator with values in the interval 0 1 This construction yields a symmetric and positive definite matrix The choice Algorithm allows to choose among of the following nu merical methods e Gaussian elimination e LR decomposition also called LU decomposition e Cholesky decomposition only applicable to symmetric positive definite matrices e QR decomposit
19. ration interval is split into a specified number of sub intervals of equal length to which the given quadrature formula is applied The choice Function provides the following sample functions for integration Viel arctan z sin Nz a Gaussian normal distribution with user specified mean value u and standard deviation o Polynomial you will be asked for the degree and the coeffi cients Rational function you will be asked for the degrees and coeffi cients of the nominator and denominator polynomials NUMERICS USER GUIDE 5 The choice Algorithm provides the following integration methods Romberg scheme Midpoint rule Trapezoidal rule Simpson rule 2 point Gaussian rule 3 point Gaussian rule 4 point Gaussian rule In the text fields left boundary and right boundary you should enter the lower and upper integration bounds respectively The text field initial number of subintervals specifies the initial number of sub intervals for the composite quadrature formula The number of sub intervals is doubled in each refinement step up to the maximal number of refinements specified in the text field number of refinements When using the Romberg scheme the number given in this field also specifies the number of extrapolation columns 4 ZEROS OF FUNCTIONS This method demonstrates several algorithms for computing real ze ros of functions of one real variable The choice Function provides the following sample functions
20. to default values depending on the actual method Note that abscissa and ordi nate scale separately thus a circle will look like an ellipse if max min differs from Ymax Ymin Clicking the Draw button starts the graphics Clicking the Quit button terminates the graphics closes the graphics window and leads back to the main window of the actual method NUMERICS USER GUIDE 3 e098 Interpolation Graphics Xmin 1 0 Xmax 1 0 Ymin 0 1 Ymax 1 0 FIGURE 3 A sample graphics window A new set of examples can be computed by adjusting the relevant choices and text fields and than clicking the Compute button Upon clicking the button you ll find in the output area a short explanation of the actual method of its properties and of its function ality Clicking the Quit button terminates the actual method closes the window and leads back to the main window for eventually choosing a new numerical method 2 INTERPOLATION This method demonstrates various interpolation methods for func tions of one real variable The choice Function provides the following sample functions for interpolation e z e Vici e arctan z e Pulse 27 periodic continuation of the characteristic function of 0 7 Sawtooth a periodic continuation of the function m x on 0 7 sin Nz a Gaussian normal distribution with user specified mean value u and standard deviation o Polynomial you w

Download Pdf Manuals

image

Related Search

Related Contents

FORA TD-5010B_lancet device insert_EN&ES_318-5010200-047  取説(PDFファイル)  MANUAL DE INSTRUCCIONES RADIO AM/FM CON  Hampton Bay EZT2092A Instructions / Assembly    Télécharger la fiche technique du Onkyo TX-SR309  T erT iale Spé  ENCORE 2-Port KVM Switch  DeLonghi EN 520.R    

Copyright © All rights reserved.
Failed to retrieve file