Applied Numerical Methods Using MATLAB - 2005 - Yang
Applied Numerical Methods Using MATLAB - 2005 - Yang
Wenwu Cao
John Morris
APPLIED NUMERICAL
METHODS USING
MATLAB
10.1002/0471705195.fmatter, Downloaded from https://onlinelibrary.wiley.com/doi/10.1002/0471705195.fmatter by Central Library, Wiley Online Library on [09/08/2023]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Questions about the contents of this book can be mailed to [email protected].
MATLAB and Simulink are trademarks of the The MathWorks, Inc. and are used with
permission. The MathWorks does not warrant the accuracy of the text or exercises in this book.
This book’s use or discussion of MATLAB and Simulink software or related products does not
constitute endorsement or sponsorship by The MathWorks of a particular pedagogical approach or
particular use of the MATLAB and Simulink software.
Copyright 2005 by John Wiley & Sons, Inc. All rights reserved.
Published by John Wiley & Sons, Inc., Hoboken, New Jersey.
Published simultaneously in Canada.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any
form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise,
except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without
either the prior written permission of the Publisher, or authorization through payment of the
appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers,
MA 01923, 978-750-8400, fax 978-646-8600, or on the web at www.copyright.com. Requests to
the Publisher for permission should be addressed to the Permissions Department, John Wiley &
Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008.
Limit of Liability/Disclaimer of Warranty: While the publisher and authors have used their best
efforts in preparing this book, they make no representations or warranties with respect to the
accuracy or completeness of the contents of this book and specifically disclaim any implied
warranties of merchantability or fitness for a particular purpose. No warranty may be created or
extended by sales representatives or written sales materials. The advice and strategies contained
herein may not be suitable for your situation. You should consult with a professional where
appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other
commercial damages, including but not limited to special, incidental, consequential, or other
damages.
For general information on our other products and services please contact our Customer Care
Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993 or
fax 317-572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in
print, however, may not be available in electronic format.
Library of Congress Cataloging-in-Publication Data
Yang, Won-young, 1953–
Applied numerical methods using MATLAB / Won Y. Yang, Wenwu Cao, Tae S.
Chung, John Morris.
p. cm.
Includes bibliographical references and index.
ISBN 0-471-69833-4 (cloth)
1. Numerical analysis–Data processing. 2. MATLAB. I. Cao, Wenwu. II.
Chung, Tae-sang, 1952– III. Title.
QA297.Y36 2005
518–dc22
2004013108
Preface xiii
vii
10.1002/0471705195.fmatter, Downloaded from https://onlinelibrary.wiley.com/doi/10.1002/0471705195.fmatter by Central Library, Wiley Online Library on [09/08/2023]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
viii CONTENTS
7 Optimization 321
References 497
This book introduces applied numerical methods for engineering and science
students in sophomore to senior levels; it targets the students of today who do
not like or do not have time to derive and prove mathematical results. It can
also serve as a reference to MATLAB applications for professional engineers
and scientists, since many of the MATLAB codes presented after introducing
each algorithm’s basic ideas can easily be modified to solve similar problems
even by those who do not know what is going on inside the MATLAB routines
and the algorithms they use. Just as most drivers only have to know where to
go and how to drive a car to get to their destinations, most users only have to
know how to define the problems they want to solve using MATLAB and how
to use the corresponding routines to solve their problems. We never deny that
detailed knowledge about the algorithm (engine) of the program (car) is helpful
for getting safely to the solution (destination); we only imply that one-time users
of any MATLAB program or routine may use this book as well as the students
who want to understand the underlying principle of each algorithm.
In this book, we focus on understanding the fundamental mathematical con-
cepts and mastering problem-solving skills using numerical methods with the
help of MATLAB and skip some tedious derivations. Obviously, basic con-
cepts must be taught so that students can properly formulate the mathematics
problems. Afterwards, students can directly use the MATLAB codes to solve
practical problems. Almost every algorithm introduced in this book is followed
by example MATLAB code with a friendly interface so that students can easily
modify the code to solve real life problems. The selection of exercises fol-
lows the some philosophy of making the learning easy and practical. Students
should be able to solve similar problems immediately after taking the class using
the MATLAB codes we provide. For most students—and particularly nonmath
majors—understanding how to use numerical tools correctly in solving their
problems of interest is more important than studying lengthy proofs and deriva-
tions.
MATLAB is one of the most developed software packages available today.
It provides many numerical methods and it is very easy to use, even for people
without prior programming experience. We have supplemented MATLAB’s built-
in functions with more than 100 small MATLAB routines. Readers should find
xiii
10.1002/0471705195.fmatter, Downloaded from https://onlinelibrary.wiley.com/doi/10.1002/0471705195.fmatter by Central Library, Wiley Online Library on [09/08/2023]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
xiv PREFACE
these routines handy and useful. Some of these routines give better results for
some problems than the built-in functions. Students are encouraged to develop
their own routines following the examples.
The knowledge in this book is derived from the work of many eminent sci-
entists, scholars, researchers, and MATLAB developers, all of whom we thank.
We thank our colleagues, students, relatives, and friends for their support and
encouragement. We thank the reviewers, whose comments were so helpful in
tuning this book. We especially thank Senior Researcher Yong-Suk Park for his
invaluable help in correction. We thank the editorial and production staff of John
Wiley & Sons, Inc. including Editor Val Moliere and Production Editor Lisa
VanHorn for their kind, efficient, and encouraging guide.