Class InverseLaplaceTest

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class InverseLaplaceTest
    extends AlgorithmBase
    • Field Detail

      • n

        int n
        This is an implementation of the 16 test cases listed in Numerical Inversion of the Laplace Transform: a Survey of and Comparison of Methods by Brian Davies and Brian Martin, Journal of Computational Physics, Vol. 33, pp. 1- 32, 1979.
      • t

        double[] t
      • ftrue

        double[][] ftrue
    • Constructor Detail

      • InverseLaplaceTest

        public InverseLaplaceTest()
    • Method Detail

      • runAlgorithm

        public void runAlgorithm()
        Description copied from class: AlgorithmBase
        Actually runs the algorithm. Implemented by inheriting algorithms.
        Specified by:
        runAlgorithm in class AlgorithmBase
      • zabs

        private double zabs​(double zr,
                            double zi)
        zabs computes the absolute value or magnitude of a double precision complex variable zr + j*zi.
        Parameters:
        zr - double
        zi - double
        Returns:
        double
      • zmlt

        private void zmlt​(double ar,
                          double ai,
                          double br,
                          double bi,
                          double[] cr,
                          double[] ci)
        complex multiply c = a * b.
        Parameters:
        ar - double
        ai - double
        br - double
        bi - double
        cr - double[]
        ci - double[]
      • zdiv

        private void zdiv​(double ar,
                          double ai,
                          double br,
                          double bi,
                          double[] cr,
                          double[] ci)
        complex divide c = a/b.
        Parameters:
        ar - double
        ai - double
        br - double
        bi - double
        cr - double[]
        ci - double[]
      • zexp

        private void zexp​(double ar,
                          double ai,
                          double[] br,
                          double[] bi)
        complex exponential function b = exp(a).
        Parameters:
        ar - double
        ai - double
        br - double[]
        bi - double[]
      • zsqrt

        private void zsqrt​(double ar,
                           double ai,
                           double[] br,
                           double[] bi)
        complex square root b = csqrt(a).
        Parameters:
        ar - double
        ai - double
        br - double[]
        bi - double[]
      • zlog

        private void zlog​(double ar,
                          double ai,
                          double[] br,
                          double[] bi,
                          int[] ierr)
        complex logarithm b = clog(a).
        Parameters:
        ar - double
        ai - double
        br - double[]
        bi - double[]
        ierr - int[] ierr = 0, normal return ierr = 1, z = cmplx(0.0, 0.0)