MATLAB Primer Is Based on Version 4.0/4.1 of MATLAB

Total Page:16

File Type:pdf, Size:1020Kb

MATLAB Primer Is Based on Version 4.0/4.1 of MATLAB On the Third Edition The Third Edition of the MATLAB Primer is based on version 4.0/4.1 of MATLAB. While this edition re ects an extensive general revision of the Second Edition, most sig- ni cant is the new information to help one b egin to use the ma jor new features of version 4.0/4.1, the sparse matrix and enhanced graphics capabilities. The plain T X source and corresp onding PostScript le of the latest printing of the E MATLAB Primer are always available via anonymous ftp from: Address: math.ufl.edu Directory: pub/matlab Files: primer.tex, primer.ps MATLAB Primer You are advised to download anew each term the latest printing of the Primer since minor Third Edition improvements and corrections mayhave b een made in the interim. If ftp is unavailable to you, the Primer can b e obtained via listserv by sending an email message to list- [email protected] containing the single line send matlab/primer.tex. Also available at this ftp site are b oth English primer35.tex, primer35.ps and Kermit Sigmon Spanish primer35sp.tex, primer35sp.psversions of the Second Edition of the Primer, Department of Mathematics whichwas based on version 3.5 of MATLAB. The Spanish translation is by Celestino University of Florida Montes, University of Seville, Spain. A Spanish translation of the Third Edition is under development. Users of the Primer usually appreciate the convenience and durability of a b ound copy with a cover, copy center style. 12-93 c Copyright 1989, 1992, 1993 by Kermit Sigmon The MATLAB Primer may b e distributed as desired sub ject to the following con- ditions: 1. It may not b e altered in anyway, except p ossibly adding an addendum giving information ab out the lo cal computer installation or MATLAB to olb oxes. 2. It, or any part thereof, may not b e used as part of a do cument distributed for a commercial purp ose. In particular, it may b e distributed via a lo cal copy center or b o okstore. Department of Mathematics University of Florida Gainesville, FL 32611 Department of Mathematics University of Florida Gainesville, FL 32611 [email protected] l.edu [email protected] l.edu c Copyright 1989, 1992, 1993 by Kermit Sigmon i Introduction Contents MATLAB is an interactive, matrix-based system for scienti c and engineering numeric Page computation and visualization. You can solve complex numerical problems in a fraction of 1. Accessing MATLAB :: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: : 1 the time required with a programming language suchasFortran or C. The name MATLAB is derived from MATrix LABoratory. 2. Entering matrices :: ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: ::::: 1 The purp ose of this Primer is to help you b egin to use MATLAB. It is not intended 3. Matrix op erations, array op erations : :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: : 2 to b e a substitute for the User's Guide and Reference Guide for MATLAB. The Primer can b est b e used hands-on. You are encouraged to work at the computer as you read the 4. Statements, expressions, variables; saving a session ::: ::::::: ::::::: :::::::: :::::: 3 Primer and freely exp eriment with examples. This Primer, along with the on-line help facility, usually suce for students in a class requiring use of MATLAB. 5. Matrix building functions :: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: ::: 4 6. For, while, if | and relations : ::::::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: : 4 You should lib erally use the on-line help facility for more detailed information. When using MATLAB, the command help functionname will give information ab out a sp eci c 7. Scalar functions : ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: 7 function. For example, the command help eig will give information ab out the eigenvalue function eig. By itself, the command help will display a list of topics for which on-line 8. Vector functions ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: : 7 help is available; then help topic will list those sp eci c functions under this topic for which help is available. The list of functions in the last section of this Primer also gives most of 9. Matrix functions :::::: ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: :: 7 this information. You can preview some of the features of MATLAB by rst entering the command demo and then selecting from the options o ered. 10. Command line editing and recall ::: :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: :: 8 The scop e and p ower of MATLAB go far b eyond these notes. Eventually you will 11. Submatrices and colon notation ::: :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: ::: 8 want to consult the MATLAB User's Guide and Reference Guide. Copies of the complete do cumentation are often available for review at lo cations such as consulting desks, terminal 12. M- les: script les, function les :: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: :::: 9 ro oms, computing labs, and the reserve desk of the library. Consult your instructor or your lo cal computing center to learn where this do cumentation is lo cated at your institution. 13. Text strings, error messages, input ::: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: 12 14. Managing M- les ::::: ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: : 13 MATLAB is available for a number of environments: Sun/Ap ollo/VAXstation/HP workstations, VAX, MicroVAX, Gould, PC and AT compatibles, 80386 and 80486 com- 15. Comparing eciency of algorithms: ops, tic, to c ::: ::::::: ::::::: ::::::: ::::::: 14 puters, Apple Macintosh, and several parallel machines. There is a relatively inexp ensive Student Edition available from Prentice Hall publishers. The information in these notes 16. Output format :::::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: : 14 applies generally to all of these environments. 17. Hard copy :::: :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: : 15 MATLAB is licensed by The MathWorks, Inc., 24 Prime Park Way, Natick, MA 01760, 508653-1415, Fax: 508653-2997, Email: [email protected]. 18. Graphics :: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: :::: 15 planar plots 15, hardcopy 17, 3-D line plots 18 mesh and surface plots 18, Handle Graphics 20 19. Sparse matrix computations :: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: 20 20. Reference :::: ::::::: ::::::: :::::::: ::::::: ::::::: ::::::: ::::::: :::::::: ::::::: : 22 c Copyright 1989, 1992, 1993 by Kermit Sigmon iii ii 1. Accessing MATLAB. Listing entries of a large matrix is b est done in an ASCI I le with your lo cal editor, where errors can b e easily corrected see sections 12 and 14. The le should consist of a On most systems, after logging in one can enter MATLAB with the system command rectangular array of just the numeric matrix entries. If this le is named, say, data.ext matlab and exit MATLAB with the MATLAB command quit or exit. However, your where .ext is any extension, the MATLAB command load data.ext will read this le lo cal installation may p ermit MATLAB to b e accessed from a menuorby clicking an icon. to the variable data in your MATLAB workspace. This may also b e done with a script le On systems p ermitting multiple pro cesses, such as a Unix system or MS Windows, see section 12. you will nd it convenient, for reasons discussed in section 14, to keep b oth MATLAB The built-in functions rand, magic, and hilb, for example, provide an easy wayto and your lo cal editor active. If you are working on a platform which runs pro cesses in create matrices with which to exp eriment. The command randn will create an n n multiple windows, you will wanttokeep MATLAB active in one window and your lo cal matrix with randomly generated entries distributed uniformly b etween 0 and 1, while editor active in another. randm,n will create an m n one. magicn will create an integral n n matrix which You should consult your instructor or your lo cal computer center for details of the lo cal is a magic square rows, columns, and diagonals have common sum; hilbn will create installation. the n n Hilb ert matrix, the king of ill-conditioned matrices m and n denote, of course, p ositiveintegers. Matrices can also b e generated with a for-lo op see section 6 b elow. 2. Entering matrices. Individual matrix and vector entries can b e referenced with indices inside parentheses MATLAB works with essentially only one kind of ob ject|a rectangular numerical in the usual manner. For example, A2; 3 denotes the entry in the second row, third matrix with p ossibly complex entries; all variables represent matrices. In some situations, column of matrix A and x3 denotes the third co ordinate of vector x.Try it. A matrix 1-by-1 matrices are interpreted as scalars and matrices with only one row or one column or a vector will only accept positive integers as indices. are interpreted as vectors. Matrices can b e intro duced into MATLAB in several di erentways: 3. Matrix op erations, array op erations. The following matrix op erations are available in MATLAB: Entered by an explicit list of elements, Generated by built-in statements and functions, + addition Created in a disk le with your lo cal editor, subtraction multiplication Loaded from external data les or applications see the User's Guide. b power For example, either of the statements 0 conjugate transp ose A =[12 3;456;789] n left division / right division and A=[ These matrix op erations apply, of course, to scalars 1-by-1 matrices as well. If the sizes 123 of the matrices are incompatible for the matrix op eration, an error message will result, 456 except in the case of scalar-matrix op erations for addition, subtraction, and division as 7 89] well as for multiplication in which case eachentry of the matrix is op erated on by the creates the obvious 3-by-3 matrix and assigns it to a variable A. Try it. The elements scalar. within a row of a matrix may b e separated by commas as well as a blank. When listing a The \matrix division" op erations deserve sp ecial comment. If A is an invertible square numb er in exp onential form e.g. 2.34e-9, blank spaces must b e avoided.
Recommended publications
  • Extremely Accurate Solutions Using Block Decomposition and Extended Precision for Solving Very Ill-Conditioned Equations
    Extremely accurate solutions using block decomposition and extended precision for solving very ill-conditioned equations †Kansa, E.J.1, Skala V.2, and Holoborodko, P.3 1Convergent Solutions, Livermore, CA 94550 USA 2Computer Science & Engineering Dept., Faculty of Applied Sciences, University of West Bohemia, University 8, CZ 301 00 Plzen, Czech Republic 3Advanpix LLC, Maison Takashima Bldg. 2F, Daimachi 10-15-201, Yokohama, Japan 221-0834 †Corresponding author: [email protected] Abstract Many authors have complained about the ill-conditioning associated the numerical solution of partial differential equations (PDEs) and integral equations (IEs) using as the continuously differentiable Gaussian and multiquadric continuously differentiable (C ) radial basis functions (RBFs). Unlike finite elements, finite difference, or finite volume methods that lave compact local support that give rise to sparse equations, the C -RBFs with simple collocation methods give rise to full, asymmetric systems of equations. Since C RBFs have adjustable constent or variable shape parameters, the resulting systems of equations that are solve on single or double precision computers can suffer from “ill-conditioning”. Condition numbers can be either the absolute or relative condition number, but in the context of linear equations, the absolute condition number will be understood. Results will be presented that demonstrates the combination of Block Gaussian elimination, arbitrary arithmetic precision, and iterative refinement can give remarkably accurate numerical salutations to large Hilbert and van der Monde equation systems. 1. Introduction An accurate definition of the condition number, , of the matrix, A, is the ratio of the largest to smallest absolute value of the singular values, { i}, obtained from the singular value decomposition (SVD) method, see [1]: (A) = maxjjminjj (1) This definition of condition number will be used in this study.
    [Show full text]
  • A Study of Convergence of the PMARC Matrices Applicable to WICS Calculations
    A Study of Convergence of the PMARC Matrices applicable to WICS Calculations /- by Amitabha Ghosh Department of Mechanical Engineering Rochester Institute of Technology Rochester, NY 14623 Final Report NASA Cooperative Agreement No: NCC 2-937 Presented to NASA Ames Research Center Moffett Field, CA 94035 August 31, 1997 Table of Contents Abstract ............................................ 3 Introduction .......................................... 3 Solution of Linear Systems ................................... 4 Direct Solvers .......................................... 5 Gaussian Elimination: .................................. 5 Gauss-Jordan Elimination: ................................ 5 L-U Decompostion: ................................... 6 Iterative Solvers ........................................ 6 Jacobi Method: ..................................... 7 Gauss-Seidel Method: .............................. .... 7 Successive Over-relaxation Method: .......................... 8 Conjugate Gradient Method: .............................. 9 Recent Developments: ......................... ....... 9 Computational Efficiency .................................... 10 Graphical Interpretation of Residual Correction Schemes .................... 11 Defective Matrices ............................. , ......... 15 Results and Discussion ............ ......................... 16 Concluding Remarks ...................................... 19 Acknowledgements ....................................... 19 References ..........................................
    [Show full text]
  • Applied Linear Algebra
    APPLIED LINEAR ALGEBRA Giorgio Picci November 24, 2015 1 Contents 1 LINEAR VECTOR SPACES AND LINEAR MAPS 10 1.1 Linear Maps and Matrices . 11 1.2 Inverse of a Linear Map . 12 1.3 Inner products and norms . 13 1.4 Inner products in coordinate spaces (1) . 14 1.5 Inner products in coordinate spaces (2) . 15 1.6 Adjoints. 16 1.7 Subspaces . 18 1.8 Image and kernel of a linear map . 19 1.9 Invariant subspaces in Rn ........................... 22 1.10 Invariant subspaces and block-diagonalization . 23 2 1.11 Eigenvalues and Eigenvectors . 24 2 SYMMETRIC MATRICES 25 2.1 Generalizations: Normal, Hermitian and Unitary matrices . 26 2.2 Change of Basis . 27 2.3 Similarity . 29 2.4 Similarity again . 30 2.5 Problems . 31 2.6 Skew-Hermitian matrices (1) . 32 2.7 Skew-Symmetric matrices (2) . 33 2.8 Square roots of positive semidefinite matrices . 36 2.9 Projections in Rn ............................... 38 2.10 Projections on general inner product spaces . 40 3 2.11 Gramians. 41 2.12 Example: Polynomial vector spaces . 42 3 LINEAR LEAST SQUARES PROBLEMS 43 3.1 Weighted Least Squares . 44 3.2 Solution by the Orthogonality Principle . 46 3.3 Matrix least-Squares Problems . 48 3.4 A problem from subspace identification . 50 3.5 Relation with Left- and Right- Inverses . 51 3.6 The Pseudoinverse . 54 3.7 The Euclidean pseudoinverse . 63 3.8 The Pseudoinverse and Orthogonal Projections . 64 3.9 Linear equations . 66 4 3.10 Unfeasible linear equations and Least Squares . 68 3.11 The Singular value decomposition (SVD) .
    [Show full text]
  • Matrix Computations
    Chapter 5 Matrix Computations §5.1 Setting Up Matrix Problems §5.2 Matrix Operations §5.3 Once Again, Setting Up Matrix Problems §5.4 Recursive Matrix Operations §5.5 Distributed Memory Matrix Multiplication The next item on our agenda is the linear equation problem Ax = b. However, before we get into algorithmic details, it is important to study two simpler calculations: matrix-vector mul- tiplication and matrix-matrix multiplication. Both operations are supported in Matlab so in that sense there is “nothing to do.” However, there is much to learn by studying how these com- putations can be implemented. Matrix-vector multiplications arise during the course of solving Ax = b problems. Moreover, it is good to uplift our ability to think at the matrix-vector level before embarking on a presentation of Ax = b solvers. The act of setting up a matrix problem also deserves attention. Often, the amount of work that is required to initialize an n-by-n matrix is as much as the work required to solve for x. We pay particular attention to the common setting when each matrix entry aij is an evaluation of a continuous function f(x, y). A theme throughout this chapter is the exploitation of structure. It is frequently the case that there is a pattern among the entries in A which can be used to reduce the amount of work. The fast Fourier transform and the fast Strassen matrix multiply algorithm are presented as examples of recursion in the matrix computations. The organization of matrix-matrix multiplication on a ring of processors is also studied and gives us a nice snapshot of what algorithm development is like in a distributed memory environment.
    [Show full text]
  • Contributions of Issai Schur to Analysis
    Contributions of Issai Schur to Analysis Harry Dym and Victor Katsnelson∗ November 1, 2018 The name Schur is associated with many terms and concepts that are widely used in a number of diverse fields of mathematics and engineering. This survey article focuses on Schur’s work in analysis. Here too, Schur’s name is commonplace: The Schur test and Schur-Hadamard multipliers (in the study of estimates for Hermitian forms), Schur convexity, Schur complements, Schur’s results in summation theory for sequences (in particular, the fundamental Kojima-Schur theorem), the Schur-Cohn test, the Schur al- gorithm, Schur parameters and the Schur interpolation problem for functions that are holomorphic and bounded by one in the unit disk. In this survey, we shall discuss all of the above mentioned topics and then some, as well as some of the generalizations that they inspired. There are nine sections of text, each of which is devoted to a separate theme based on Schur’s work. Each of these sections has an independent bibliography. There is very little overlap. A tenth section presents a list of the papers of Schur that focus on topics that are commonly considered to be analysis. We shall begin with a review of Schur’s less familiar papers on the theory of commuting differential operators. Acknowledgement: The authors extend their thanks to Bernd Kirstein for carefully reading the manuscript and spotting a number of misprints. 1 . Permutable differential operators and fractional powers of differential operators. Let arXiv:0706.1868v1 [math.CA] 13 Jun 2007 dny dn−1y P (y)= p (x) + p (x) + + p (x)y (1.1) n dxn n−1 dxn−1 ··· 0 and dmy dm−1y Q(y)= q (x) + q (x) + + q (x)y, (1.2) m dxm m−1 dxm−1 ··· 0 ∗HD thanks Renee and Jay Weiss and VK thanks Ruth and Sylvia Shogam for endowing the chairs that support their respective research.
    [Show full text]
  • Package 'Matrixcalc'
    Package ‘matrixcalc’ July 28, 2021 Version 1.0-5 Date 2021-07-27 Title Collection of Functions for Matrix Calculations Author Frederick Novomestky <[email protected]> Maintainer S. Thomas Kelly <[email protected]> Depends R (>= 2.0.1) Description A collection of functions to support matrix calculations for probability, econometric and numerical analysis. There are additional functions that are comparable to APL functions which are useful for actuarial models such as pension mathematics. This package is used for teaching and research purposes at the Department of Finance and Risk Engineering, New York University, Polytechnic Institute, Brooklyn, NY 11201. Horn, R.A. (1990) Matrix Analysis. ISBN 978-0521386326. Lancaster, P. (1969) Theory of Matrices. ISBN 978-0124355507. Lay, D.C. (1995) Linear Algebra: And Its Applications. ISBN 978-0201845563. License GPL (>= 2) Repository CRAN Date/Publication 2021-07-28 08:00:02 UTC NeedsCompilation no R topics documented: commutation.matrix . .3 creation.matrix . .4 D.matrix . .5 direct.prod . .6 direct.sum . .7 duplication.matrix . .8 E.matrices . .9 elimination.matrix . 10 entrywise.norm . 11 1 2 R topics documented: fibonacci.matrix . 12 frobenius.matrix . 13 frobenius.norm . 14 frobenius.prod . 15 H.matrices . 17 hadamard.prod . 18 hankel.matrix . 19 hilbert.matrix . 20 hilbert.schmidt.norm . 21 inf.norm . 22 is.diagonal.matrix . 23 is.idempotent.matrix . 24 is.indefinite . 25 is.negative.definite . 26 is.negative.semi.definite . 28 is.non.singular.matrix . 29 is.positive.definite . 31 is.positive.semi.definite . 32 is.singular.matrix . 34 is.skew.symmetric.matrix . 35 is.square.matrix . 36 is.symmetric.matrix .
    [Show full text]
  • Math 448/548 Cpt S 430/530 Assignment 2 Due February 9 1. Let
    Math 448/548 Cpt S 430/530 Assignment 2 due February 9 1. Let A be a real n × n matrix. n (a) Let x 2 R and y = Ax. Show that for i = 1, . , n, yi (the ith component of y) satisfies n ! X jyi j ≤ jaij j kxk1: j=1 (b) Deduce that n ! X ky k ≤ max jaij j kxk 1 i 1 j=1 and n kAxk1 X max ≤ max jaij j: (1) x6=0 kxk i 1 j=1 (c) Show that equality holds in (1) by exhibiting an x for which n kAxk1 X = max jaij j: kxk i 1 j=1 (Hint: Choose an x whose entries are all ±1, with the signs care- fully chosen.) n ! X (d) Deduce that kAk = max jaij j 1 i j=1 2. Let 2 1 2 3 3 A = 4 4 5 6 5 : 7 8 9 (a) Prove by hand computation that A is singular. For example, you can show that the rows of A are linearly dependent. (b) Demonstrate that MATLAB, which uses floating-point arithmetic, does not notice that A is singular (although it does suspect that something is wrong). Use MATLAB commands like inv (inverse) and cond (condition number). 3. The Hilbert matrices are the most famous family of ill-conditioned ma- trices. The (i; j) entry of the n×n Hilbert matrix is hij = 1=(i+j −1). Using MATLAB, do the following for n = 4, 8, and 12. Generate the n×n Hilbert matrix. (MATLAB has a convenient command hilb that generates a Hilbert matrix.) Let z denote the vector of all ones, and let b = Az, where A is the Hilbert matrix.
    [Show full text]
  • Math 240 Summer 2019 Notes
    Math 240 Summer 2019 Notes Yao-Rui Lecture notes might contain typos. Contents 1 Lecture 1 { Introduction 4 1.1 Brief Overview of the Course . 4 1.2 Separable ODEs . 6 1.3 First Order Linear ODEs . 7 1.4 Bernoulli ODEs . 8 1.5 Ricatti ODEs . 8 1.6 Reduction of Order . 9 2 Lecture 2 { Matrices 10 2.1 Row Echelon Form . 10 2.2 Determinants and Invertible Matrices . 11 2.3 More Determinant Facts . 13 3 Lecture 3 { Linear Maps 15 3.1 Basis . 15 3.2 Matrix Representation of Linear Maps . 15 3.3 Change of Basis . 17 3.4 Subspaces and the Rank-Nullity Theorem . 18 3.5 An Overview of Abstract Vector Spaces . 19 4 Lecture 4 { Eigenvalues and Eigenvectors 21 4.1 Eigenvalues and Eigenvectors . 21 4.2 The Cayley-Hamilton Theorem . 24 5 Lecture 5 { Matrix Exponentials 26 5.1 Definition and Example Computations . 26 5.2 Analytic Function on Matrices . 28 5.3 Nilpotent Matrices and Exponentiation . 29 6 Lecture 6 { First Order Constant Linear ODEs Part 1 30 6.1 The General Solution . 30 6.2 Examples on Diagonalizable Matrices . 30 6.3 Duhamel's Formula . 31 7 Lecture 7 { First Order Constant Linear ODEs Part 2 33 7.1 Generalized Eigenvectors . 33 7.2 The Jordan Canonical Form for Nilpotent Matrices . 35 7.3 The Jordan Canonical Form in General . 36 1 8 Lecture 8 { First Order Constant Linear ODEs Part 3 42 8.1 An Application of Invariant Subspaces . 42 8.2 Buchheim's Algorithm and Some Formulas for Exponentiating Matrices .
    [Show full text]
  • Arxiv:Math/9905079V1 [Math.RA] 12 May 1999 Ento 1.1
    THE FILBERT MATRIX THOMAS M. RICHARDSON DEPARTMENT OF MATHEMATICS AND STATISTICS WESTERN MICHIGAN UNIVERSITY KALAMAZOO, MI 49008 Abstract. A Filbert matrix is a matrix whose (i, j) entry is 1/Fi+j−1, where th Fn is the n Fibonacci number. The inverse of the n × n Filbert matrix resembles the inverse of the n × n Hilbert matrix, and we prove that it shares the property of having integer entries. We prove that the matrix formed by replacing the Fibonacci numbers with the Fibonacci polynomials has entries which are integer polynomials. We also prove that certain Hankel matrices of reciprocals of binomial coefficients have integer entries, and we conjecture that the corresponding matrices based on Fibonomial coefficients have integer entries. Our method is to give explicit formulae for the inverses. 1. Introduction 1 The n × n Hilbert matrix is the n × n matrix whose (i, j)-entry is i+j−1 . In [2], Man-Duen Choi explores many fascinating properties of the Hilbert matrix, including the fact the the (i, j)-entry of its inverse is n + i − 1 n + j − 1 i + j − 2 2 α = (−1)i+j (i + j − 1) . (1) ij n − j n − i i − 1 Choi asks what sort of coincidence it is if the inverse of a matrix of reciprocals of integers has integer entries. In this paper we show that the inverses of the Hankel matrices based on the reciprocals of the Fibonacci numbers, the reciprocals of the i+j i+j+2 binomial coefficients 2 , and the reciprocals of the binomial coeffiencts 3 all have integer entries.
    [Show full text]
  • Complexity of Computations with Matrices and Polynomials
    Complexity of Computations with Matrices and Polynomials Victor Pan Department of Computer Science, Columbia University, New York, NY 10027 Computer Science Department State University of New York at Albany Albany, New York 12222 and Mathematics and Computer Science Department Lehman College, CUNY Bronx, NY 10468 CUCS-031-90 Summary. We review the complexity of polynomial and matrix computations, as well as their various correlations to each other and some major techniques for the design of algebraic and numerical algo- rithms. 0. Introduction. Polynomial and matrix computations are highly important classical subjects. They have been thoroughly revised during the last decades due to the development of computer technology, whose latest notable progress was the advent of parallel computers. The current polynomial and matrix algorithms perform far better than their classical predecessors, and one of our major objectives is to review the computational cost of such modern algorithms, together with other aspects of their design and analysis, including their various correlations to each other and to the algorithms for other algebraic and numerical computations. In this review we will present some highlights of computations with univariate polynomials and matrices over the complex, real or rational fields; some further treatment can be found in [BP,a] (which is the most updated coverage) and, to some extent, in the earlier books [AHU], [BM] and (for polyno- - 2 - mial computations) [Kn]. Many of the techniques and the algorithms that we review can be extended to computations over finite fields too (see [BP,a]). Reviewing matrix computations, we will avoid overlaps with the excellent presentations in such books as [Wilk], [GL] and [GeLi] by focusing on distinct but still important issues, in particular, on the complexity of general matrix computations, on some very recent algorithms, on the complexity of computations with dense structured matrices and on their correlations to polynomial computations.
    [Show full text]
  • A Remark on Hilbert's Matrix* F. Albert0 Griinbaum Mathematics
    A Remark on Hilbert’s Matrix* F. Albert0 Griinbaum Mathematics Department University of California at Berkeley Berkeley, California 94720 Sulmlittetl by Richard .4. Brualdi ABSTRACT We exhibit a Jacobi matrix T which has simple spectrum and integer entries, and commutes with Hilbert’s matrix. As an application we replace the computation of the eigenvectors of Hilbert’s matrix (a very ill-conditioned problem) by the computation of the eigenvectors of T (a nicely stable numerical problem). 1. INTRODUCTION The purpose of this note is to exhibit a tridiagonal matrix T,(B) with integer coefficients which commutes with Hilbert’s matrix (H,(8))ii=(i+i+fl)-‘, lGi,jGn. The matrix T,(O) has a simple spectrum, and thus its eigenvectors are eigenvectors of the Hilbert matrix. In the same vein, H,(B) can be written as a polynomial in T,,(B). Both of these points are taken up below. The class of Hankel matrices, i.e. those satisfying that have a tridiagonal matrix-with simple spectrum-in their commutator is very limited, and thus the result reported here is quite surprising. The situation resembles that of Toeplitz matrices, among which a complete description of those with a tridiagonal matrix in their commutator has been given in [2]. *Suppor&l by NSF Grant MCS 78-06718. LINEAR ALGEBRA AND ITS APPLICATIONS 43: 119- 124 (1982) 119 G ElsevierScience PublishingCo., Inc., 1982 52 Vanderbilt Ave., New York, NY 10017 0024379.5/82/020119 + 6$02.75 120 F. ALBERT0 GRiiNBAUM As a general reference on the Hilbert matrix one can consult [3] and the references mentioned there.
    [Show full text]
  • Numerical Matrix Analysis
    Copyright ©2009 by the Society for Industrial and Applied Mathematics This electronic version is for personal use and may not be duplicated or distributed. Numerical Matrix Analysis Mathematics Applied and Industrial for Society Buy this book from SIAM at www.ec-securehost.com/SIAM/OT113.html Copyright ©2009 by the Society for Industrial and Applied Mathematics This electronic version is for personal use and may not be duplicated or distributed. Mathematics Applied and Industrial for Society Buy this book from SIAM at www.ec-securehost.com/SIAM/OT113.html Copyright ©2009 by the Society for Industrial and Applied Mathematics This electronic version is for personal use and may not be duplicated or distributed. Numerical Matrix Analysis Linear Systems and LeastMathematics Squares Applied Ilse C. F. Ipsenand North Carolina State University Raleigh, NorthIndustrial Carolina for Society Society for Industrial and Applied Mathematics Philadelphia Buy this book from SIAM at www.ec-securehost.com/SIAM/OT113.html Copyright ©2009 by the Society for Industrial and Applied Mathematics This electronic version is for personal use and may not be duplicated or distributed. Copyright © 2009 by the Society for Industrial and Applied Mathematics 10 9 8 7 6 5 4 3 2 1 All rights reserved. Printed in the United States of America. No part of this book may be reproduced, stored, or transmitted in any manner without the writtenMathematics permission of the publisher. For information, write to the Society for Industrial and Applied Mathematics, 3600 Market Street, 6th Floor, Philadelphia, PA, 19104-2688 USA. Trademarked names may be used in this book withoutApplied the inclusion of a trademark symbol.
    [Show full text]