Download Numerical Methods Using Kotlin: For Data Science, Analysis, and Engineering 1st Edition Haksun Li ebook now - free full chapters
Download Numerical Methods Using Kotlin: For Data Science, Analysis, and Engineering 1st Edition Haksun Li ebook now - free full chapters
com
https://ebookmeta.com/product/numerical-methods-using-
kotlin-for-data-science-analysis-and-engineering-1st-
edition-haksun-li-2/
OR CLICK HERE
DOWLOAD NOW
https://ebookmeta.com/product/numerical-methods-using-kotlin-for-data-
science-analysis-and-engineering-1st-edition-haksun-li/
ebookmeta.com
https://ebookmeta.com/product/numerical-methods-using-java-for-data-
science-analysis-and-engineering-haksun-li/
ebookmeta.com
https://ebookmeta.com/product/computational-methods-and-data-analysis-
for-metabolomics-shuzhao-li/
ebookmeta.com
https://ebookmeta.com/product/laboratory-manual-for-biotechnology-and-
laboratory-science-the-basics-2nd-edition-lisa-a-seidman/
ebookmeta.com
https://ebookmeta.com/product/danzig-a-novel-of-political-intrigue-
william-n-walker/
ebookmeta.com
The Secular Liturgical Office in Late Medieval England 1st
Edition Matthew Cheung Salisbury
https://ebookmeta.com/product/the-secular-liturgical-office-in-late-
medieval-england-1st-edition-matthew-cheung-salisbury/
ebookmeta.com
Haksun Li, PhD
This work is subject to copyright. All rights are solely and exclusively
licensed by the Publisher, whether the whole or part of the material is
concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in
any other physical way, and transmission or information storage and
retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed.
The publisher, the authors, and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
Source Code
All source code used in this book can be downloaded from
github.com/apress/numerical-methods-kotlin.
Any source code or other supplementary material referenced by the
author in this book is available to readers on GitHub
(github.com/apress). For more detailed information, please visit
www.apress.com/source-code.
Acknowledgments
I never knew that writing a book would be such a tremendous effort,
especially for this book with such wide coverage. It started out as a one-
year project and then was extended to become an almost two-year
project. For eight months in 2021, I basically did nothing other than
write this book, pretty much every day. What would be a better thing to
do during the indefinite COVID-19 lockdown?
This book covers a lot of topics in basic college applied
mathematics, supplemented with a lot of sample code and more than
300 images for illustration. It was a tremendous effort to put the
materials together. I want to thank my team for their incredible support
throughout the writing of this manuscript. They are amazing and this
book would not have happened without them: Kehao Feng, Jingqi Guo,
Shihao Liu, Yang Lu, Hengyu Luo, and Dr. Xueying Ni.
Although we have never met in person, I thank Steve Anglin for
inviting me to write this book, something that I have wanted to do for a
long time but never found sufficient motivation to do. I thank you Mark
Wickham for carefully reviewing my book and making a lot of good
comments and suggestions. Last but not least, I must thank Mark
Powers for pushing me to submit the manuscript. He provided a huge
push for me to sit down at my computer and start typing and meet the
always-missed-and-always-late deadlines. I thank you all for your
patience!
Table of Contents
Chapter 1:Introduction to Numerical Methods in Kotlin/S2
1.1.Library Design
1.1.1.Class Parsimony
1.1.2.Java vs C++ Performance
1.2.Java Scripting
1.2.1.Kotlin Programming Language
1.3.S2
1.3.1.R Replacement
1.3.2.Python Replacement
1.3.3.S2 Online IDE
1.4.About This Book
1.4.1.Sample Code
Chapter 2:Linear Algebra
2.1.Vector
2.1.1.Element-Wise Operations
2.1.2.Norm
2.1.3.Inner Product and Angle
2.2.Matrix
2.2.1.Matrix Operations
2.2.2.Element-Wise Operations
2.2.3.Transpose
2.2.4.Matrix Multiplication
2.2.5.Rank
2.2.6.Determinant
2.2.7.Inverse and Pseudo-Inverse
2.2.8.Kronecker Product
2.3.Matrix Decomposition
2.3.1.LU Decomposition
2.3.2.Cholesky Decomposition
2.3.3.Hessenberg Decomposition and Tridiagonalization
2.3.4.QR Decomposition
2.3.5.Eigen Decomposition
2.3.6.Singular Value Decomposition
2.4.System of Linear Equations
2.4.1.Row Echelon Form and Reduced Row Echelon Form
2.4.2.Back Substitution
2.4.3.Forward Substitution
2.4.4.Elementary Operations
2.4.5.Gauss Elimination and Gauss-Jordan Elimination
2.4.6.Homogeneous and Nonhomogeneous Systems
2.4.7.Overdetermined Linear System
2.5.Sparse Matrix
2.5.1.Dictionary of Keys
2.5.2.List of Lists
2.5.3.Compressed Sparse Row
2.5.4.Sparse Matrix/Vector Operations
2.5.5.Solving Sparse Matrix Equations
Chapter 3:Finding Roots of Equations
3.1.An Equation of One Variable
3.2.Jenkins-Traub Algorithm
3.3.The Bisection Method
3.4.Brent’s Method
3.4.1.Linear Interpolation Method, False Position Method,
Secant Method
3.4.2.Inverse Quadratic Interpolation
3.4.3.Brent’s Method Implementation
3.5.The Newton-Raphson Method
3.5.1.Halley’s Method
Chapter 4:Finding Roots of System of Equations
4.1.System of Equations
4.2.Finding Roots of Systems of Two Nonlinear Equations
4.3.Finding Roots of Systems of Three or More Equations
Chapter 5:Curve Fitting and Interpolation
5.1.Least Squares Curve Fitting
5.2.Interpolation
5.2.1.Linear Interpolation
5.2.2.Cubic Hermite Spline Interpolation
5.2.3.Cubic Spline Interpolation
5.2.4.Newton Polynomial Interpolation
5.3.Multivariate Interpolation
5.3.1.Bivariate Interpolation
5.3.2.Multivariate Interpolation
Chapter 6:Numerical Differentiation and Integration
6.1.Numerical Differentiation
6.2.Finite Difference
6.2.1.Forward Difference
6.2.2.Backward Difference
6.2.3.Central Difference
6.2.4.Higher-Order Derivatives
6.3.Multivariate Finite Difference
6.3.1.Gradient
6.3.2.Jacobian
6.3.3.Hessian
6.4.Ridders’ Method
6.5.Derivative Functions of Special Functions
6.5.1.Gaussian Derivative Function
6.5.2.Error Derivative Function
6.5.3.Beta Derivative Function
6.5.4.Regularized Incomplete Beta Derivative Function
6.5.5.Gamma Derivative Function
6.5.6.Polynomial Derivative Function
6.6.Numerical Integration
6.7.The Newton-Cotes Family
6.7.1.The Trapezoidal Quadrature Formula
6.7.2.The Simpson Quadrature Formula
6.7.3.The Newton-Cotes Quadrature Formulas
6.8.Romberg Integration
6.9.Gauss Quadrature
6.9.1.Gauss-Legendre Quadrature Formula
6.9.2.Gauss-Laguerre Quadrature Formula
6.9.3.Gauss-Hermite Quadrature Formula
6.9.4.Gauss-Chebyshev Quadrature Formula
6.10.Integration by Substitution
6.10.1.Standard Interval
6.10.2.Inverting Variable
6.10.3.Exponential
6.10.4.Mixed Rule
6.10.5.Double Exponential
6.10.6.Double Exponential for Real Line
6.10.7.Double Exponential for Half Real Line
6.10.8.Power Law Singularity
Chapter 7:Ordinary Differential Equations
7.1.Single-Step Method
7.1.1.Euler’s Method (Polygon Method)
7.1.2.Runge-Kutta Family
7.1.3.Convergence
7.1.4.Stability
7.2.Linear Multistep Method
7.2.1.Adams-Bashforth Method
7.3.Comparison of Different Methods
7.4.System of ODEs and Higher-Order ODEs
Chapter 8:Partial Differential Equations
8.1.Second-Order Linear PDE
8.1.1.Parabolic Equation
8.1.2.Hyperbolic Equation
8.1.3.Elliptic Equation
8.2.Finite Difference Method
8.2.1.Numerical Solution for Hyperbolic Equation
8.2.2.Numerical Solution for Elliptic Equation
Another Random Document on
Scribd Without Any Related Topics
*** END OF THE PROJECT GUTENBERG EBOOK THE TIME
SPIRIT: A ROMANTIC TALE ***
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must, at
no additional cost, fee or expense to the user, provide a copy, a
means of exporting a copy, or a means of obtaining a copy upon
request, of the work in its original “Plain Vanilla ASCII” or other
form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.