WANtaroHP (Mathematics)

toJA

Outline of this page

Contents


Simultaneous Linear Equations

Outline of this program

Source code by f90

FilenameDescription
program to solve simultaneous linear equations


Eigenvalue Analysis

Outline of this program

Source code by f90

FilenameDescription
program for eigenvalue analysis


Gauss-Legendre rule

Outline of this program

Source code by f90

FilenameDescription
program to calculate the coordinates and weights of Gauss point
program which shows the adoption sample of Gauss-Legendre rule


Fast Fourier Transform (FFT and Inverse FFT)

Outline of this program

Source code by f90

FilenameDescription
program for FFT and IFFT
Sample input data
Sample output data


Sample use of Complex number

Outline of this program

Source code by f90

FilenameDescription
Program for sample use of complex number


Bessel functions, Gamma function (Fortran 2008)

Outline of this program

Source code by f08

FilenameDescription
Program for sample use of Bessel functions
Program for sample use of Gamma function
Program for gnuplot
png image file of Bessel functions plot
png image file of Gamma functions plot


Cubic Spline Interpolation

Outline of this program

Bach command for execution

gfortran -o f90_SPL.exe f90_SPL.f90
f90_SPL inp_data.txt 5 > out_data.txt

The format of command line arguments are shown below.

f90_SPL fnameR md > fnameW
f90_SPLCompiled F90 frogram for Cubic Spline Interpolation
fnameR Input file name
md Number of division between the one plot to next plot
fnameW Output file name

Source code by f90

FilenameDescription
Program for Cubic Spline Interpolation
Input data sample
Output data sample
Script for gnuplot drawing
png image file of the result


Solution of Algebraic Equations (DKA method)

Outline of this program

     http://www.ecs.shimane-u.ac.jp/~kyoshida/c6(2002).pdf

Bach command for execution

gfortran -o f90_DKA.exe f90_DKA.f90

f90_DKA inp_test10.txt > out_test10.txt
copy _data_circ.txt _data_circ10.txt
copy _gmt_inp.txt _gmt_inp10.txt

f90_DKA inp_test20.txt > out_test20.txt
copy _data_circ.txt _data_circ20.txt
copy _gmt_inp.txt _gmt_inp20.txt

call bat_gmt_draw

The format of command line arguments are shown below.

f90_DKA fnameR > fnameW
f90_DKACompiled F90 program
fnameR Input file name
fnameW Output file name

The purpose of output file 'fnameW' is to confirm the numerical results. In addition, following files which have fixed file name for each are created for GMT drawing.

_iteration.txtWork file
_gmt_inp.txt Data file for GMT (coordinate data of coefficients included convergence process)
_data_circ.txtData file for GMT ( coordinate data for a circle related Aberth's initial values)

Source code by f90

FilenameDescription
Program for DKA method
Input data sample (Case-1)
Input data sample (Case-2)
Input data sample (Case-3)
Output data sample (Case-1)
Output data sample (Case-2)
Output data sample (Case-3)
Batch filr for GMT drawing
png image file (Case-1)
png image file (Case-1 detail)
png image file (Case-2)
png image file (Case-2 detail)
png image file (Case-3)
png image file (Case-3 detail)
Document
Case-1f(x)=(x+1)^10=0
Case-2f(x)=(x-20)(x-19)...(x-1)=0
Case-3f(x)=(x-30)(x-29)...(x-1)=0


Complete elliptic integral

Outline of this program

Result by Series expansion method

  Mehod by Series expansion
  ita.   p              K(p)           E(p)
    1  0.0000000E+00  0.1570796E+01  0.1570796E+01
    5  0.1000000E+00  0.1574746E+01  0.1566862E+01
    7  0.2000000E+00  0.1586868E+01  0.1554969E+01
    9  0.3000000E+00  0.1608049E+01  0.1534833E+01
   11  0.4000000E+00  0.1640000E+01  0.1505942E+01
   14  0.5000000E+00  0.1685750E+01  0.1467462E+01
   19  0.6000000E+00  0.1750754E+01  0.1418083E+01
   27  0.7000000E+00  0.1845694E+01  0.1355661E+01
   41  0.8000000E+00  0.1995303E+01  0.1276350E+01
   83  0.9000000E+00  0.2280549E+01  0.1171697E+01
54842  0.9999000E+00  0.5645147E+01  0.1000515E+01
 time=   47.875000     (sec)

Result by Gauss-Legendre rule: number of integration = 10

  method by Gauss-Legendre rule (n=10)
  ita.   p              K(p)           E(p)
    2  0.0000000E+00  0.1570796E+01  0.1570796E+01
    2  0.1000000E+00  0.1574746E+01  0.1566862E+01
    2  0.2000000E+00  0.1586868E+01  0.1554969E+01
    2  0.3000000E+00  0.1608049E+01  0.1534833E+01
    2  0.4000000E+00  0.1640000E+01  0.1505942E+01
    2  0.5000000E+00  0.1685750E+01  0.1467462E+01
    2  0.6000000E+00  0.1750754E+01  0.1418083E+01
    2  0.7000000E+00  0.1845694E+01  0.1355661E+01
    3  0.8000000E+00  0.1995303E+01  0.1276350E+01
    3  0.9000000E+00  0.2280549E+01  0.1171697E+01
   53  0.9999000E+00  0.5645148E+01  0.1000515E+01
 time=   0.0000000     (sec)

Result by Gauss-Legendre rule: number of integration = 2

  method by Gauss-Legendre rule (n=2)
  ita.   p              K(p)           E(p)
    2  0.0000000E+00  0.1570796E+01  0.1570796E+01
    3  0.1000000E+00  0.1574746E+01  0.1566862E+01
    4  0.2000000E+00  0.1586868E+01  0.1554969E+01
    4  0.3000000E+00  0.1608049E+01  0.1534833E+01
    5  0.4000000E+00  0.1640000E+01  0.1505942E+01
    6  0.5000000E+00  0.1685750E+01  0.1467462E+01
    6  0.6000000E+00  0.1750754E+01  0.1418083E+01
    7  0.7000000E+00  0.1845694E+01  0.1355661E+01
    9  0.8000000E+00  0.1995303E+01  0.1276350E+01
   13  0.9000000E+00  0.2280549E+01  0.1171697E+01
  323  0.9999000E+00  0.5645148E+01  0.1000515E+01
 time=  0.12500000     (sec)

Source code by f90

FilenameDescription
Program by Series expansion
Program by Gauss-Legendre rule

toJA
inserted by FC2 system