r_src


r_src, code in the R programming language, for statistical computation and graphics.

More information can be found at https://www.r-project.org/.

  1. adamsbashforth, an R code which uses the Adams Bashforth method to solve an ordinary differential equation (ODE).
  2. adamsbashforth_test
  3. adaptint, an R code which estimates an integral using an adaptive midpoint quadrature rule.
  4. adaptint_test
  5. backward_euler, an R code which implements the (implicit) backward Euler method for solving an ordinary differential equation (ODE).
  6. backward_euler_test
  7. batch, R programs which illustrate how a set of R commands can be executed in "batch mode".
  8. bilinear, an R code which evaluates a bilinear interpolant.
  9. bilinear_test
  10. bisection, an R code which applies the bisection method to seek a root of f(x) over a change-of-sign interval a <= x <= b.
  11. bisection_test
  12. bvpexample, an R code which determines the correct additional initial condition to convert a boundary value problem (BVP) into an initial value problem (IVP).
  13. bvpexample_test
  14. cbezier, an R code which evaluates a cubic Bezier curve.
  15. cbezier_test
  16. choleskymatrix, an R code which computes the Cholesky L L' factorization of a matrix.
  17. choleskymatrix_test
  18. cubicspline, an R code which computes the cubic spline interpolant to data.
  19. cubicspline_test
  20. csv_io_test, an R code which illustrates how to read or write comma separated value (CSV) files.
  21. discmethod, an R code which estimates the volume inside a surface of revolution using the disc method.
  22. discmethod_test
  23. einsum_test, an R code which tests the einsum() function, which applies Einstein summation for various linear algebra operations, including vector inner and outer products, matrix-vector and matrix-matrix multiplication, matrix transpose, matrix diagonal, matrix trace, row and column sums, Hadamard matrix (elementwise) multiplication.
  24. eros, an R code which implements the Elementary Row Operations (ERO) used to define many matrix algorithms.
  25. eros_test
  26. euler, an R code which uses the forward Euler method to solve an ordinary differential equation (ODE).
  27. euler_test
  28. eulersys, an R code which uses the forward Euler method to solve a system of ordinary differential equations (ODE).
  29. eulersys_test
  30. fibonacci, an R code which evaluates the Fibonacci sequence.
  31. fibonacci_test
  32. findiff, an R code which applies the forward finite difference formula to a function.
  33. findiff_test
  34. fsolve_test, an R code which calls fsolve() which seeks the solution x of one or more nonlinear equations f(x)=0.
  35. gauss_seidel, an R code which uses Gauss Seidel iteration to solve a linear system with a symmetric positive definite (SPD) matrix.
  36. gauss_seidel_test
  37. gaussint, an R code which estimates an integral using a Gauss quadrature rule.
  38. gaussint_test
  39. gd, an R code which seeks a minimizer of a multivariate function using gradient descent.
  40. gd_test
  41. gdls, an R code which uses gradient_descent to solve a least squares problem.
  42. gdls_test
  43. giniquintile, an R code which computes the Gini quintile.
  44. giniquintile_test
  45. golden_section, an R code which seeks a maximizer of a unimodular function ("U-shaped") over an interval [a,b], using golden section search.
  46. golden_section_test
  47. gradasc, an R code which seeks a maximizer of a function using gradient ascent.
  48. gradasc_test
  49. graddsc, an R code which seeks a minimizer of a function using gradient descent.
  50. graddsc_test
  51. graphics_test, R programs which demonstrate how to make various kinds of plots.
  52. heat, an R code which solves the 1D heat equation using the forward time centered space (FTCS) method.
  53. heat_test
  54. hello, an R code which prints out "Hello, world!".
  55. hello_test
  56. hillclimbing, an R code which seeks a minimizer of a function using the hill climbing method.
  57. hillclimbing_test
  58. horner, an R code which evaluates a polynomial using Horner's method.
  59. horner_test
  60. is_prime, an R code which is true if a given integer n is prime.
  61. is_prime_test
  62. jacobi, an R code which uses Jacobi iteration to solve a linear system with a symmetric positive definite (SPD) matrix.
  63. jacobi_test
  64. leastsquares, an R code which solves an overdetermined linear system using the normal equations.
  65. leastsquares_test
  66. linear_lab, a laboratory exercise which looks for linear relationships between statistical data extracted from a file.
  67. linterp, an R code which finds the line between two data points.
  68. linterp_test
  69. local_min, an R code which finds a local minimizer of a scalar function of a scalar variable, by Richard Brent.
  70. local_min_test
  71. lumatrix, an R code which computes the Lower-Upper (LU) triangular factorization of a matrix.
  72. lumatrix_test
  73. machine, an R code which returns values of the constants associated with computer arithmetic.
  74. machine_test
  75. mcint, an R code which estimates an integral using the Monte Carlo method.
  76. mcint_test
  77. mcint2, an R code which estimates an integral over a rectangle using the Monte Carlo method.
  78. mcint2_test
  79. midpt, an R code which solves one or more ordinary differential equations (ODE) using the midpoint method.
  80. midpt_test
  81. midpoint, an R code which solves one or more ordinary differential equations (ODE) using the (implicit) midpoint method, solving the implicit equation using fsolve() from the pracma library of Hans Borchers.
  82. midpoint_test
  83. midpoint_explicit, an R code which solves one or more ordinary differential equations (ODE) using the (explicit) midpoint method, also called the modified Euler method.
  84. midpoint_explicit_test
  85. midpoint_fixed, an R code which solves one or more ordinary differential equations (ODE) using the (implicit) midpoint method, for which the nonlinear equation is solved using a fixed point method.
  86. midpoint_fixed_test
  87. midpoint_quad, an R code which estimates an integral using the midpoint quadrature rule.
  88. midpoint_quad_test
  89. newton, an R code which seeks a root of a function using the Newton method.
  90. newton_test
  91. nn, an R code which does nearest neighbor interpolation.
  92. nn_test
  93. nth_root, an R code which uses Newton's method to find the n-th root of a number.
  94. nth_root_test
  95. persistence, an R code which demonstrates how to initialize, get, or set data stored within a function, using static/persistent/saved/local memory.
  96. persistence_test
  97. plot_lab, a laboratory exercise which considers the various kinds of plots that can be made using R.
  98. polyinterp, an R code which sets up Vandermonde polynomial interpolation.
  99. polyinterp_test
  100. pwiselinterp, an R code which finds the intercept and slope for a sequence of piecewise linear interpolants.
  101. pwiselinterp_test
  102. qbezier, an R code which evaluates a quadratic Bezier curve.
  103. qbezier_test
  104. quadratic, an R code which computes the roots of a quadratic equation ax^2+bx+c=0.
  105. quadratic_test
  106. r8lib, an R code which contains utilities for real 64 bit (R8) arithmetic.
  107. r8lib_test
  108. refmatrix, an R code which computes the Row Echelon Form (REF) of a matrix.
  109. refmatrix_test
  110. resizeImageBL, an R code which resizes an image using bilinear interpolation.
  111. resizeImageBL_test
  112. resizeImageNN, an R code which resizes an image using nearest neighbor interpolation.
  113. resizeImageNN_test
  114. romberg, an R code which estimates an integral using Romberg extrapolation.
  115. romberg_test
  116. rrefmatrix, an R code which computes the Reduced Row Echelon Form (RREF) of a matrix.
  117. rrefmatrix_test
  118. rk4, an R code which uses the 4th order Runge-Kutta method to solve an ordinary differential equation (ODE).
  119. rk4_test
  120. sa, an R code which seeks a minimizer of a function using simulated annealing.
  121. sa_test
  122. secant, an R code which seeks a root of a function using the secant method.
  123. secant_test
  124. select_lab, a laboratory exercise which investigates how to create datasets in which some values are missing or unknown, how to select a portion of a data set for analysis, and how to merge items of data.
  125. shellmethod, an R code which estimates the volume inside a surface of revolution using the shell method.
  126. shellmethod_test
  127. simp, an R code which estimates an integral using Simpson's quadrature rule.
  128. simp_test
  129. simp38, an R code which estimates an integral using Simpson's 3/8 quadrature rule.
  130. simp38_test
  131. solvematrix, an R code which solves a linear system by transforming it to Reduced Row Echelon Form (RREF).
  132. solvematrix_test
  133. stiff_ode, an R code which considers an ordinary differential equation (ODE) which is an example of a stiff ODE.
  134. stiff_ode_test
  135. symdiff, an R code which applies the symmetric finite difference formula to a function.
  136. symdiff_test
  137. test_values, an R code which supplies test values of various mathematical functions, including Abramowitz, AGM, Airy, Bell, Bernoulli, Bessel, Beta, Binomial, Bivariate Normal, Catalan, Cauchy, Chebyshev, Chi Square, Clausen, Clebsch Gordan, Collatz, Cosine integral, Dawson, Debye, Dedekind, dilogarithm, Dixon elliptic functions, Exponential integral, Elliptic, Error, Euler, Exponential integral, F probability, Fresnel, Frobenius, Gamma, Gegenbauer, Goodwin, Gudermannian, Harmonic, Hermite, Hypergeometric 1F1, Hypergeometric 2F1, inverse trigonometic, Jacobi Elliptic functions sn(), cn(), dn(), the Julian Ephemeris Date, Kelvin, Knapsack, Laguerre, Lambert W, Laplace, Legendre, Lerch, Lobachevsky, Lobatto, Logarithmic integral, Log normal, McNugget numbers, Mersenne primes, Mertens, Mittag-Leffler, Moebius, Multinomial, Negative binomial, Nine J, Normal, Omega, Owen, Partition, Phi, Pi, Poisson, Polylogarithm, Polynomial Resultant, Polyomino, Prime, Psi, Rayleigh, Hyperbolic Sine integral, Sigma, Sine Power integral, Sine integral, Six J, Sphere area, Sphere volume, Spherical harmonic, Stirling, Stromgen, Struve, Student, Subfactorial, Student probability, Three J, Transport, Trigamma, Truncated normal, van der Corput, von Mises, Weibull, Wright Omega, Zeta.
  138. test_values_test
  139. tester, a BASH script which runs the test programs.
  140. timestamp, an R code which prints the current YMDHMS date as a timestamp.
  141. timestamp_test
  142. trapezoid, an R code which estimates an integral using the trapezoid quadrature rule.
  143. trapezoid_test
  144. trapezoidal, an R code which implements the (implicit) trapezoidal method for solving an ordinary differential equation (ODE), using fsolve() to handle the implicit equation, adapted from the pracma library of Hans Borchers.
  145. trapezoidal_test
  146. trapezoidal_fixed, an R code which implements the (implicit) trapezoidal method for solving an ordinary differential equation (ODE), using a fixed point method to handle the implicit equation, adapted from the pracma library of Hans Borchers.
  147. trapezoidal_fixed_test
  148. tridiagmatrix, an R code which solves a linear system with a tridiagonal matrix.
  149. tridiagmatrix_test
  150. tsp_anneal, an R code which solves the traveling salesperson problem (TSP) using simulated annealing.
  151. tsp_anneal_test
  152. tsp_att48, an R code which returns the (x,y) coordinates of the cities that constitute the AT&T 48 state challenge for the Traveling Salesman Problem (TSP).
  153. tsp_att48_test
  154. tsp_dantzig42, an R code which returns the (x,y) coordinates of the cities that constitute the Dantzig 42 state challenge for the Traveling Salesman Problem (TSP).
  155. tsp_dantzig42_test
  156. tsp_display, an R code which displays a solution of a Traveling Salesman Problem (TSP).
  157. tsp_display_test
  158. vecnorm, an R code which computes the L2 norm of a vector.
  159. vecnorm_test
  160. wave, an R code which solves the 1D wave equation using the finite difference method.
  161. wave_test
  162. xls_io_test, an R code which illustrates how the Microsoft EXCEL program can share data with R.
  163. zero_brent, an R code which finds a zero of a scalar function of a scalar variable, by Richard Brent.
  164. zero_brent_test


Last revised on 07 July 2026.