Package com.imsl.test.example.math
package com.imsl.test.example.math
Math examples.
-
ClassesClassDescriptionEvaluates the Bessel functions I, J, and K.Solves a nonlinear least squares problem subject to bounds.Solves a nonlinear least squares problem subject to bounds with a supplied Jacobian and initial guess.Solves a linear least squares problem with bounds on the variables.Fits a B-spline to data.Fits a least squares B-spline to data.Solves a system using Cholesky factorization.Computes the eigenvalues and eigenvectors of a complex matrix.Converts a real matrix to a complex matrix.Finds the Fourier coefficients of a complex sequence.Computes the LU factorization of a complex matrix.Initializes and prints a complex matrix.Uses the Cholesky factorization of a complex sparse matrix to solve a linear system.Performs operations on a sparse complex matrix.Computes the LU factorization of a sparse complex matrix.Computes the SVD factorization of a complex matrix.Solves a positive definite linear system using the conjugate gradient method.Solves a sparse linear system using the conjugate gradient method with preconditioning.Computes the Akima cubic spline.Computes a cubic spline.Computes a cubic spline interpolant with periodic boundary conditions.Computes a shape preserving cubic spline.Computes a smooth cubic spline on noisy data.Computes a smooth cubic spline on noisy data using an "optimized" smoothing parameter value.Computes the Kochanek-Bartels cubic spline.Solves a linear programming problem.Solves a linear programming problem.Solves a linear programming problem in \(5\) variables.Computes the eigenvalues and eigenvectors of a matrix.Accelerates a series of partial sums using the Epsilon algorithm.Compares American vs European options on a vanilla put.Applies a diffusion model for options pricing.Evaluates the price of a European option with two payoff strategies.Evaluates the price of a convertible bond.Solves for the "Greeks" of mathematical finance.Computes the Fourier coefficients of a periodic sequence.Solves a small linear system with the Generalized Minimum Residual (GMRES) method.Solves a small linear system with user supplied inner product.Solves a small linear system stored in sparse form.Solves a small linear system stored in sparse form with preconditioning.Solves the Poisson equation using the second Householder implementation.Solves the Poisson equation using the second Householder implementation and preconditioning.Solves a small linear system with logging.Evaluates the hyperbolic functions.Evaluates a multi-dimensional integral.Deprecated.Deprecated.
LinearProgrammingclass has been deprecated.Performs the LU factorization of a matrix.Calculates the 1-norm of a simple matrix.Solves a general minimization problem with constraints.Minimizes a nonlinear function with constraints.Solves a nonlinear programming problem using a finite difference gradient.MinConNLP Example 2: Solves a general nonlinear programming problem with a user supplied gradient.MinConNLP Example 3: Solves a general nonlinear programming problem using a finite difference gradient.MinUncon Example 1: Minimizes a single variable function.MinUncon Example 2: Minimizes a single variable function using the analytic derivative.MinUnconMultiVar Example 1: Minimizes a multivariate function.MinUnconMultiVar Example 2: Minimizes a multivariate function with a user supplied gradient.MinUnconMultiVar Example 3: Minimizes a multivariate function with a user supplied Hessian.Solves an unconstrained optimization problem using the simplex method of Nelder and Mead.Solves a constrained optimization problem using a direct search complex method.Solves a nonlinear least squares problem using a finite difference Jacobian.NonlinLeastSquares Example 2: Solves a nonlinear least squares problem with a user supplied Jacobian.Solves a nonnegative least squares problem.NumericalDerivatives Example 1: Approximates the gradient of a function of two variables using numerical differentiation.Approximates one component of the gradient using numerical differentiation.Approximates the gradient with a combination of numerical derivatives and analytic derivatives.Approximates the gradient using central divided differences.Approximates the Hessian of a function using numerical differentiation.Solves an optimization problem with supplied numerical gradients.Solves an ODE using the Adams-Gear method.Solves an ODE using the Runge-Kutta-Verner method.Displays the physical constant PI.Prints a simple matrix.Prints a matrix with and without row and column labels.Prints a matrix in CSV format.Performs the QR factorization of a matrix.Solves a quadratic programming problem in 4 variables.Solves a quadratic programming problem with equality constraints.Illustrates the exception thrown by the solver when it encounters inconsistent style constraints.Quadrature Example 1: Approximates an integral.Quadrature Example 2: Approximates the integral of \(e^{-x}\).Quadrature Example 3: Approximates the integral of the entire real line.Quadrature Example 4: Approximates a trigonometric integral.RadialBasis Example 1: Approximates a function with a Hardy multiquadric radial basis function.Approximates a function with a polyharmonic spline radial basis function.RadialBasis Example 2b: Defines a polyharmonic spline radial basis function.Approximates a function using a Hardy multiquadric radial basis function.Approximates a function with a Gaussian radial basis function.Calculates various special functions.SparseCholesky Example 1: Computes the Cholesky factorization of a sparse matrix.Solves a linear programming problem with sparse representation.SparseLP Example 2: Solves a linear programming problem defined in an MPS file.SparseMatrix Example 1: Computes the matrix product of two sparse matrices.SparseMatrix Example 2: Converts a matrix in market format to a sparse matrix format.Reads a file containing Market format data.Spline2DInterpolate Example 1: Computes a tensor-product spline interpolant.Spline2DInterpolate Example 2: Computes the tensor-product spline interpolant.Computes a spline interpolant on a function and evaluates the partial derivatives.Spline2DInterpolate Example 4: Integrates a tensor-product spline.Computes a tensor-product cubic spline least squares fit to a function.SuperLU Example 1: Computes the LU factorization of a sparse matrix.Computes the SVD factorization of a matrix.Computes the eigenvalues and eigenvectors of a symmetric matrix.Solves a transportation problem using the revised Simplex method.Solves a random transportation problem using both the simplex and the interior-point method.Deprecated.ZeroFunctionclass has been deprecated.Finds the zeros of a polynomial.Finds the zeros of a polynomial with complex coefficients.Finds zeros of the \(\sin\) function.Solves a system of nonlinear equations.ZeroSystem Example 2: Solves a system of nonlinear equations with logging enabled.
LinearProgrammingclass has been deprecated.