octave_src


  1. advection_pde, an Octave code which solves the advection partial differential equation (PDE) dudt + c * dudx = 0 in one spatial dimension, with a constant velocity c, and periodic boundary conditions, using the forward time centered space (FTCS) method.
  2. advection_pde_test
  3. allen_cahn_pde, an Octave code which sets up and solves the Allen-Cahn reaction-diffusion partial differential equation (PDE) du/dt = nu * uxx - u * (u^2-1) / (2*xi) in 1 space dimension and time.
  4. allen_cahn_pde_test
  5. allen_cahn_pde_etdrk4 an Octave code which uses the exponential time differencing (ETD) RK4 method to solve the Allen-Cahn system of stiff ordinary differential equations (ODE), by Aly-Khan Kassam, Lloyd Trefethen.
  6. allen_cahn_pde_etdrk4_test
  7. allen_cahn_pde_euler an Octave code which uses the Euler method to solve the Allen-Cahn PDE as a system of stiff ordinary differential equations (ODE), by Aly-Khan Kassam, Lloyd Trefethen.
  8. allen_cahn_pde_euler_test
  9. alpert_rule, an Octave code which sets up an Alpert quadrature rule for functions which are regular, log(x) singular, or 1/sqrt(x) singular.
  10. alpert_rule_test
  11. analemma, an Octave code which evaluates the equation of time, a formula for the difference between the uniform 24 hour day and the actual position of the sun, based on a C program by Brian Tung.
  12. analemma_test
  13. animation_test, an Octave code which demonstrates how to create an animation in the form of a GIF.
  14. anishchenko_ode, an Octave code which sets up and solves the Anishchenko ordinary differential equation (ODE), which has chaotic behavior and an attractor.
  15. anishchenko_ode_test
  16. annulus_distance, an Octave code which estimates the typical distance between a pair of points randomly selected inside a circular annulus.
  17. annulus_distance_test
  18. annulus_grid, an Octave code which computes a grid of points over the interior of a circular annulus.
  19. annulus_grid_test
  20. annulus_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of an annulus centered at the origin.
  21. annulus_integrals_test
  22. annulus_monte_carlo, an Octave code which uses the Monte Carlo method to estimate the integral of a function over the interior of a circular annulus in 2D.
  23. annulus_monte_carlo_test
  24. annulus_rule, an Octave code which computes a quadrature rule for estimating integrals of a function over the interior of a circular annulus in 2D.
  25. annulus_rule_test
  26. aperiodic_tile, an Octave code which constructs several steps in the aperiodic tiling of the plane, using the monotile T(1,1), displaying the result graphically, by Henning Voss.
  27. aperiodic_tile_test
  28. approx_bernstein, an Octave code which interactively approximates a function f(x) in the interval [a,b] by constructing a Bernstein polynomial.
  29. approx_bernstein_test
  30. approx_chebyshev, an Octave code which interactively approximates a function f(x) in the interval [a,b] by constructing a Chebyshev polynomial interpolant that is often a good estimate of the minimax polynomial.
  31. approx_chebyshev_test
  32. approx_leastsquares, an Octave code which interactively approximates a function f(x) in the interval [a,b] by constructing an m-degree polynomial which minimizes the square root of the sum of the squares of the error with n sample data points.
  33. approx_leastsquares_test
  34. arclength, an Octave code which estimates the arclength of curves of the form (x,f(x)) or (x(t),y(t)).
  35. arclength_test
  36. area_under_curve, an Octave code which displays the area under a curve, that is, the points (x,y) between the X axis and the curve Y=F(X).
  37. area_under_curve_test
  38. arenstorf_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) which defines a stable periodic orbit of a spacecraft around the Earth and the Moon.
  39. arenstorf_ode_test
  40. args, an Octave code which shows how to count and report command line arguments;
  41. args_test
  42. arneodo_ode, an Octave code which sets up and solves the Arneodo ordinary differential equation (ODE), which has chaotic behavior and an attractor.
  43. arneodo_ode_test
  44. artery_pde, an Octave code which solves a partial differential equation (PDE) in one spatial dimension and time, that models the displacement of arterial walls under pressure.
  45. artery_pde_test
  46. asa_geometry_2011, an Octave code which was used during labs, demonstrations, and lectures associated with the Geometry Algorithms portion of the class Algorithms for Science Applications II, as taught at the Scientific Computing Department, Florida State University, Spring Semester 2011.
  47. asa_geometry_2011_test
  48. asa_graphs_2011, a Octave code which was used during labs, demonstrations, and lectures associated with the Graph Algorithms portion of the class Algorithms for Science Applications II, as taught at the Scientific Computing Department, Florida State University, Spring Semester 2011.
  49. asa_images_2011, an Octave code which was used during labs, demonstrations, and lectures associated with the Image Algorithms portion of the class Algorithms for Science Applications II, as taught at the Scientific Computing Department, Florida State University, Spring Semester 2011.
  50. asa005, an Octave code which evaluates the Cumulative Density Function (CDF) of the noncentral T Probability Density Function (PDF), by BE Cooper. This is a version of Applied Statistics Algorithm 5;
  51. asa005_test
  52. asa006, an Octave code which computes the Cholesky factorization of a symmetric positive definite (SPD) matrix, by Michael Healy. This is a version of Applied Statistics Algorithm 6;
  53. asa006_test
  54. asa007, an Octave code which computes the inverse of a symmetric positive definite (SPD) matrix, by Michael Healy. This is a version of Applied Statistics Algorithm 7.
  55. asa007_test
  56. asa032, an Octave code which evaluates the incomplete Gamma function, by G Bhattacharjee. This is a version of Applied Statistics Algorithm 32.
  57. asa032_test
  58. asa047, an Octave code which minimizes a scalar function of several variables using the Nelder-Mead algorithm, by R ONeill. This is a version of Applied Statistics Algorithm 47.
  59. asa047_test
  60. asa053, an Octave code which produces sample matrices from the Wishart distribution, by William Smith and Ronald Hocking. This is a version of Applied Statistics Algorithm 53.
  61. asa053_test
  62. asa058, an Octave code which implements the K-means data clustering algorithm, by David Sparks. This is a version of Applied Statistics Algorithm 58.
  63. asa058_test
  64. asa063, an Octave code which evaluates the incomplete Beta function, by KL Majumder and G Bhattacharjee. This is a version of Applied Statistics Algorithm 63.
  65. asa063_test
  66. asa066, an Octave code which evaluates the Cumulative Density Function (CDF) of the normal probability distribution, by David Hill. This is a version of Applied Statistics Algorithm 66.
  67. asa066_test
  68. asa076, an Octave code which evaluates the Owen T function, needed to compute the Cumulative Density Function (CDF) of the noncentral T distribution, by Young and Minder. This is a version of Applied Statistics Algorithm 76.
  69. asa076_test
  70. asa082, an Octave code which computes the determinant of an orthogonal matrix; this is a version of Applied Statistics Algorithm 82, by J C Gower.
  71. asa082_test
  72. asa091, an Octave code which evaluates the percentage points of the Chi-Squared distribution, by Best and Roberts. This is a version of Applied Statistics Algorithm 91.
  73. asa091_test
  74. asa103, an Octave code which evaluates the digamma or psi function, by Jose Bernardo. This is a version of Applied Statistics Algorithm 103.
  75. asa103_test
  76. asa109, an Octave code which inverts the incomplete Beta function, by Cran, Martin and Thomas. This is a version of Applied Statistics Algorithm 109.
  77. asa109_test
  78. asa111, an Octave code which evaluates the percentage points of the normal distribution, by Beasley and Springer. This is a version of Applied Statistics Algorithm 111.
  79. asa111_test
  80. asa113, an Octave code which implements a clustering algorithm using transfers and swaps, by Banfield and Bassill. This is a version of Applied Statistics Algorithm 113.
  81. asa113_test
  82. asa121, an Octave code which evaluates the trigamma function, by BE Schneider. This is a version of Applied Statistics Algorithm 121.
  83. asa121_test
  84. asa136, an Octave code which implements a clustering algorithm, by Hartigan and Wong. This is a version of Applied Statistics Algorithm 136.
  85. asa136_test
  86. asa144, an Octave code which randomly generates an RxC contingency table, by James Boyett. This is a version of Applied Statistics Algorithm 144.
  87. asa144_test
  88. asa147, an Octave code which evaluates the incomplete Gamma function, by Chi Leung Lau. This is a version of Applied Statistics Algorithm 147.
  89. asa147_test
  90. asa152, an Octave code which evaluates the Probability Density Function (PDF) and Cumulative Density Function (CDF) associated with the hypergeometric distribution, by Richard Lund; this is a version of Applied Statistics Algorithm 152.
  91. asa152_test
  92. asa159, an Octave code which randomly generates an RxC contingency table, by Michael Patefield; This is a version of Applied Statistics Algorithm 159.
  93. asa159_test
  94. asa172, an Octave code which generates all M-dimensional indices in a given range, simulating the behavior of an arbitrary number of nested loops, by OFlaherty and MacKenzie. this is a version of Applied Statistics Algorithm 172;
  95. asa172_test
  96. asa183, an Octave code which implements a random number generator (RNG), by Wichman and Hill. This is a version of Applied Statistics Algorithm 183.
  97. asa183_test
  98. asa226, an Octave code which evaluates the Cumulative Density Function (CDF) of the noncentral Beta distribution, by Russell Lenth. This is a version of Applied Statistics Algorithm 226.
  99. asa226_test
  100. asa239, an Octave code which evaluates the incomplete Gamma function, by Shea. This is a version of Applied Statistics Algorithm 239.
  101. asa239_test
  102. asa241, an Octave code which evaluates the percentage points of the normal distribution, by Michael Wichura. This is a version of Applied Statistics Algorithm 241.
  103. asa241_test
  104. asa243, an Octave code which evaluates the Cumulative Density Function (CDF) of the noncentral T distribution, by Russell Lenth; this is a version of Applied Statistics Algorithm 243.
  105. asa243_test
  106. asa245, an Octave code which evaluates the logarithm of the Gamma function, by Allan Mcleod; this is a version of Applied Statistics Algorithm 245.
  107. asa245_test
  108. asa266, an Octave code which evaluates various properties of the Dirichlet Probability Density Function (PDF); This is a version of Applied Statistics Algorithm 266.
  109. asa266_test
  110. asa299, an Octave code which computes the lattice points in an M-dimensional simplex, by Chasalow and Brand; this is a version of Applied Statistics Algorithm 299;
  111. asa299_test
  112. asa310, an Octave code which computes the Cumulative Density Function (CDF) of the noncentral Beta distribution, by Chattamvelli and Shanmugam; this is a version of Applied Statistics Algorithm 310.
  113. asa310_test
  114. asa314, an Octave code which computes the inverse of a matrix whose elements are subject to modulo arithmetic, by Roger Payne. This is a version of Applied Statistics Algorithm 314;
  115. asa314_test
  116. atbash, an Octave code which applies the Atbash substitution cipher to a string of text.
  117. atbash_test
  118. atkinson, an Octave code which contains examples from the text 'Elementary Numerical Analysis', by Atkinson.
  119. atkinson_test
  120. autocatalytic_ode, an Octave code which sets up and solves the autocatalytic ordinary differential equation (ODE), which has chaotic behavior and an attractor.
  121. autocatalytic_ode_test
  122. axon_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) for the Hodgkin-Huxley model of an axon.
  123. axon_ode_test
  124. backtrack_binary_rc, an Octave code which carries out a backtrack search for a set of binary decisions, using reverse communication (RC).
  125. backtrack_binary_rc_test
  126. backward_euler, an Octave code which solves one or more ordinary differential equations (ODE) using the (implicit) backward Euler method, using fsolve() for the implicit equation.
  127. backward_euler_test
  128. backward_euler_fixed, an Octave code which solves one or more ordinary differential equations (ODE) using the (implicit) backward Euler method, using a fixed point iteration for the implicit equation.
  129. backward_euler_fixed_test
  130. ball_and_stick_display, an Octave code which demonstrates the creation of a 3D ball and stick image;
  131. ball_and_stick_display_test
  132. ball_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of the unit ball in 3D.
  133. ball_distance_test
  134. ball_grid, an Octave code which computes a grid of points over the interior of the unit ball in 3D.
  135. ball_grid_test
  136. ball_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit ball in 3D.
  137. ball_integrals_test
  138. ball_monte_carlo, an Octave code which applies a Monte Carlo method to estimate integrals of a function over the interior of the unit ball in 3D;
  139. ball_monte_carlo_test
  140. ball_positive_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of the unit positive ball in 3D.
  141. ball_positive_distance_test
  142. bank, an Octave code which computes the check digit associated with a US Bank Routing Number check digit, or reports whether a 9-digit code is actually valid.
  143. bank_test
  144. barycentric_interp_1d, an Octave code which defines and evaluates the barycentric Lagrange polynomial p(x) which interpolates a set of data, so that p(x(i)) = y(i). The barycentric approach means that very high degree polynomials can safely be used.
  145. barycentric_interp_1d_test
  146. bdf2, an Octave code which solves one or more ordinary differential equations (ODE) using BDF2, the (implicit) backward difference formula of order 2, using fsolve() to solve the implicit equation.
  147. bdf2_test
  148. bellman_ford, an Octave code which implements the Bellman-Ford algorithm for finding the shortest distance from a given node to all other nodes in a directed graph whose edges have been assigned real-valued lengths.
  149. bellman_ford_test
  150. bernstein_approximation, an Octave code which looks at some simple cases of approximation of a function f(x) by a Bernstein polynomial.
  151. bernstein_approximation_test
  152. bernstein_polynomial, an Octave code which evaluates the Bernstein polynomials;
  153. bernstein_polynomial_test
  154. besselj, an Octave code which evaluates Bessel J functions of noninteger order;
  155. besselj_test
  156. besselzero, an Octave code which computes the zeros of Bessel functions j or y, by Greg van Winckel and Jason Nicholson.
  157. besselzero_test
  158. beta_nc, an Octave code which evaluates the cumulative density function (CDF) of the noncentral Beta distribution;
  159. beta_nc_test
  160. bezier_surface, an Octave code which reads, writes, prints and manipulates the data that defines a Bezier surface;
  161. bezier_surface_test
  162. bezier_surface_display, an Octave code which displays a Bezier surface;
  163. bezier_surface_display_test
  164. bicg, an Octave code which implements the biconjugate gradient method (BICG), which estimates the solution of a large sparse nonsymmetric linear system.
  165. bicg_test
  166. biharmonic_cheby1d, an Octave code which uses Chebyshev methods to solve the biharmonic equation over an interval, a fourth order two point boundary value problem (BVP) in one spatial dimension.
  167. biharmonic_cheby1d_test
  168. biharmonic_exact, an Octave code which evaluates exact solutions w(x,y) to the biharmonic equation del^2 w = 0 or wxxxx + 2 wxxyy + wyyyy = 0
  169. biharmonic_exact_test
  170. biharmonic_fd1d, an Octave code which applies the finite difference method to solve the biharmonic equation over an interval, a fourth order two point boundary value problem (BVP) in one spatial dimension.
  171. biharmonic_fd1d_test
  172. biharmonic_fd2d, an Octave code which deals with the biharmonic equation in two dimensions, whose simplest form is uxxxx + 2uxxyy + uyyyy = f.
  173. biharmonic_fd2d_test
  174. biochemical_linear_ode, an Octave code which sets up and solves a linear biochemical ordinary differential equation (ODE).
  175. biochemical_linear_ode_test
  176. biochemical_nonlinear_ode, an Octave code which sets up and solves a nonlinear biochemical ordinary differential equation (ODE).
  177. biochemical_nonlinear_ode_test
  178. bioconvection_ode, an Octave code which approximates solutions to a system of ordinary differential equations (ODE) which model a bioconvection problem, and which are related to the Lorenz system.
  179. bioconvection_ode_test
  180. bird_egg, an Octave code which evaluates some formulas for the shapes of bird eggs.
  181. bird_egg_test
  182. bisection, an Octave code which applies the bisection method to seek a root of f(x) over a change-of-sign interval a <= x <= b.
  183. bisection_test
  184. bisection_integer, an Octave code which seeks an integer solution to the equation F(X)=0, using bisection within a user-supplied change of sign interval [a,b].
  185. bisection_integer_test
  186. bisection_rc, an Octave code which seeks a solution to the equation F(X)=0 using bisection within a user-supplied change of sign interval [a,b]. The procedure is written using reverse communication (RC).
  187. bisection_rc_test
  188. black_scholes, an Octave code which implements some simple approaches to the Black-Scholes option valuation theory, by Desmond Higham.
  189. black_scholes_test
  190. blend, an Octave code which carries out 1D/2D/3D blending interpolation;
  191. blend_test
  192. blood_pressure_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) which models the variation in blood pressure in the human artery.
  193. blood_pressure_ode_test
  194. blowup_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) y'=y^2. whose solution blows up in finite time.
  195. blowup_ode_test
  196. boat, an Octave code which considers the boat tiling puzzle, a smaller version of the eternity puzzle. The boat puzzle specifies a region R composed of 756 30-60-90 triangles, and a set of 21 "tiles", each consisting of 36 30-60-90 triangles, and seeks an arrangement of the tiles that exactly covers the region.
  197. boat_test
  198. boat_cplex_test a BASH code which calls cplex(), to read the LP file defining the boat tiling problem, solve the linear programming problem, and write the solution to a file.
  199. boat_gurobi_test a BASH code which calls gurobi(), to read the LP file defining the boat tiling problem, solve the linear programming problem, and write the solution to a file.
  200. boundary_locus, an Octave code which uses the boundary locus method to display the region of absolute stability for a solver of ordinary differential equations (ODE).
  201. boundary_locus_test
  202. boundary_locus2, an Octave code which uses the boundary locus method to plot the boundary of the absolute stability region for a solver of ordinary differential equations (ODE), based on a procedure by Randall Leveque.
  203. boundary_locus2_test
  204. boundary_word_drafter, an Octave code which describes the outline of an object using a string of symbols that represent the sequence of steps tracing out the boundary, on a grid of drafters, or 30-60-90 triangles. The objects include tiles for the eternity, serenity and trinity puzzles, and the hat and turtle aperiodic monotiles.
  205. boundary_word_drafter_test
  206. boundary_word_equilateral, an Octave code which describes the outline of an object on a grid of equilateral triangles, using a string of symbols that represent the sequence of steps tracing out the boundary.
  207. boundary_word_equilateral_test
  208. boundary_word_hexagon, an Octave code which describes the outline of an object on a grid of hexagons, using a string of symbols that represent the sequence of steps tracing out the boundary.
  209. boundary_word_hexagon_test
  210. boundary_word_right, an Octave code which describes the outline of an object on a grid of isoceles right triangles, using a string of symbols that represent the sequence of steps tracing out the boundary.
  211. boundary_word_right_test
  212. boundary_word_square, an Octave code which describes the outline of an object on a grid of squares, using a string of symbols that represent the sequence of steps tracing out the boundary.
  213. boundary_word_square_test
  214. box_behnken, an Octave code which computes a Box-Behnken design, that is, a set of arguments to sample the behavior of a function of multiple parameters;
  215. box_behnken_test
  216. box_display, an Octave code which displays a box plot, over integer pairs of data, of a function defined by two formulas.
  217. box_display_test
  218. box_distance, an Octave code which estimates the distribution and expected value of the distance between two points picked uniformly at random within a box.
  219. box_distance_test
  220. box_flow, an Octave code which solves the Navier Stokes equations (NSE) in a 2D rectangular region, replacing the continuity equation with a pressure Poisson equation (PPE), by John Cornthwaite.
  221. box_flow_test
  222. box_games, an Octave code which assists in the display of game boards (checkers, cellular automatons, life);
  223. box_games_test
  224. box_plot, an Octave code which displays a box plot of data that consists of pairs of integers;
  225. box_plot_test
  226. brc_data, an Octave code which creates a file of randomly generated temperature readings to be associated with weather stations at 413 world cities. A file like this, with 1 billion records, is used for the billion record challenge (BRC).
  227. brc_data_test
  228. brc_naive, an Octave code which reads a file of randomly generated temperature readings, associated with weather stations at 413 world cities, and computes the minimum, mean, and maximum temperature for each weather station. It also reports the total execution time. Processing such a data file with one billion records is the substance of the billion record challenge (BRC).
  229. brc_naive_test
  230. brownian_motion_simulation, an Octave code which simulates Brownian motion in an M dimensional region.
  231. brownian_motion_simulation_test
  232. broyden, an Octave code which implements the Broyden iterative method for nonlinear equations, by Tim Kelley.
  233. broyden_test
  234. brusselator_ode, an Octave code which sets up and solves the Brusselator ordinary differential equation (ODE) system.
  235. brusselator_ode_test
  236. buckling_spring, an Octave code which plots solutions of the buckling spring equations.
  237. buckling_spring_test
  238. burgers_pde_etdrk4, an Octave code which uses the exponential time differencing (ETD) RK4 method to solve the Burgers PDE as a system of stiff ordinary differential equations (ODE), by Aly-Khan Kassam, Lloyd Trefethen.
  239. burgers_pde_etdrk4_test
  240. burgers_exact, an Octave code which evaluates exact solutions of the time-dependent 1D viscous Burgers equation.
  241. burgers_exact_test
  242. burgers_steady_viscous, an Octave code which solves the steady (time-independent) viscous Burgers equation using the finite difference method (FDM) applied to the conservative form of the equation, using the Newton method to solve the resulting nonlinear system.
  243. burgers_steady_viscous_test
  244. burgers_time_inviscid, an Octave code which solves the time-dependent inviscid Burgers equation using the finite difference method (FDM), and one of six solution methods.
  245. burgers_time_inviscid_test
  246. burgers_time_viscous, an Octave code which solves the time-dependent viscous Burgers equation using the finite difference method (FDM) applied to the conservative form of the equation.
  247. burgers_time_viscous_test
  248. bvec, an Octave code which demonstrates how signed integers can be stored as binary vectors, and arithmetic can be performed on them.
  249. bvec_test
  250. bvp_fd, an Octave code which demonstrates the use of the finite difference method (FDM) to solve a boundary value problem (BVP).
  251. bvp_fd_test
  252. bvp_shooting_test, an Octave code which demonstrates the use of the shooting method to solve a boundary value problem (BVP).
  253. bwlabel_test, an Octave code which calls bwlabel(), which is given a binary matrix, and organizes the 1 values into labeled clusters, using 4-way or 8-way connectivity. For Octave, bwlabel() is part of the image() package.
  254. c8lib, an Octave code which implements certain elementary functions for complex 64 bit ("C8") variables;
  255. c8lib_test
  256. caesar, an Octave code which applies a Caesar Shift Cipher to a string of text.
  257. caesar_test
  258. calendar_nyt, an Octave code which shows the correspondence between dates and the New York Times volume and issue number;
  259. calendar_nyt_test
  260. calpak, an Octave code which computes various simple calendrical quantities. It works with various calendars including Egyptian, English, French Revolutionary, Gregorian, Julian, and Julian Ephemeris Date. It converts a date from one calendar to another. It returns the day of the week for a given date. It converts from day-number/year to day/month/year format. It calculates the time difference between two dates.
  261. calpak_test
  262. candy_count, an Octave code which counts the types of candy in a rectangular container, which might be a vector, matrix, or 3D box. The candy is assumed to have C possible types, and to have been entered into the container in a cycle that begins with type 1. While the vector case is easy, it is already difficult to come up with a general formula for the MxN matrix case.
  263. candy_count_test
  264. capacitor_2d_test, an Octave code which plots data from a model of a 2D capacitor, computed by FreeFem++() and transferred using the ffmatlib() library.
  265. capacitor_3d_test, an Octave code which plots data from a model of a 3D capacitor, computed by FreeFem++() and transferred using the ffmatlib() library.
  266. casino_simulation, an Octave code which simulates a casino game that gives you 20% of your bet for heads, and only takes 17% for tails. How much will you end up winning?
  267. casino_simulation_test
  268. cauchy_method, an Octave code which solves one or more ordinary differential equations (ODE) using the Cauchy method.
  269. cauchy_method_test
  270. cauchy_principal_value, an Octave code which uses Gauss-Legendre quadrature to estimate the Cauchy Principal Value (CPV) of certain singular integrals.
  271. cauchy_principal_value_test
  272. caustic, an Octave code which generates an image of a caustic, by drawing n equally spaced points in a circle, and then connecting specific pairs of points using a spacing parameter m.
  273. caustic_test
  274. cavity_flow_display, an Octave code which displays a single velocity field solution for the driven cavity;
  275. cavity_flow_display_test
  276. cc_display, an Octave code which displays the points used in a 2D Clenshaw-Curtis quadrature rule;
  277. cc_display_test
  278. cc_project, an Octave code which computes generalized Clenshaw-Curtis quadrature rules for semi-infinite and infinite intervals, by John Boyd.
  279. cc_project_test
  280. ccl_test, an Octave code which estimates the Lebesgue constants for sets of points in [-1,+1] computed in several ways. The program is probably of limited interest except as an example of an application of the lebesgue_constant() function.
  281. ccn_rule, an Octave code which defines a Clenshaw Curtis Nested (CCN) quadrature rule.
  282. ccn_rule_test
  283. ccs_io an Octave code which reads and writes sparse linear systems stored in the Compressed Column Storage (CCS) format.
  284. ccs_io_test
  285. ccs_to_st an Octave code which converts a sparse matrix from Compressed Column Storage (CCS) to sparse triplet (ST) format.
  286. ccs_to_st_test
  287. ccvt_reflect, an Octave code which calculates a Constrained Centroidal Voronoi Tessellation (CCVT) for points constrained to lie in a box, with some points pushed towards the boundary;
  288. ccvt_reflect_test
  289. cell, an Octave code which defines a cell array, a generalization of an array which compactly stores and retrieves vector or matrix data of varying size, such as the rows of a triangular matrix.
  290. cell_test
  291. cellular_automaton, an Octave code which prints or plots the evolution of Cellular Automaton rule #30.
  292. cellular_automaton_test
  293. cg, an Octave code which implements a simple version of the conjugate gradient (CG) method for solving a system of linear equations of the form A*x=b, suitable for situations in which the matrix A is symmetric positive definite (SPD).
  294. cg_test
  295. cg_lab_triangles, an Octave code which was a computer lab assignment on computational geometry and triangles;
  296. cg_lab_triangles_test
  297. cg_ne, an Octave code which implements the conjugate gradient method (CG) for the normal equations, where the matrix A is not symmetric positive definite (SPD). In this case, it is attempted to set up and solve the normal equations A'*A*x=A'*b.
  298. cg_ne_test
  299. cg_rc, an Octave code which implements the conjugate gradient (CG) method for solving a symmetric positive definite (SPD) sparse linear system A*x=b, using reverse communication (RC).
  300. cg_rc_test
  301. cg_squared, an Octave code which implements the conjugate gradient squared (CGS) method for solving a nonsymmetric sparse linear system A*x=b.
  302. cg_squared_test
  303. change_diophantine, an Octave code which sets up a Diophantine equation to solve the change making problem, which counts the number of ways a given sum can be formed using coins of various denominations.
  304. change_diophantine_test
  305. change_dynamic, an Octave code which uses dynamic programming to solve the change making problem, in which a given sum is to be formed using coins of various denominations.
  306. change_dynamic_test
  307. change_greedy, an Octave code which uses the greedy method to seek a solution to the change making problem, which tries to match a given amount by selecting coins of various denominations.
  308. change_greedy_test
  309. change_polynomial, an Octave code which uses a polynomial multiplication algorithm to count the ways of making various sums using a given number of coins.
  310. change_polynomial_test
  311. chebyshev, an Octave code which computes the Chebyshev interpolant/approximant to a given function over an interval.
  312. chebyshev_test
  313. chebyshev_interp_1d, an Octave code which determines the combination of Chebyshev polynomials which interpolates a set of data, so that p(x(i)) = y(i).
  314. chebyshev_interp_1d_test
  315. chebyshev_matrix, an Octave code which defines the Chebyshev differentiation matrix, by Lloyd Trefethen.
  316. chebyshev_matrix_test
  317. chebyshev_polynomial, an Octave code which considers the Chebyshev polynomials T(i,x), U(i,x), V(i,x) and W(i,x).
  318. chebyshev_polynomial_test
  319. chebyshev_series, an Octave code which evaluates a Chebyshev series approximating a function f(x), while efficiently computing one, two, three or four derivatives of the series, by Manfred Zimmer.
  320. chebyshev_series_test
  321. chebyshev1_exactness, an Octave code which tests the polynomial exactness of Gauss-Chebyshev type 1 quadrature rules.
  322. chebyshev1_exactness_test
  323. chebyshev1_rule, an Octave code which computes and writes out a Gauss-Chebyshev type 1 quadrature rule of given order.
  324. chebyshev1_rule_test
  325. chebyshev2_exactness, an Octave code which tests the polynomial exactness of Gauss-Chebyshev type 2 quadrature rules.
  326. chebyshev2_exactness_test
  327. chebyshev2_rule, an Octave code which computes and writes out a Gauss-Chebyshev type 2 quadrature rule of given order.
  328. chebyshev2_rule_test
  329. chen_ode, an Octave code which sets up and solves the Chen system of ordinary differential equations (ODE).
  330. chen_ode_test
  331. cheney_kincaid, an Octave code which contains examples from the text 'Numerical Mathematics and Computing', by Cheney and Kincaid.
  332. cheney_kincaid_test
  333. chinese_remainder_theorem, an Octave code which demonstrates the Chinese remainder theorem, for reconstructing a number based on its remainders against a set of bases.
  334. chinese_remainder_theorem_test
  335. chirikov_iteration, an Octave code which applies the Chirikov map repeatedly to a given (x,y) initial condition.
  336. chirikov_iteration_test
  337. chladni_figures, an Octave code which creates Chladni figures of the eigenmodes of a thin vibrating plate, by Martin Gander and Felix Kwok.
  338. chladni_figures_test
  339. chrpak, an Octave code which manipulates characters and strings;
  340. chrpak_test
  341. chuckaluck_simulation, an Octave code which simulates the Chuck-a-Luck gambling game.
  342. chuckaluck_simulation_test
  343. circle_arc_grid, an Octave code which computes grid points along a circular arc.
  344. circle_arc_grid_test
  345. circle_circles_packing, an Octave code which tries to randomly pack as many non-overlapping circles of equal size into a larger circle, with a typical final coverage density of about 0.547. This is an example of random sequential adsorption (RSA).
  346. circle_circles_packing_test
  347. circle_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the circumference of the unit circle in 2D.
  348. circle_distance_test
  349. circle_grid_display an Octave code which reads a matrix of integers, and draws a corresponding grid of circles filled with color.
  350. circle_grid_display_test
  351. circle_integrals, an Octave code which returns the exact value of the integral of any monomial over the circumference of the unit circle in 2D.
  352. circle_integrals_test
  353. circle_map, an Octave code which illustrates how a matrix maps points on the unit circle to an ellipse.
  354. circle_map_test
  355. circle_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function along the circumference of the unit circle in 2D;
  356. circle_monte_carlo_test
  357. circle_positive_distance, an Octave code which estimates the mean and variance of the distance between a random pair of points on the circumference of the unit positive circle in 2D.
  358. circle_positive_distance_test
  359. circle_rule, an Octave code which computes quadrature rules for the unit circle in 2D, to approximate integrals of f(x,y) over the circumference of the circle of radius 1 and center (0,0).
  360. circle_rule_test
  361. circle_segment, an Octave code which carries out computations associated with a circle segment, including height, angle, area, centroid, sampling, and quadrature.
  362. circle_segment_test
  363. circles, an Octave code which draws one or more circles, while controlling the center locations, radii, colors, edge colors, and transparency, by Chad Greene.
  364. circles_test
  365. cities, an Octave code which works with city-to-city distance matrices;
  366. cities_test
  367. clausen, an Octave code which evaluates a Chebyshev interpolant to the Clausen function Cl2(x).
  368. clausen_test
  369. clenshaw_curtis_rule, an Octave code which implements a Clenshaw Curtis quadrature rule;
  370. clenshaw_curtis_rule_test
  371. clock_solitaire_simulation, an Octave code which simulates the game of clock solitaire. The deck is dealt into 13 piles of 4 cards each. Repeatedly, the top card a pile is removed, and its rank indicates the next pile to consider. Game continues until an empty pile is reached. The game is won if all piles are empty. The quantity of interest is the probability of winning.
  372. clock_solitaire_simulation_test
  373. closest_pair_brute, an Octave code which uses brute force to solve a 2D version of the closest pair problem, which identifies the closest pair of points in a given collection.
  374. closest_pair_brute_test
  375. closest_pair_divcon, an Octave code which uses a divide and conquer approach to solve a 2D version of the closest pair problem.
  376. closest_pair_divcon_test
  377. closest_point_brute, an Octave code which uses brute force to find the nearest of a set of N points in D dimensions to a given test point. This is sometimes called a nearest neighbor calculation.
  378. closest_point_brute_test
  379. cnoise, an Octave code which generates samples of noise obeying a 1/f^alpha power law, by Miroslav Stoyanov.
  380. cnoise_test
  381. cobweb_plot, an Octave code which displays a cobweb plot illustrating the process of function iteration.
  382. cobweb_plot_test
  383. coin_simulation, an Octave code which looks at ways of simulating or visualizing the results of many tosses of a fair or biased coin.
  384. coin_simulation_test
  385. collatz, an Octave code which computes and analyzes the Collatz sequence, also known as the hailstone sequence or 3n+1 sequence;
  386. collatz_test
  387. collatz_polynomial, an Octave code which implements the Collatz polynomial iteration, a polynomial analog of the numerical iteration that is also known as the 3n+1 conjecture or the hailstone sequence.
  388. collatz_polynomial_test
  389. collatz_recursive, an Octave code which demonstrates recursive programming by considering the simple Collatz 3n+1 problem.
  390. collatz_recursive_test
  391. collocation, an Octave code which demonstrates the use of collocation to produce a function g(x) that satisfies the same constraints as a function f(x), but only at a discrete set of points.
  392. collocation_test
  393. colored_noise, an Octave code which generates samples of noise obeying a 1/f^alpha power law.
  394. colored_noise_test
  395. combo, an Octave code which ranks, unranks, enumerates, lists and randomly selects balanced sequences, cycles, graphs, Gray codes, subsets, partitions, permutations, restricted growth functions, Pruefer codes and trees.
  396. combo_test
  397. companion_matrix, an Octave code which computes the companion matrix for a polynomial. The polynomial may be represented in the standard monomial basis, or as a sum of Chebyshev, Gegenbauer, Hermite, Laguerre, or Lagrange basis polynomials. All the roots of the polynomial can be determined as the eigenvalues of the corresponding companion matrix.
  398. companion_matrix_test
  399. compass_search, an Octave code which seeks the minimizer of a scalar function of several variables using compass search, a direct search algorithm that does not use derivatives.
  400. compass_search_test
  401. complex_numbers_test, an Octave code which demonstrates some of the features of using complex numbers.
  402. components, an Octave code which organizes contiguous cells into labeled clusters, for a 1D, 2D, or 3D array. This code has uses in image analysis and percolation simulation.
  403. components_test
  404. condition, an Octave code which implements methods of computing or estimating the condition number of a matrix.
  405. condition_test
  406. conservation_ode, an Octave code which monitors the conservation of a quantity that should be constant, during the solution of an ordinary differential equation (ODE).
  407. conservation_ode_test
  408. conte_deboor, an Octave code which contains examples from the text 'Elementary Numerical Analysis' by Conte and deBoor.
  409. conte_deboor_test
  410. continuation, an Octave code which implements the continuation method for a simple 2D problem, involving finding a point on the unit circle, and then finding a sequence of nearby points that trace out the full curve, using only the information available in the implicit definition of the curve from the function f(x,y)=x^2+y^2-1.
  411. continuation_test
  412. continued_fraction an Octave code which implements some simple algorithms for dealing with simple and generalized continued fractions.
  413. continued_fraction_test
  414. contour_gradient, an Octave code which displays contours and gradient vectors for a function f(x,y).
  415. contour_gradient_test
  416. contour_gradient_3d, an Octave code which displays contours and gradient vectors for a function f(x,y) in a 3D display.
  417. contour_gradient_3d_test
  418. contour_sequence4, an Octave code which creates images suitable for animation from one XY file and a sequence of u(x,y) data files;
  419. contour_sequence4_test
  420. control_bio, an Octave code which optimizes a given cost functional of a biological model using optimal control, based on work by Suzanne Lenhart and John Workman.
  421. control_bio_test
  422. control_bio_homework, an Octave code which handles several homework problems for a biological control class.
  423. convective_rolls_test, an Octave code which plots data describing the convective rolling behavior of a fluid being heated from below, as computed by FreeFem++() and transferred using the ffmatlib() library.
  424. convergence, an Octave code which is given a sequence of approximation errors and estimates the order of convergence, assuming the results correspond to a a sequence of decreasing mesh sizes h, or increasing mesh counts n.
  425. convergence_test
  426. convhull_test, an Octave code which demonstrates the use of the built-in function convhull() for the computation of the convex hull of a set of 2D points.
  427. coordinate_search, an Octave code which seeks the minimizer of a scalar function of several variables, by Jeff Borggaard.
  428. coordinate_search_test
  429. cordic, an Octave code which computes a few special functions using the CORDIC algorithm.
  430. cordic_test
  431. correlation, an Octave code which contains statistical correlation functions.
  432. correlation_test
  433. cosine_transform, an Octave code which demonstrates some simple properties of the discrete cosine transform (DCT).
  434. cosine_transform_test
  435. counterfeit_detection, an Octave code which considers problems in which one or more counterfeit coins are to be identified by the fact that they do not have the standard weight.
  436. counterfeit_detection_test
  437. cplex_solution_read, an Octave code which extracts solution data from a cplex() result file.
  438. cplex_solution_read_test
  439. cpr, an Octave code which implements the Chebyshev Proxy Rootfinder (CPR) to locate all the real zeros of a smooth real function f(x) within an interval [a,b], by John Boyd.
  440. cpr_test
  441. craps_simulation, an Octave code which simulates the gambling game of craps, in which a player rolls two dice. On the first roll, the player wins immediately if a 7 or 11 is rolled, and loses immediately if a 2, 3 or 12 is rolled. Otherwise, the sum of the dice on this first roll is called the point. The player now continues to roll the dice, winning if the point is rolled again, and losing if a 7 is rolled.
  442. craps_simulation_test
  443. crs_io, an Octave code which reads and writes sparse linear systems stored in the Compressed Row Storage (CRS) format.
  444. crs_io_test
  445. cube_arbq_rule, an Octave code which returns quadrature rules, with exactness up to total degree 15, over the interior of the symmetric cube in 3D, by Hong Xiao and Zydrunas Gimbutas.
  446. cube_arbq_rule_test
  447. cube_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected in the interior of the unit cube in 3D.
  448. cube_distance_test
  449. cube_exactness, an Octave code which investigates the polynomial exactness of quadrature rules over the interior of a cube in 3D.
  450. cube_exactness_test
  451. cube_felippa_rule, an Octave code which returns a Felippa quadrature rules for approximating integrals over the interior of a cube in 3D.
  452. cube_felippa_rule_test
  453. cube_grid, an Octave code which computes a grid of points over the interior of a cube in 3D.
  454. cube_grid_test
  455. cube_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit cube in 3D.
  456. cube_integrals_test
  457. cube_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit cube in 3D.
  458. cube_monte_carlo_test
  459. cube_surface_distance, an Octave code which estimates the expected value of the distance between a pair of points randomly selected on the surface of the unit cube.
  460. cube_surface_distance_test
  461. cuda_loop, an Octave code which shows how, in a CUDA program running on a Graphics Processing Unit (GPU), the choice of block and thread factors determines the allocation of tasks to processors.
  462. cuda_loop_test
  463. cvt, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) in M dimensions;
  464. cvt_test
  465. cvt_1d_lloyd, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) within the interval [0,1], under a uniform density, using the Lloyd method to compute the Voronoi regions exactly.
  466. cvt_1d_lloyd_test
  467. cvt_1d_lumping, an Octave code which allows the user to carry out a lumped version of the Lloyd iterative algorithm for a centroidal Voronoi Tessellation (CVT() in the interval [-1,+1], and is applied to investigate a relationship between a CVT and the Chebyshev Zero nodes.
  468. cvt_1d_lumping_test
  469. cvt_1d_nonuniform, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) in 1 dimension, under a nonuniform density, and plots the evolution of the locations of the generators during the iteration;
  470. cvt_1d_nonuniform_test
  471. cvt_1d_sampling, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) within the interval [0,1], under a uniform density, using sampling to estimate the Voronoi regions.
  472. cvt_1d_sampling_test
  473. cvt_2d_lumping, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) within the unit square [-1,1]^2, under a Chebyshev density, using weighted sampling (lumping) to estimate the Voronoi regions.
  474. cvt_2d_lumping_test
  475. cvt_2d_sampling, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) within the unit square [0,1]x[0,1], under a uniform density, using sampling to estimate the Voronoi regions.
  476. cvt_2d_sampling_test
  477. cvt_3d_lumping, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) within the unit cube [-1,1]^3, under a Chebyshev density, using weighted sampling (lumping) to estimate the Voronoi regions.
  478. cvt_3d_lumping_test
  479. cvt_3d_sampling, an Octave code which computes an N-point Centroidal Voronoi Tessellation (CVT) within the unit cube [0,1]^3, under a uniform density, using sampling to estimate the Voronoi regions.
  480. cvt_3d_sampling_test
  481. cvt_basic, an Octave code which calculates a Centroidal Voronoi Tessellation (CVT) in a square with uniform density. It is intended as an introduction to the cvt_square_uniform() code.
  482. cvt_basic_test
  483. cvt_box, an Octave code which calculates a Centroidal Voronoi Tessellation (CVT) constrained to a box region, with points projected to the boundary;
  484. cvt_box_test
  485. cvt_circle_nonuniform, an Octave code which demonstrates the computation of a centroidal Voronoi Tessellation (CVT) over a circular region, using a nonuniform density.
  486. cvt_circle_nonuniform_test
  487. cvt_circle_uniform, an Octave code which computes a centroidal Voronoi Tessellation (CVT) over a circular region, using a uniform density.
  488. cvt_circle_uniform_test
  489. cvt_corn, an Octave code which studies a 2D model of the growth of a corn kernel, by treating the surface and interior biological cells as points to be organized by a Centroidal Voronoi Tessellation (CVT) with a nonuniform density; during a sequence of growth steps, new biological cells are randomly added to the surface and interior.
  490. cvt_corn_test
  491. cvt_ellipse_uniform, an Octave code which iteratively calculates a Centroidal Voronoi Tessellation (CVT) over an ellipse, with a uniform density.
  492. cvt_ellipse_uniform_test
  493. cvt_metric, an Octave code which computes a Centroidal Voronoi Tessellation (CVT) under a spatially varying metric;
  494. cvt_metric_test
  495. cvt_square_nonuniform, an Octave code which iteratively calculates a Centroidal Voronoi Tessellation (CVT) over a square, with a nonuniform density.
  496. cvt_square_nonuniform_test
  497. cvt_square_pdf_discrete, an Octave code which iteratively calculates a Centroidal Voronoi Tessellation (CVT) over a square, with a density determined from a discrete PDF.
  498. cvt_square_pdf_discrete_test
  499. cvt_square_uniform, an Octave code which iteratively calculates a Centroidal Voronoi Tessellation (CVT) over a square, with a uniform density.
  500. cvt_square_uniform_test
  501. cvt_triangle_uniform, an Octave code which iteratively calculates a Centroidal Voronoi Tessellation (CVT) over a triangle, with a uniform density.
  502. cvt_triangle_uniform_test
  503. cvtm_1d, an Octave code which estimates a mirror-periodic centroidal Voronoi Tessellation (CVTM) in the periodic interval [0,1], using a version of the Lloyd iteration.
  504. cvtm_1d_test
  505. cvtp, an Octave code which creates a periodic Centroidal Voronoi Tessellation (CVTP).
  506. cvtp_test
  507. cvtp_1d, an Octave code which estimates a periodic centroidal Voronoi Tessellation (CVTP) in the periodic interval [0,1], using a version of the Lloyd iteration.
  508. cvtp_1d_test
  509. cycle_brent, an Octave code which carries out an iterated function evaluation, and seeks to determine the nearest element of a cycle, and the cycle length, using the Brent method.
  510. cycle_brent_test
  511. cycle_floyd, an Octave code which carries out an iterated function evaluation, and seeks to determine the nearest element of a cycle, and the cycle length, using the Floyd method.
  512. cycle_floyd_test
  513. cyclic_reduction, an Octave code which solves a tridiagonal linear system using cyclic reduction;
  514. cyclic_reduction_test
  515. delaunay_test, an Octave code which calls the built-in delaunay() function, which computes the Delaunay triangulation of a set of points.
  516. delsq, an Octave code which is given a grid G, and returns a corresponding sparse matrix D that defines the Laplacian operator on G. MATLAB includes a built-in version of this function.
  517. delsq_test
  518. dfield9, an Octave code which allows a user to interactively specify the right hand side of an ordinary differential equation (ODE). The program then displays the corresponding direction field. If the user clicks on any point in the image as an initial condition, the program displays the corresponding solution curve. The original version of this code was by John Polking.
  519. dg1d_advection, an Octave code which uses the Discontinuous Galerkin Method (DG) to approximate a solution of the advection equation. The original version of the code was written by Jan Hesthaven and Tim Warburton.
  520. dg1d_advection_test
  521. dg1d_burgers, an Octave code which uses the Discontinuous Galerkin Method (DG) to approximate a solution of the unsteady 1D Burgers equation. The original version of the code was written by Jan Hesthaven and Tim Warburton.
  522. dg1d_burgers_test
  523. dg1d_heat, an Octave code which uses the Discontinuous Galerkin Method (DG) to approximate a solution of the unsteady 1D heat equation. The original version of the code was written by Jan Hesthaven and Tim Warburton.
  524. dg1d_heat_test
  525. dg1d_maxwell, an Octave code which uses the Discontinuous Galerkin Method (DG) to approximate a solution of the Maxwell equations. The original version of the code was written by Jan Hesthaven and Tim Warburton.
  526. dg1d_maxwell_test
  527. dg1d_poisson, an Octave code which applies the discontinuous Galerkin method (DG) to a 1D version of the Poisson equation; the original version of the code was written by Beatrice Riviere.
  528. dg1d_poisson_test
  529. diaphony, an Octave code which reads a file of N points in M dimensions and computes its diaphony, a measure of point dispersion.
  530. diaphony_test
  531. dice_simulation, an Octave code which simulates N tosses of M dice, making a histogram of the resulting sums.
  532. dice_simulation_test
  533. dictionary_code, an Octave code which demonstates how a text file can be compressed and decompressed using a dictionary code.
  534. dictionary_code_test
  535. diff_test, an Octave code which calls diff(), which computes differences in a vector of data, which can be scaled to estimate derivatives of equally spaced data.
  536. diff_center, an Octave code which interactively uses centered differences to estimate the derivative of a function f(x), using a stepsize h.
  537. diff_center_test
  538. diff_forward, an Octave code which interactively uses forward differences to estimate the derivative of a function f(x), using a stepsize h.
  539. diff_forward_test
  540. diff2_center, an Octave code which interactively uses centered differences to estimate the second derivative of a function f(x), using a stepsize h.
  541. diff2_center_test
  542. differ, an Octave code which is given function values at equally spaced locations, and the order of a derivative, and uses the finite difference method (FDM) to compute a linear combination of these function values which approximated that derivative.
  543. differ_test
  544. diffusion_pde, an Octave code which solves the diffusion partial differential equation (PDE) dudt = mu * d2udx2 in one spatial dimension and time, with a constant diffusion coefficient mu, and periodic or zero Neumann boundary conditions, using the forward time centered space (FTCS) method or ode45().
  545. diffusion_pde_test
  546. digital_dice, an Octave code which carries out probability simulations described in "Digital Dice", by Paul Nahin;
  547. digital_dice_test
  548. digraph_adj, an Octave code which carries out operations on abstract digraphs, a kind of graph with directed edges, described by an adjacency matrix.
  549. digraph_adj_test
  550. dijkstra, an Octave code which implements a simple version of the Dijkstra minimum distance algorithm for graphs.
  551. dijkstra_test
  552. diophantine, an Octave code which finds one solution of a diophantine equation in any number of variables.
  553. diophantine_test
  554. diophantine_nd, an Octave code which is given a Diophantine equation in N variables, and returns all nonnegative solutions, or all strictly positive solutions.
  555. diophantine_nd_test
  556. discrete_pdf_sample_2d, an Octave code which demonstrates how to construct a Probability Density Function (PDF) from a table of sample data, and then to use that PDF to create new samples.
  557. discrete_pdf_sample_2d_test
  558. disk_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of the unit disk in 2D.
  559. disk_distance_test
  560. disk_grid, an Octave code which computes grid points within the interior of a disk of user specified radius and center in 2D, using gnuplot to create an image of the grid.
  561. disk_grid_test
  562. disk_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of a disk of radius R centered at the origin.
  563. disk_integrals_test
  564. disk_monte_carlo, an Octave code which applies a Monte Carlo method to estimate integrals of a function over the interior of the general disk in 2D.
  565. disk_monte_carlo_test
  566. disk_positive_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of the unit positive disk in 2D.
  567. disk_positive_distance_test
  568. disk_rule, an Octave code which computes quadrature rules for the general disk in 2D.
  569. disk_rule_test
  570. disk01_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit disk in 2D.
  571. disk01_integrals_test
  572. disk01_integrands, an Octave code which defines several test integrals over the unit disk, making it possible to check the accuracy of quadrature rules.
  573. disk01_integrands_test
  574. disk01_monte_carlo, an Octave code which applies a Monte Carlo method to estimate integrals of a function over the interior of the unit disk in 2D;
  575. disk01_monte_carlo_test
  576. disk01_positive_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit positive disk in 2D;
  577. disk01_positive_monte_carlo_test
  578. disk01_positive_rule, an Octave code which computes a quadrature rule over the interior of the unit positive disk in 2D, with radius 1 and center (0,0).
  579. disk01_positive_rule_test
  580. disk01_rule, an Octave code which computes quadrature rules for the unit disk in 2D.
  581. disk01_rule_test
  582. dist_plot, an Octave code which makes contour plots of the distance function, as defined and used in Persson and Strang's distmesh() code;
  583. dist_plot_test
  584. distmesh, an Octave code which carries out a method of mesh generation; by Per-Olof Persson and Gilbert Strang.
  585. distmesh_test
  586. distmesh_3d, an Octave code which carries out a method of mesh generation in 3D, by Per-Olof Persson and Gilbert Strang.
  587. distmesh_3d_test
  588. divdif, an Octave code which creates, prints and manipulates divided difference polynomials from a table of values (x,f(x)). The code can compute the coefficients of the Newton and power sum forms of the interpolating polynomial. It can compute the derivative or antiderivate polynomial. It can compute the form of the Lagrange basis polynomials. It can compute the points and weights for Newton Cotes quadrature rules. It can compute the weights for a Lagrange interpolation scheme.
  589. divdif_test
  590. doomsday, an Octave code which is given the year, month and day of a date, and uses John Conway's doomsday algorithm to determine the corresponding day of the week.
  591. doomsday_test
  592. dosage_ode, an Octave code which sets up and solves a system of ordinary differential equations (ODE) to simulate the blood levels of a medicinal drug that should stay between medicinal and toxic limits.
  593. dosage_ode_test
  594. dot_l2, an Octave code which interactively estimates the L2 dot product of two functions: dot_l2(f(x),g(x))_= integral ( a <= x <= b ) f(x) g(x) dx
  595. dot_l2_test
  596. double_c_data, an Octave code which generates, plots and writes out 2D data that forms two interlocking C shapes.
  597. double_c_data_test
  598. double_well_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) which models the motion of a particle in a double well potential.
  599. double_well_ode_test
  600. dream, an Octave code which implements the DREAM algorithm for accelerating Markov Chain Monte Carlo (MCMC) convergence using differential evolution, using five user functions to define the problem, by Guannan Zhang.
  601. dream_test
  602. duel_simulation, an Octave code which simulates N repetitions of a duel between two players, each of whom has a known firing accuracy.
  603. duel_simulation_test
  604. dueling_idiots, an Octave code which carries out the probability simulations described in "Dueling Idiots", by Paul Nahin;
  605. dueling_idiots_test
  606. duffing_ode, an Octave code which sets up and solves a second-order ordinary differential equation (ODE) whose solution can exhibit chaotic behavior.
  607. duffing_ode_test
  608. e_spigot, an Octave code which produces any number of digits of the decimal expansion of e.
  609. e_spigot_test
  610. edge, an Octave code which defines some test functions in 1D, 2D and 3D for the detection of edges or discontinuities.
  611. edge_test
  612. eigenfaces, an Octave code which applies principal component analysis (PCA) to a set of images.
  613. eigenfaces_test
  614. eigs_test, an Octave code which calls eigs(), which is a built-in system function which computes the eigenvalues and eigenvectors of a matrix.
  615. elfun, an Octave code which evaluates elliptic integrals, include Bulirsch's integrals cel(), cel1(), cel2(), cel3(), Carlson integrals rc(), rd(), rf(), rg(), rj(), and Jacobi functions cn(), dn(), sn(), by Milan Batista.
  616. elfun_test
  617. ellipse, an Octave code which carries out geometric calculations for ellipses and ellipsoids, including area, distance to a point, eccentricity, perimeter, points along the perimeter, random sampling, conversion between standard and quadratic forms.
  618. ellipse_test
  619. ellipse_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the circumference of the ellipse (x/a)^2+(y/b)^2=1 in 2D.
  620. ellipse_distance_test
  621. ellipse_grid, an Octave code which computes a grid of points over the interior of an ellipse in 2D.
  622. ellipse_grid_test
  623. ellipse_monte_carlo, an Octave code which uses the Monte Carlo method to estimate the value of integrals over the interior of an ellipse in 2D.
  624. ellipse_monte_carlo_test
  625. ellipsoid, an Octave code which carries out geometric calculations for ellipsoids, including area, random sampling, conversion between standard and quadratic forms.
  626. ellipsoid_test
  627. ellipsoid_grid, an Octave code which computes a grid of points over the interior of an ellipsoid in 3D.
  628. ellipsoid_grid_test
  629. ellipsoid_monte_carlo, an Octave code which uses the Monte Carlo method to estimate the value of integrals over the interior of an ellipsoid in M dimensions.
  630. ellipsoid_monte_carlo_test
  631. elliptic_integral, an Octave code which evaluates complete elliptic integrals of first, second and third kind, using the Carlson elliptic integral functions.
  632. elliptic_integral_test
  633. epicycloid, an Octave code which plots an epicycloid curve.
  634. epicycloid_test
  635. equidistribution, an Octave code which investigates equidistribution properties relating to density functions and point sets.
  636. equidistribution_test
  637. eros, an Octave code which implements elementary row operations (ERO) for the interactive solution of a system of linear equations.
  638. eros_test
  639. errors, an Octave code which illustrates the failure of numerical algorithms;
  640. errors_test
  641. eternity, an Octave code which considers the eternity puzzle, an irregular dodecagon that is to be tiled by 209 pieces, each formed by 12 contiguous 30-60-90 triangles, known as polydrafters.
  642. eternity_test
  643. eternity_hexity, an Octave code which evaluates and manipulates a six-fold parity quantity associated with grids and tiles used in the Eternity puzzle.
  644. eternity_hexity_test
  645. eternity_tile, an Octave code which considers the individual tiles of the eternity puzzle, 209 distinct pieces, each formed by 36 contiguous 30-60-90 triangles, known as polydrafters, as well as tiles for the serenity and trinity puzzles, and the hat and turtle aperiodic monotiles.
  646. eternity_tile_test
  647. euclid, an Octave code which investigates various versions of Euclid's algorithm for computing the greatest common divisor (GCD) of two integers.
  648. euclid_test
  649. euler, an Octave code which solves one or more ordinary differential equations (ODE) using the forward Euler method.
  650. euler_test
  651. exactness, an Octave code which investigates the exactness of quadrature rules that estimate the integral of a function with a density, such as 1, exp(-x) or exp(-x^2), over an interval such as [-1,+1], [0,+oo) or (-oo,+oo).
  652. exactness_test
  653. exm, an Octave code which contains scripts and data discussed in the electronic textbook "Experiments with Matlab", by Cleve Moler, including easter, Fast Fourier Transforms, Fibonacci numbers, the fractal fern, the game of Life, magic matrices, the Mandelbrot set, Morse code, Music, Ordinary Differential Equations, the page rank algorithm, planetary orbits, predator prey equations, the shallow water equations, Sudoku puzzles.
  654. exm_test
  655. exp_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) whose solution is an exponential function.
  656. exp_ode_test
  657. faces_average, an Octave code which averages several images of the same face;
  658. faces_average_test
  659. fair_dice_simulation, an Octave code which simulates N tosses of 2 dice, making a histogram of the resulting sums.
  660. fair_dice_simulation_test
  661. faure, an Octave code which computes the Faure M dimensional Quasi Mont Carlo (QMC) sequence;
  662. faure_test
  663. fd_predator_prey, an Octave code which solves a time-dependent predator prey system using the finite difference method (FDM).
  664. fd_predator_prey_test
  665. fd_to_tec, an Octave code which converts finite difference method (FDM) models into tecplot() ASCII files.
  666. fd_to_tec_test
  667. fd1d_advection_diffusion_steady, an Octave code which applies the finite difference method (FDM) to solve the steady advection diffusion equation v*ux-k*uxx=0 in one spatial dimension, with constant velocity v and diffusivity k.
  668. fd1d_advection_diffusion_steady_test
  669. fd1d_advection_ftcs, an Octave code which applies the finite difference method (FDM) to solve the time-dependent advection equation ut = - c * ux in one spatial dimension, with a constant velocity, using the forward time centered space (FTCS) method.
  670. fd1d_advection_ftcs_test
  671. fd1d_advection_lax, an Octave code which applies the finite difference method (FDM) to solve the time-dependent advection equation ut = - c * ux in one spatial dimension, with a constant velocity, using the Lax method to approximate the time derivative.
  672. fd1d_advection_lax_test
  673. fd1d_advection_lax_wendroff, an Octave code which applies the finite difference method (FDM) to solve the time-dependent advection equation ut = - c * ux in one spatial dimension, with a constant velocity, using the Lax-Wendroff method to approximate the time derivative.
  674. fd1d_advection_lax_wendroff_test
  675. fd1d_burgers_lax, an Octave code which applies the finite difference method (FDM) and the Lax Wendroff method to solve the non-viscous time-dependent Burgers equation in one spatial dimension.
  676. fd1d_burgers_lax_test
  677. fd1d_burgers_leap, an Octave code which applies the finite difference method (FDM) and the leapfrog approach to solve the non-viscous time-dependent Burgers equation in one spatial dimension.
  678. fd1d_burgers_leap_test
  679. fd1d_bvp, an Octave code which applies the finite difference method (FDM) to a two point boundary value problem (BVP) in one spatial dimension.
  680. fd1d_bvp_test
  681. fd1d_display, an Octave code which reads a pair of files defining a 1D finite difference method (FDM) of a function, and plots the data.
  682. fd1d_display_test
  683. fd1d_heat_explicit, an Octave code which implements a finite difference method (FDM), explicit in time, to solve the time dependent 1D heat equation;
  684. fd1d_heat_explicit_test
  685. fd1d_heat_implicit, an Octave code which implements a finite difference method (FDM), implicit in time, to solve the time dependent 1D heat equation;
  686. fd1d_heat_implicit_test
  687. fd1d_heat_steady, an Octave code which implements a finite difference method (FDM) for the steady (time independent) 1D heat equation;
  688. fd1d_heat_steady_test
  689. fd1d_poisson, an Octave code which solves a Poisson equation over a user-specified discretized interval, with given functions f(x) (right hand side) and g(x) (Dirichlet boundary conditions), using the Finite Difference Method (FDM).
  690. fd1d_poisson_test
  691. fd1d_predator_prey, an Octave code which implements the finite difference method (FDM) for a predator-prey system with time and 1D spatial dependence, by Marcus Garvie.
  692. fd1d_predator_prey_test
  693. fd1d_predator_prey_plot, an Octave code which plots solutions of the predator prey differential equations, by Marcus Garvie.
  694. fd1d_predator_prey_plot_test
  695. fd1d_wave, an Octave code which applies the finite difference method (FDM) to solve the time-dependent wave equation utt = c * uxx in one spatial dimension.
  696. fd1d_wave_test
  697. fd2d_convergence_test, an Octave code which calls fd2d_poisson(), which repeatedly solves a Poisson equation on a sequence of finer meshes, so that the relationship between mesh size H and error norm E can be explored.
  698. fd2d_heat_steady, an Octave code which implements a finite difference method (FDM) for the steady (time independent) 2D heat equation;
  699. fd2d_heat_steady_test
  700. fd2d_poisson, an Octave code which solves a Poisson equation over a user-specified discretized rectangle, with given functions f(x,y) (right hand side) and g(x,y) (Dirichlet boundary conditions), using the Finite Difference Method (FDM).
  701. fd2d_poisson_test
  702. fd2d_predator_prey, an Octave code which implements a finite difference method (FDM) for a time and 2D space dependent predator-prey system, by Marcus Garvie.
  703. fd2d_predator_prey_test
  704. fd3d_poisson, an Octave code which solves a Poisson equation over a user-specified discretized 3d block, with given functions f(x,y,z) (right hand side) and g(x,y,z) (Dirichlet boundary conditions), using the Finite Difference Method (FDM).
  705. fd3d_poisson_test
  706. fem_basis, an Octave code which defines and evaluates finite element method (FEM) basis functions for any degree in an M dimensional simplex (1D interval, 2D triangle, 3D tetrahedron, and higher dimensional generalizations.)
  707. fem_basis_test
  708. fem_basis_q4_display, an Octave code which displays any single finite element method (FEM) basis function associated with an arbitrary linear quadrilateral Q4 mesh;
  709. fem_basis_q4_display_test
  710. fem_basis_t3_display, an Octave code which displays a basis function for the finite element method (FEM) associated with an arbitrary 3-node triangle T3 mesh;
  711. fem_basis_t3_display_test
  712. fem_basis_t4_display, an Octave code which displays a basis function for the finite element method (FEM) associated with an arbitrary 4-node triangle T4 mesh;
  713. fem_basis_t4_display_test
  714. fem_basis_t6_display, an Octave code which displays a basis function for the finite element method (FEM) associated with an arbitrary 6-node triangle T6 mesh;
  715. fem_basis_t6_display_test
  716. fem_io, an Octave code which reads or writes FEM files, which describe the nodes, elements, and function values associated with a finite element method (FEM) model;
  717. fem_io_test
  718. fem_neumann, an Octave code which sets up a time-dependent reaction-diffusion equation in 1D, with Neumann boundary conditions, discretized using the finite element method (FEM).
  719. fem_neumann_test
  720. fem_to_gmsh, an Octave code which reads a pair of FEM files defining node coordinates and elements, of a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a gmsh() MESH file.
  721. fem_to_gmsh_test
  722. fem_to_medit, an Octave code which reads a set of FEM files defining the node coordinates, boundary nodes, and elements of a finite element mesh, and rewrites the data as a medit() MESH file.
  723. fem_to_medit_test
  724. fem_to_tec, an Octave code which converts FEM models into tecplot() ASCII files.
  725. fem_to_tec_test
  726. fem_to_triangle, an Octave code which reads FEM files defining a 2D mesh of triangles, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding pair of node and element files for use by Jonathan Shewchuk's triangle() program.
  727. fem_to_triangle_test
  728. fem_to_xml, an Octave code which reads a pair of FEM files defining node coordinates and elements, of a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding XML file for input to dolfin() or fenics().
  729. fem_to_xml_test
  730. fem1d, an Octave code which applies the finite element method (FEM), using piecewise linear basis functions, to a linear two point boundary value problem (BVP) in 1D;
  731. fem1d_test
  732. fem1d_adaptive, an Octave code which uses an adaptive mesh when applying the finite element method (FEM), with piecewise linear (PWL) basis functions, to a linear two point boundary value problem (BVP) in 1D;
  733. fem1d_adaptive_test
  734. fem1d_approximate, an Octave code which uses a given finite element method (FEM) mesh and piecewise linear (PWL) basis functions to approximate a set of data points, while controlling the variation in the derivative.
  735. fem1d_approximate_test
  736. fem1d_bvp_linear, an Octave code which applies the finite element method (FEM), with piecewise linear (PWL) elements, to a two point boundary value problem (BVP) in one spatial dimension, and compares the computed and exact solutions with the L2 and seminorm errors.
  737. fem1d_bvp_linear_test
  738. fem1d_bvp_quadratic, an Octave code which applies the finite element method (FEM), with piecewise quadratic (PWQ) elements, to a two point boundary value problem (BVP) in one spatial dimension, and compares the computed and exact solutions with the L2 and seminorm errors.
  739. fem1d_bvp_quadratic_test
  740. fem1d_display, an Octave code which reads three files defining a 1D arbitrary degree basis function associated with the finite element method (FEM), and displays a plot.
  741. fem1d_display_test
  742. fem1d_function_10_display, an Octave code which reads three files defining a 1D piecewise linear finite element method (FEM) function and displays a plot.
  743. fem1d_display_function_10_test
  744. fem1d_heat_explicit, an Octave code which uses the finite element method (FEM) and explicit time stepping to solve the time dependent heat equation in 1D.
  745. fem1d_heat_explicit_test
  746. fem1d_heat_implicit, an Octave code which uses the finite element method (FEM) and implicit time stepping to solve the time dependent heat equation in 1D.
  747. fem1d_heat_implicit_test
  748. fem1d_heat_steady, an Octave code which uses the finite element method (FEM) to solve the steady (time independent) 1D heat equation;
  749. fem1d_heat_steady_test
  750. fem1d_lagrange, an Octave code which sets up the matrices and vectors associated with the finite element method (FEM) solution of a boundary value problem (BVP) -u''+u=f(x), using Lagrange basis polynomials.
  751. fem1d_lagrange_test
  752. fem1d_nonlinear, an Octave code which applies the finite element method (FEM), with piecewise linear (PWL) basis functions, to a nonlinear two point boundary value problem (BVP) in 1D;
  753. fem1d_nonlinear_test
  754. fem1d_pack, an Octave code which contains utilities for 1D finite element method (FEM) calculations.
  755. fem1d_pack_test
  756. fem1d_pmethod, an Octave code which applies the p-method version of the finite element method (FEM) to a linear two point boundary value problem (BVP) in 1D;
  757. fem1d_pmethod_test
  758. fem1d_project, an Octave code which projects data into a finite element space, including the least squares approximation of data, or the projection of a finite element solution from one mesh to another.
  759. fem1d_project_test
  760. fem1d_sample, an Octave code which samples a scalar or vector finite element function of one variable, defined by FEM files, returning interpolated values at the sample points.
  761. fem1d_sample_test
  762. fem2d_bvp_linear, an Octave code which applies the finite element method (FEM), with piecewise linear (PWL) elements, to a 2D boundary value problem (BVP) in a rectangle, and compares the computed and exact solutions with the L2 and seminorm errors.
  763. fem2d_bvp_linear_test
  764. fem1d_bvp_quadratic, an Octave code which applies the finite element method (FEM), with piecewise quadratic (PWQ) elements, to a two point boundary value problem (BVP) in one spatial dimension, and compares the computed and exact solutions with the L2 and seminorm errors.
  765. fem1d_bvp_quadratic_test
  766. fem2d_bvp_serene, an Octave code which applies the finite element method (FEM), with serendipity elements, to a 2D boundary value problem (BVP) in a rectangle, and compares the computed and exact solutions with the L2 and seminorm errors.
  767. fem2d_bvp_serene_test
  768. fem2d_heat, an Octave code which applies the finite element method (FEM) to the time dependent heat equation on an arbitrary triangulated region in 2D;
  769. fem2d_heat_test
  770. fem2d_heat_rectangle, an Octave code which applies the finite element method (FEM) for the time-dependent heat equation on a triangulated rectangle in 2D;
  771. fem2d_heat_rectangle_test
  772. fem2d_heat_sparse, an Octave code which applies the finite element method (FEM) to the heat equation on an arbitrary triangulated region in 2D, using a sparse storage matrix format;
  773. fem2d_heat_sparse_test
  774. fem2d_mesh_display, an Octave code which reads a FEM model of a 2D mesh of elements of any uniform order and displays a plot of the elements and nodes, with optional numbering.
  775. fem2d_mesh_display_test
  776. fem2d_pack, an Octave code which performs simple 2D finite element method (FEM) computations;
  777. fem2d_pack_test
  778. fem2d_poisson_rectangle, an Octave code which solves the 2D Poisson equation on a rectangle, using the finite element method (FEM), and piecewise quadratic triangular elements.
  779. fem2d_poisson_rectangle_test
  780. fem2d_poisson_rectangle_linear, an Octave code which solves the 2D Poisson equation on a rectangle, using the finite element method (FEM), and piecewise linear triangular elements.
  781. fem2d_poisson_rectangle_linear_test
  782. fem2d_predator_prey_fast, an Octave code which implements a finite element method (FEM) for a time and 2D space dependent predator-prey system, on an arbitrary triangulated region, with a variety of possible boundary conditions, incorporating some optimizations, by Marcus Garvie.
  783. fem2d_predator_prey_fast_test
  784. fem2d_project, an Octave code which projects a function f(x,y), given as data, into a given finite element method (FEM) space of piecewise linear triangular elements.
  785. fem2d_project_test
  786. fem2d_project_function, an Octave code which projects a function f(x,y), given as a formula, into a given finite element method (FEM) space of piecewise linear triangular elements.
  787. fem2d_project_function_test
  788. fem2d_sample, an Octave code which samples a finite element method (FEM) function, defined by three text files describing the nodes, triangles, and coefficients, at arbitrary points.
  789. fem2d_sample_test
  790. fem2d_scalar_display, an Octave code which reads information about nodes, elements and nodal values for a 2D finite element method (FEM) and creates a surface plot of U(X,Y).
  791. fem2d_scalar_display_test
  792. fem2d_scalar_display_brief, an Octave code which reads information about nodes, elements and nodal values for a 2D finite element method (FEM) and creates a surface plot of U(X,Y), in 5 lines of code.
  793. fem2d_scalar_display_brief_test
  794. fem2d_scalar_display_gpl, an Octave code which reads information about nodes, elements and nodal values for a 2D finite element method (FEM) and creates a GPL file describing a surface plot of U(X,Y), to be displayed by gnuplot().
  795. fem2d_scalar_display_gpl_test,
  796. fem3d_pack, an Octave code which contains utilities for 3D finite element method (FEM) calculations.
  797. fem3d_pack_test
  798. fem3d_project, an Octave code which projects a function f(x,y,z), given as a data, into a given space of piecewise linear tetrahedral elements for use in the finite element method (FEM).
  799. fem3d_project_test
  800. fem3d_sample, an Octave code library which evaluates a function defined on a 3D tetrahedral mesh as part of the finite element method (FEM).
  801. fem3d_sample_test
  802. fern, an Octave code which computes and displays the Barnsley fractal fern.
  803. fern_test
  804. feynman_kac_1d, an Octave code which demonstrates the use of the Feynman-Kac algorithm to solve the Poisson equation in a 1D interval by averaging stochastic paths to the boundary.
  805. feynman_kac_1d_test
  806. feynman_kac_2d, an Octave code which demonstrates the use of the Feynman-Kac algorithm to solve the Poisson equation in a 2D ellipse by averaging stochastic paths to the boundary.
  807. feynman_kac_2d_test
  808. feynman_kac_3d, an Octave code which demonstrates the use of the Feynman-Kac algorithm to solve the Poisson equation in a 3D ellipsoid by averaging stochastic paths to the boundary.
  809. feynman_kac_3d_test
  810. ffmatlib, an Octave code which allows the user to plot finite element method (FEM) results that have been computed by FreeFem++().
  811. fft_serial, an Octave code which computes a Fast Fourier Transform (FFT), and is intended as a starting point for implementing a parallel version.
  812. fft_serial_test
  813. fibonacci_spiral, an Octave code which displays points on a Fibonacci spiral, suggesting the arrangement of seeds in a sunflower, for instance.
  814. fibonacci_spiral_test
  815. file_increment, an Octave code which increments every entry of an integer array which is stored in a file.
  816. file_increment_test
  817. file_name_sequence, an Octave code which demonstrates ways to generate a sequence of filenames, which can be useful when generating a sequence of still snapshots to be animated later.
  818. file_name_sequence_test
  819. files_multiple_test, an Octave code which demonstrates how a program can open multiple output files at one time, and write data to any one specific file it chooses.
  820. filon_rule, an Octave code which approximates integrals which include an oscillatory factor of sin(k*x) or cos(k*x).
  821. filon_rule_test
  822. filum, an Octave code which handles files and filenames;
  823. filum_test
  824. fire_simulation, an Octave code which simulates a forest fire over a rectangular array of trees, starting at a single random location.
  825. fire_simulation_test
  826. fisher_exact, an Octave code which returns an exact solution of the Kolmogorov Petrovsky Piskonov Fisher partial differential equation (PDE) ut=uxx+u*(1-u).
  827. fisher_exact_test
  828. fisher_pde_ftcs, an Octave code which estimates a solution of the Kolmogorov Petrovsky Piskonov Fisher partial differential equation (PDE) ut=uxx+u*(1-u), using the forward time centered space (FTCS) method, with an oscillating Dirichlet condition on the left, and a zero Neumann condition on the right. An animation of the solution is created.
  829. fisher_pde_ftcs_test
  830. fitzhugh_nagumo_ode, an Octave code which sets up and solves the Fitzhugh-Nagumo system of ordinary differential equations (ODE).
  831. fitzhugh_nagumo_ode_test
  832. flame_exact, an Octave code which returns the exact solution of an ordinary differential equation (ODE) which models the growth of a ball of flame in a combustion process. The exact solution is defined in terms of the Lambert W function.
  833. flame_exact_test
  834. flame_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) which models the growth of a ball of flame in a combustion process. The exact solution is defined in terms of the Lambert W function.
  835. flame_ode_test
  836. flies_simulation, an Octave code which simulates an experiment in which two flies land on a plate of radius 1. By repeating the experiment many times, the average distance between the flies is to be estimated.
  837. flies_simulation_test
  838. floyd, an Octave code which implements the Floyd algorithm for finding the shortest distance between pairs of nodes on a directed graph.
  839. floyd_test
  840. fly_simulation, an Octave code which simulates an experiment in which a fly lands on a plate of radius 1. By repeating the experiment many times, the average distance of the fly from the center is to be estimated.
  841. fly_simulation_test
  842. fn, an Octave code which evaluates elementary and special functions using Chebyshev polynomials, including Airy, Bessel I, Bessel J, Bessel K, Bessel Y, beta, confluent hypergeometric, cosine integral, the Dawson integral, digamma (psi), error, exponential integral, gamma, hyperbolic cosine integral, hyperbolic sine integral, incomplete gamma, log gamma, logarithmic integral, Pochhammer, psi, sine integral, Spence;, by Wayne Fullerton.
  843. fn_test
  844. football_dynamic, an Octave code which uses dynamic programming to count the ways of achieving a given score in football.
  845. football_dynamic_test
  846. four_fifths, an Octave code which searches for a solution to the problem of finding four fifth powers that sum to a fifth power, that is, integers a, b, c, d and e such that a^5+b^5+c^5+d^5=e^5. Euler conjectured that no solution was possible.
  847. four_fifths_test
  848. fractal_coastline, an Octave code which uses perturbed Bezier interpolation to create a fractal coastline from a crude outline of a state, country, island, or even any general closed polygonal curve.
  849. fractal_coastline_test
  850. freefem_msh_io, an Octave code which reads and writes files used by the FreeFem finite element program to store mesh information.
  851. freefem_msh_io_test
  852. fsolve_test, an Octave code which calls fsolve() which seeks the solution x of one or more nonlinear equations f(x)=0.
  853. full_deck_simulation, an Octave code which simulates a process in which a random card is drawn from a deck of 52, and then replaced, continuing until every card has been seen at least once.
  854. full_deck_simulation_test
  855. gamblers_ruin_simulation, an Octave code which simulates a game in which a gambler never stops playing until all money is lost.
  856. gamblers_ruin_simulation_test
  857. gauss_seidel, an Octave code which implements the Gauss-Seidel iteration for linear systems.
  858. gauss_seidel_test
  859. gauss_seidel_poisson_1d, an Octave code which demonstrates how the linear system for a discretized version of the steady 1D Poisson equation can be solved by the Gauss-Seidel iteration.
  860. gauss_seidel_poisson_1d_test
  861. gauss_seidel_stochastic, an Octave code which uses a stochastic version of the Gauss-Seidel iteration to solve a linear system with a symmetric positive definite (SPD) matrix.
  862. gauss_seidel_stochastic_test
  863. gaussian, an Octave code which evaluates the Gaussian function and its derivatives.
  864. gaussian_test,
  865. gaussian_2d, an Octave code which evaluates a general Gaussian function of a 2D argument.
  866. gaussian_2d_test,
  867. gaussian_prime_spiral, an Octave code which computes a twisting spiral path along the Gaussian primes, and displays a plot of the total trajectory.
  868. gaussian_prime_spiral_test
  869. ge_to_crs, an Octave code which converts a matrix from General (GE) to Compressed Row Storage (CRS) format.
  870. ge_to_crs_test
  871. gegenbauer_cc, an Octave code which computes the Gegenbauer weighted integral of a function f(x) using a Clenshaw-Curtis approach.
  872. gegenbauer_cc_test
  873. gegenbauer_exactness, an Octave code which tests the polynomial exactness of Gauss-Gegenbauer quadrature rules.
  874. gegenbauer_exactness_test
  875. gegenbauer_polynomial, an Octave code which evaluates the Gegenbauer polynomial and associated functions.
  876. gegenbauer_polynomial_test
  877. gegenbauer_rule, an Octave code which computes and writes out a Gauss-Gegenbauer quadrature rule of given order.
  878. gegenbauer_rule_test
  879. gen_hermite_exactness, an Octave code which tests the polynomial exactness of generalized Gauss-Hermite quadrature rules.
  880. gen_hermite_exactness_test
  881. gen_hermite_rule, an Octave code which computes and writes out a generalized Gauss-Hermite quadrature rule of given order and parameter value.
  882. gen_hermite_rule_test
  883. gen_laguerre_exactness, an Octave code which tests the polynomial exactness of generalized Gauss-Laguerre quadrature rules.
  884. gen_laguerre_exactness_test
  885. gen_laguerre_rule, an Octave code which computes and writes out a generalized Gauss-Laguerre quadrature rule of given order and parameter value.
  886. gen_laguerre_rule_test
  887. geometry, an Octave code which performs geometric calculations in 2, 3 and M dimensional space, including the computation of angles, areas, containment, distances, intersections, lengths, and volumes.
  888. geometry_test
  889. geompack, an Octave code which computes Delaunay triangulations, Voronoi diagrams, and other information, by Barry Joe.
  890. geompack_test
  891. gl_fast_rule, an Octave code which carries out the rapid computation of the Kth value and weight of an N point Gauss-Legendre quadrature rule, by Ignace Bogaert.
  892. gl_fast_rule_test
  893. glomin, an Octave code which finds a global minimum of a scalar function of a scalar variable, without the use of derivative information, by Richard Brent.
  894. glomin_test
  895. glycolysis_ode, an Octave code which sets up a pair of ordinary differential equations (ODE) that model the biochemical process of glycolysis, for which a limit cycle exists.
  896. glycolysis_ode_test
  897. gmres, an Octave code which implements the generalized minimum residual (GMRES) method for solving a nonsymmetric sparse linear system A*x=b.
  898. gmres_test
  899. gmsh_io, an Octave code which reads or writes files created by the gmsh() program for 1D, 2D or 3D meshes used by the finite element method (FEM).
  900. gmsh_io_test
  901. gmsh_to_fem, an Octave code which reads a mesh data file created by the gmsh() program and writes a pair of node and element files that correspond to the FEM format.
  902. gmsh_to_fem_test
  903. gnuplot_test, an Octave code which uses gnuplot() to create various kinds of plots.
  904. gpl_display, an Octave code which tries to read the data in a typical gnuplot() GPL file, describing a 1D, 2D or 3D curve, or a surface Z(X,Y) defined on a regular grid, a triangular grid, or an irregular quadrilateral grid, displays it in a more attractive way than gnuplot() is capable of.
  905. gpl_display_test
  906. gradient_descent, an Octave code which uses gradient descent to solve a linear least squares (LLS) problem.
  907. gradient_descent_test
  908. gram_polynomial, an Octave code which evaluates the Gram polynomials, also known as the discrete Chebyshev polyomials and associated functions.
  909. gram_polynomial_test
  910. gram_schmidt, an Octave code which implements the Gram-Schmidt process to orthogonalize and normalize a set of vectors.
  911. gram_schmidt_test
  912. graph_adj, an Octave code which carries out operations on abstract graphs, with undirected edges, described by an adjacency matrix. Operations include breadth-first search, the computation of a minimum spanning tree, an Euler or Hamilton circuit, blocks, chromatic polynomial, or transitive closure.
  913. graph_adj_test
  914. graph_dist, an Octave code which carries out operations on abstract graphs, defined by undirected edges with an associated distance matrix.
  915. graph_dist_test
  916. graph_representation, an Octave code which determines various representations of a graph.
  917. graph_representation_test
  918. graphics_test, an Octave code which graphically displays various kinds of data.
  919. gray_scott_pde, an Octave code which solves the partial differential equation (PDE) known as the Gray-Scott reaction diffusion equation, displaying a sequence of solutions as time progresses.
  920. gray_scott_pde_test
  921. grazing_ode, an Octave code which sets up and solves a pair of ordinary differential equations (ODE) that model the populations of an edible plant, and the herbivore that grazes on it.
  922. gray_code_display, an Octave code which computes the Hamming distance tables for both the binary and Gray codes, and displays 3D plots that illustrate how the Gray code does a better job of providing nearby representations for nearby numbers.
  923. gray_code_display_test
  924. grazing_ode_test
  925. grf_display, an Octave code which reads a GRF file defining a mathematical graph and displays an image of it.
  926. grf_display_test
  927. grf_io, an Octave code which reads or writes a grf file which represents a mathematical graph;
  928. grf_io_test
  929. grid_display, an Octave code which reads a file of points on a grid or sparse grid, displays the grid and saves the image in a png file;
  930. grid_display_test
  931. gridlines, an Octave code which gives the user more control over drawing gridlines on a graph than is available through the builtin grid() command.
  932. gridlines_test
  933. grids_display, an Octave code which reads two files of grids or sparse grids, displaying the first with hollow blue dots, the second with solid red dots.
  934. grids_display_test
  935. gurobi_solution_read, an Octave code which reads a file created by the optimization package GUROBI, representing the solution of a polyomino tiling problem, and writes out a simple ASCII file to be read by load().
  936. gurobi_solution_read_test
  937. gyroscope_ode, an Octave code which sets up the ordinary differential equations (ODE) that simulate the angular attitude and rotational speed of a gyroscope.
  938. gyroscope_ode_test
  939. haar_transform, an Octave code which computes the Haar transform of 1d or 2d data.
  940. haar_transform_test
  941. halton, an Octave code which computes elements of a Halton Quasi Monte Carlo (QMC) sequence, using a simple interface.
  942. halton_test
  943. hammersley, an Octave code which computes elements of a Hammersley Quasi Monte Carlo (QMC) sequence, using a simple interface.
  944. hammersley_test
  945. hamming, an Octave code which implements some simple versions of Hamming codes which detects and correct errors in data.
  946. hamming_test
  947. hand_area, an Octave code which estimates the area of a curve which outlines a hand.
  948. hand_area_test
  949. hand_data, an Octave code which carries out some numerical exercises based on data that came from tracing several points on a hand.
  950. hand_data_test
  951. hand_mesh2d, an Octave code which reads in a set of points which outline a human hand, and calls mesh2d(), which is able to create a fine triangular mesh of the region outlined by the points.
  952. hand_mesh2d_test
  953. hankel_cholesky, an Octave code which computes the upper Cholesky factor R of a symmetric positive definite (SPD) Hankel matrix H so that H = R' * R.
  954. hankel_cholesky_test
  955. hankel_inverse, an Octave code which computes the inverse of a Hankel matrix.
  956. hankel_inverse_test
  957. hankel_spd, an Octave code which computes a lower triangular matrix L which is the Cholesky factor of a symmetric positive definite (SPD) Hankel matrix H, that is, H = L * L'.
  958. hankel_spd_test
  959. hb_io, an Octave code which reads and writes sparse linear systems stored in the Harwell Boeing (HB) format for sparse matrices.
  960. hb_io_test
  961. hb_to_mm, an Octave code which converts a sparse matrix from Harwell Boeing (HB) to Matrix Market (MM) format.
  962. hb_to_mm_test
  963. hb_to_msm, an Octave code which converts a sparse matrix stored in a Harwell Boeing (HB) format to MATLAB sparse matrix (MSM) format;
  964. hb_to_msm_test
  965. hb_to_st, an Octave code which converts a sparse matrix from Harwell Boeing (HB) format to Sparse Triplet (ST) format.
  966. hb_to_st_test
  967. heartbeat_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) describing the beating of the heart, as suggested by Zeeman.
  968. heartbeat_ode_test
  969. heat_transfer_test, an Octave code which plots data from the computation of heat distribution on a metal disk, as computed by FreeFem++() and transferred using the ffmatlib() library.
  970. heated_plate, an Octave code which solves the steady state heat equation in a 2D rectangular region, and is intended as a starting point for a parallel version.
  971. heated_plate_test
  972. hello, an Octave code which prints out "Hello, world!".
  973. hello_test
  974. helmholtz_exact, an Octave code which evaluates an exact formula for the solution of the Helmholtz equation, a sort of eigenvalue equation that can arise after separation of variables is a applied to the wave equation. This example considers a problem in which Z(x,y) represents the vertical deflection of the surface of a vibrating circular membrane such as a drumhead.
  975. helmholtz_exact_test
  976. henon_heiles_ode, an Octave code which sets up and solves the Henon-Heiles system of ordinary differential equations (ODE) which model the motion of a star around the galactic center.
  977. henon_heiles_ode_test
  978. henon_orbit, a Octave code which computes the orbit of the Henon map for various sets of initial data.
  979. henon_orbit_test
  980. hermite_cubic, an Octave code which computes the value, derivatives or integral of a Hermite cubic polynomial, or manipulates an interpolating function made up of piecewise Hermite cubic polynomials.
  981. hermite_cubic_test
  982. hermite_exactness, an Octave code which tests the polynomial exactness of Gauss-Hermite quadrature rules to estimate the integral of a function with density exp(-x^2) over the interval (-oo,+oo).
  983. hermite_exactness_test
  984. hermite_integrands, an Octave code which defines test integrands for Hermite integrals with density exp(-x^2) over the interval (-oo,+oo).
  985. hermite_integrands_test
  986. hermite_interpolant, an Octave code which computes the Hermite interpolant, a polynomial that matches function values and derivatives.
  987. hermite_interpolant_test
  988. hermite_polynomial, an Octave code which evaluates the physicist's Hermite polynomial, the probabilist's Hermite polynomial, the Hermite function, and related functions.
  989. hermite_polynomial_test
  990. hermite_product_display, an Octave code which displays an image of a function created by the Cartesian product of two Hermite polynomials, such as f(x,y) = h(3,x) * h(1,y).
  991. hermite_product_display_test
  992. hermite_product_polynomial, an Octave code which defines Hermite product polynomials, creating a multivariate polynomial as the product of univariate Hermite polynomials.
  993. hermite_rule, an Octave code which computes and writes out a Gauss-Hermite quadrature rule to estimate the integral of a function with density exp(-x^2) over the interval (-oo,+oo).
  994. hexagon_integrals, an Octave code which returns the exact value of the integral of a monomial over the interior of a hexagon in 2D.
  995. hexagon_integrals_test
  996. hexagon_lyness_rule, an Octave code which computes one of 13 Lyness quadrature rules over the interior of the unit hexagon.
  997. hexagon_lyness_rule_test
  998. hexagon_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the interior of a hexagon in 2D;
  999. hexagon_monte_carlo_test
  1000. hexagon_stroud_rule, an Octave code which computes one of four Stroud quadrature rules over the interior of the unit hexagon.
  1001. hexagon_stroud_rule_test
  1002. hexahedron_jaskowiec_rule, an Octave code which returns a symmetric Jaskowiec quadrature rule for the hexahedron, with exactness up to total degree 21.
  1003. hexahedron_jaskowiec_rule_test
  1004. hexahedron_witherden_rule, an Octave code which returns a symmetric Witherden quadrature rule for the hexahedron, with exactness up to total degree 11.
  1005. hexahedron_witherden_rule_test
  1006. high_card_simulation, an Octave code which simulates a situation in which you see the cards in a deck one by one, and must select the one you think is the highest and stop.
  1007. high_card_simulation_test
  1008. hilbert_curve, an Octave code which computes the sequence of discrete 2D Hilbert curves whose limit is a space-filling curve.
  1009. hilbert_curve_test
  1010. hilbert_curve_3d, an Octave code which converts 3D Hilbert curve data between spatial coordinates of a lattice point (x,y,z) and the linear coordinate H which describes the ordering of that point on the curve.
  1011. hilbert_curve_3d_test
  1012. hilbert_curve_display, an Octave code which plots a 2D Hilbert curve of given order.
  1013. hilbert_curve_display_test
  1014. histogram_data_2d_sample, an Octave code which demonstrates how to construct a Probability Density Function (PDF) from sample data over a 2D domain, and then to use that PDF to create new samples.
  1015. histogram_data_2d_sample_test
  1016. histogram_discrete, an Octave code which tries to make a histogram of data without using bins.
  1017. histogram_discrete_test
  1018. histogram_pdf, an Octave code which creates a histogram plot of a set of data, normalized to estimate the probability density function (PDF).
  1019. histogram_pdf_test
  1020. histogram_pdf_2d_sample, an Octave code which demonstrates how uniform sampling of a 2D region with respect to some known Probability Density Function (PDF) can be approximated by decomposing the region into rectangles, approximating the PDF by a piecewise constant (PWC) function, constructing a histogram for the CDF, and then sampling.
  1021. histogram_pdf_2d_sample_test
  1022. histogramize, an Octave code which takes a vector of data and organizes it into a histogram of a given number of bins with given width and range, to be displayed as a bar chart.
  1023. histogramize_test
  1024. hits, an Octave code which uses the HITS algorithm to assign authority and hub indices to a set of nodes in a directed network.
  1025. hits_test
  1026. house, an Octave code which includes a line segment outline of a house, and some programs to show how linear transformations affect the shape, by Cleve Moler.
  1027. house_test
  1028. human_data, an Octave code which starts with an image of simple outline of a human body, tabulates a sequence of points on the outline, creating numerical data defining the boundary. It is then able to fill the region with mesh points and triangulate the region. This allows the region to be analyzed by the finite element method (FEM).
  1029. human_data_test
  1030. humps, an Octave code which evaluates the humps() function, its first and second derivatives and its antiderivative.
  1031. humps_test
  1032. humps_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) whose solution is a double hump curve.
  1033. humps_ode_test
  1034. hyper_2f1, an Octave code which evaluates the hypergeometric functions 2F1(a,b,c;x) for real parameters a, b, c and argument x. This function is simply a wrapper for the Gnu Scientific Library function gsl_sf_hyperg_2F1().
  1035. hyper_2f1_test
  1036. hyperball_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of the unit hyperball in M dimensions.
  1037. hyperball_distance_test
  1038. hyperball_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit hyperball in M dimensions.
  1039. hyperball_integrals_test
  1040. hyperball_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit ball in M dimensions;
  1041. hyperball_monte_carlo_test
  1042. hyperball_positive_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of the unit positive hyperball in M dimensions.
  1043. hyperball_positive_distance_test
  1044. hypercube_distance, an Octave code which estimates the expected value of the distance between a pair of points randomly selected in the M-dimensional unit hypercube.
  1045. hypercube_distance_test
  1046. hypercube_exactness, an Octave code which tests the polynomial exactness of a quadrature rule over the interior of the unit hypercube in M dimensions.
  1047. hypercube_exactness_test
  1048. hypercube_grid, an Octave code which computes a grid of points over the interior of a hypercube in M dimensions.
  1049. hypercube_grid_test
  1050. hypercube_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit hypercube in M dimensions.
  1051. hypercube_integrals_test
  1052. hypercube_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit hypercube in M dimensions.
  1053. hypercube_monte_carlo_test
  1054. hypercube_surface_distance, an Octave code which estimates the expected value of the distance between a pair of points randomly selected on the surface of the unit hypercube in D dimensions.
  1055. hypercube_surface_distance_test
  1056. hypersphere, an Octave code which carries out various operations for an M dimensional hypersphere, including converting between Cartesian and spherical coordinates, stereographic projection, sampling the surface of the sphere, and computing the surface area and volume.
  1057. hypersphere_test
  1058. hypersphere_angle_distance, an Octave code which considers the problem of describing the typical value of the angle between a pair of points randomly selected on the unit hypersphere in M dimensions. Since by symmetry, this will be zero, we instead look at the average of the absolute value of the dot product, and the corresponding angle. In dimension 1, we have average dot product of 1, and angle 0. As the dimension increases, the average dot product rapidly decreases to 0, while the average angle goes to 90 degrees.
  1059. hypersphere_angle_distance_test
  1060. hypersphere_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the surface of the unit hypersphere in M dimensions.
  1061. hypersphere_distance_test
  1062. hypersphere_integrals, an Octave code which returns the exact value of the integral of any monomial over the surface of the unit hypersphere in M dimensions.
  1063. hypersphere_integrals_test
  1064. hypersphere_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function on the surface of the unit sphere in M dimensions;
  1065. hypersphere_monte_carlo_test
  1066. hypersphere_positive_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the surface of the unit positive hypersphere in M dimensions.
  1067. hypersphere_positive_distance_test
  1068. i4lib, an Octave code which contains many utility routines, using single precision integer (I4) arithmetic.
  1069. i4lib_test
  1070. i4mat_rref2, an Octave code which computes a version of the reduced row echelon form of an integer matrix.
  1071. i4mat_rref2_test
  1072. image_boundary, an Octave code which reports the pixels which form the boundary between the black and white regions of a simple image.
  1073. image_boundary_test
  1074. image_contrast, an Octave code which applies image processing techniques to increase the contrast in an image.
  1075. image_contrast_test
  1076. image_decimate, an Octave code which drops the even rows and columns from an image.
  1077. image_decimate_test
  1078. image_denoise, an Octave code which applies simple filtering operations to a noisy image.
  1079. image_denoise_test
  1080. image_diffuse, an Octave code which uses diffusion to smooth out an image.
  1081. image_diffuse_test
  1082. image_double, an Octave code which doubles the height and width of an image by repeating each row and column.
  1083. image_double_test
  1084. image_edge, an Octave code which detects edges in an image.
  1085. image_edge_test
  1086. image_mesh, an Octave code which starts with a list of points that bound some region, and calls mesh2d() to create a mesh of the interior.
  1087. image_mesh_test
  1088. image_noise, an Octave code which adds noise to an image.
  1089. image_noise_test
  1090. image_normalize, an Octave code which reads image data from a file, converts it (if necessary) to grayscale, resizes it to H pixels by W pixels.
  1091. image_normalize_test
  1092. image_quantization, an Octave code which uses kmeans() to reduce the number of colors or shades of gray in an image.
  1093. image_quantization_test
  1094. image_rgb_to_gray, an Octave code which makes a grayscale version of an RGB image.
  1095. image_rgb_to_gray_test
  1096. image_sample, an Octave code which allows the user to specify an image file to be displayed. The user may then use the mouse to select points on the image. The coordinates of each point are saved to a file. Selection ends with a RETURN. An example is supplied, which outlines the boundary of an aneurysm.
  1097. image_sample_test
  1098. image_threshold, an Octave code which makes a black and white version of a grayscale image by setting all pixels below or above a threshold value to black or white.
  1099. image_threshold_test
  1100. imshow_numeric, an Octave code which accepts a numeric 2D array and displays it as a grayscale image.
  1101. imshow_numeric_test
  1102. index, an Octave code which converts an M-dimensional vector index to a one-dimensional vector index; it handles zero and one based indexing schemes, as well as column major and row major conventions.
  1103. index_test
  1104. insurance_simulation, an Octave code which simulates a highly simplified model of term life insurance, in which a customer agrees to pay an annual fee for a given number of years, so that if the customer dies within that term, the family receives a large payout.
  1105. insurance_simulation_test
  1106. interp, an Octave code which parameterizes and interpolates data;
  1107. interp_test
  1108. interp_chebyshev, a Octave code which interactively uses n Chebyshev spaced nodes in the interval [a,b] to interpolate a function f(x) with a polynomial.
  1109. interp_chebyshev_test
  1110. interp_equal, a Octave code which interactively uses n equally spaced nodes in the interval [a,b] to interpolate a function f(x) with a polynomial.
  1111. interp_equal_test
  1112. interp_ncs, a Octave code which interactively constructs a natural cubic spline (NCS) interpolant to a function f(x), using the 'zero second derivative' end condition.
  1113. interp_ncs_test
  1114. interp_spline, a Octave code which interactively constructs a cubic spline interpolant to a function f(x), using the 'not-a-knot' end condition.
  1115. interp_spline_test
  1116. interp_spline_data, a Octave code which interactively constructs a cubic spline interpolant to (x,y) data, using the 'not-a-knot' end condition.
  1117. interp_spline_data_test
  1118. interp_trig, a Octave code which interactively uses n equally spaced nodes in the interval [a,b] to interpolate a function f(x) with a trigonometric polynomial.
  1119. interp_trig_test
  1120. iplot, a Octave code which interactively plots a function f(x) over a domain a ≤ x ≤ b;
  1121. iplot_test
  1122. is_gaussian_prime, an Octave code which is true if a given complex number c is a Gaussian prime.
  1123. is_gaussian_prime_test
  1124. is_prime, an Octave code which implements various versions of the sieve of Eratosthenes to determine whether a given integer is prime.
  1125. is_prime_test
  1126. isbn, an Octave code which determines the check digit for an International Standard Book Number (ISBN) or reports whether a given ISBN is valid.
  1127. isbn_test
  1128. ising_2d_simulation, an Octave code which simulates the evolution of a 2D array of positive and negative charges, each of which is likely to flip to be in agreement with neighbors.
  1129. ising_2d_simulation_test
  1130. jaccard_distance, an Octave code which computes the Jaccard distance between two sets.
  1131. jaccard_distance_test
  1132. jacobi, an Octave code which implements the Jacobi iteration for the iterative solution of linear systems.
  1133. jacobi_test
  1134. jacobi_eigenvalue, an Octave code which implements the Jacobi iteration for the iterative determination of the eigenvalues and eigenvectors of a real symmetric matrix.
  1135. jacobi_eigenvalue_test
  1136. jacobi_exactness, an Octave code which tests the polynomial exactness of rules for integrals with a Jacobi weight function.
  1137. jacobi_exactness_test
  1138. jacobi_poisson_1d, an Octave code which uses Jacobi iteration to solve the linear system for a discretized steady 1D Poisson equation.
  1139. jacobi_poisson_1d_test
  1140. jacobi_polynomial, an Octave code which evaluates the Jacobi polynomial and associated functions.
  1141. jacobi_polynomial_test
  1142. jacobi_rule, an Octave code which computes and writes out a Gauss-Jacobi quadrature rule of given order.
  1143. jacobi_rule_test
  1144. jai_alai_simulation, an Octave code which simulates matches of jai alai.
  1145. jai_alai_simulation_test
  1146. jordan_matrix, an Octave code which returns a random matrix in Jordan canonical form.
  1147. jordan_matrix_test
  1148. julia_set, an Octave code which computes and plots a Julia set, the set of points in the complex plane that remain bounded under a mapping of the form f(z) = z^2+c.
  1149. julia_set_test
  1150. kdv_etdrk4, an Octave code which uses the ETDRK4 method to solve the Korteweg-deVries (KdV) partial differential equation (PDE), by Aly-Khan Kassam, Lloyd Trefethen.
  1151. kdv_etdrk4_test
  1152. kdv_exact, an Octave code which evaluates an exact solution of the Korteweg-deVries (KdV) partial differential equation (PDE).
  1153. kdv_exact_test
  1154. kdv_ift, an Octave code which uses the Inverse Fourier Transform (IFT) method to solve the Korteweg-deVries (KdV) partial differential equation (PDE), by Aly-Khan Kassam, Lloyd Trefethen.
  1155. kdv_ift_test
  1156. kelley, an Octave code which implements iterative methods for linear and nonlinear problems, including Arnoldi iteration, Broyden's method, conjugate gradient, GMRES, Krylov iteration, Newton-Krylov nonlinear solver, line search for minimization, transpose-free quasi-minimal residual solver for sparse linear systems, by Tim Kelley.
  1157. kelley_test
  1158. kepler_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) for a Kepler two-body gravitational system.
  1159. kepler_ode_test
  1160. kepler_perturbed_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) for a perturbed Kepler two-body gravitational system.
  1161. kepler_perturbed_ode_test
  1162. keyword_test, an Octave code which accepts named keywords, using the Name/Value paired argument convention.
  1163. kmeans, an Octave code which handles the K-Means problem, which organizes a set of N points in M dimensions into K clusters;
  1164. kmeans_test
  1165. kmeans_fast, an Octave code which contains several different algorithms for the K-Means problem, which organizes a set of N points in M dimensions into K clusters, by Charles Elkan.
  1166. kmeans_fast_test
  1167. knapsack_01_brute, an Octave code which uses brute force to solve small versions of the 0/1 knapsack problem, in which a knapsack of limited weight capacity is to be packed as full as possible, selecting items from a set of varying weights;
  1168. knapsack_01_brute_test
  1169. knapsack_dynamic, an Octave code which uses dynamic programming to solve a knapsack problem.
  1170. knapsack_dynamic_test
  1171. knapsack_greedy, an Octave code which uses a greedy algorithm to estimate a solution of the knapsack problem;
  1172. knapsack_greedy_test
  1173. knapsack_rational, an Octave code which solves the rational knapsack problem, in which a knapsack of limited weight capacity is filled with profitable items. This variation of the knapsack problem allows a fractional part of an item to be included in the knapsack. The result is an upper bound on the maximum possible profit for the knapsack problem.
  1174. knapsack_rational_test
  1175. knapsack_values, an Octave code which returns some simple examples of the knapsack problem, in which N items are available, each with given value V and weight W. A thief's knapsack can carry no more than K pounds. The thief seeks a selection S of items to carry in the knapsack of maximum total value.
  1176. knapsack_values_test
  1177. kronrod_rule, an Octave code which computes a Gauss and Gauss-Kronrod pair of quadrature rules of arbitrary order, by Robert Piessens, Maria Branders.
  1178. kronrod_rule_test
  1179. kursiv_pde_etdrk4, an Octave code which uses the exponential time differencing (ETD) RK4 method to solve the Kuratomo-Sivashinsky PDE as a system of stiff ordinary differential equations (ODE), by Aly-Khan Kassam, Lloyd Trefethen.
  1180. kursiv_pde_etdrk4_test
  1181. lagrange_approx_1d, an Octave code which defines and evaluates the Lagrange polynomial p(x) of degree m which approximates a set of nd data points (x(i),y(i)).
  1182. lagrange_approx_1d_test
  1183. lagrange_basis_display, an Octave code which displays the basis functions associated with a given set of nodes used with the Lagrange interpolation scheme.
  1184. lagrange_basis_display_test
  1185. lagrange_interp_1d, an Octave code which defines and evaluates the Lagrange polynomial p(x) which interpolates a set of data depending on a 1D argument, so that p(x(i)) = y(i).
  1186. lagrange_interp_1d_test
  1187. lagrange_interp_2d, an Octave code which defines and evaluates the Lagrange polynomial p(x,y) which interpolates a set of data depending on a 2D argument that was evaluated on a product grid, so that p(x(i),y(j)) = z(i,j).
  1188. lagrange_interp_2d_test
  1189. lagrange_interp_nd, an Octave code which defines and evaluates the Lagrange polynomial p(x) which interpolates a set of data depending on an M dimensional argument that was evaluated on a product grid, so that p(x(i)) = z(i).
  1190. lagrange_interp_nd_test
  1191. lagrange_nd, an Octave code which implements several multivariate Lagrange interpolation schemes developed by Tomas Sauer.
  1192. lagrange_nd_test
  1193. laguerre_exactness, an Octave code which tests the polynomial exactness of Gauss-Laguerre quadrature rules for integrating functions with density exp(-x) over [0,+oo).
  1194. laguerre_exactness_test
  1195. laguerre_integrands, an Octave code which implements test problems for approximate integration over a semi-infinite interval, often carried out using Gauss-Laguerre quadrature.
  1196. laguerre_integrands_test
  1197. laguerre_polynomial, an Octave code which evaluates the Laguerre polynomial, the generalized Laguerre polynomials, and the Laguerre function.
  1198. laguerre_polynomial_test
  1199. laguerre_product, an Octave code which computes weighted integrals of products of Laguerre polynomials.
  1200. laguerre_product_test
  1201. laguerre_rule, an Octave code which computes and prints a Gauss-Laguerre quadrature rule of a given order for estimating the integral of a function with density exp(-x) over the interval [0,+oo).
  1202. laguerre_rule_test
  1203. lambert_w, an Octave code which evaluates Lambert's W function.
  1204. lambert_w_test
  1205. langford_ode, an Octave code which sets up and solves the Langford system of ordinary differential equations (ODE).
  1206. langford_ode_test
  1207. laplace_periodic_test, an Octave code which plots data from the solution of the Laplace equation in a square with periodic boundary conditions, computed by FreeFem++() and transferred using the ffmatlib() library.
  1208. laplacian, an Octave code which evaluates a discretized approximation to the Laplacian operator on data on an evenly spaced grid, within a circle, an interval, or a torus. For the case of the interval, the data may be supplied on an unevenly spaced grid.
  1209. laplacian_test
  1210. laplacian_matrix, an Octave code which carries out computations related to the discrete Laplacian operator, including full or sparse evaluation, evaluation for unequally spaced data sampling points, application to a set of data samples, solution of associated linear systems, eigenvalues and eigenvectors, and extension to 2D and 3D geometry.
  1211. laplacian_matrix_test
  1212. latin_center, an Octave code which computes N points in an M dimensional Latin Center square;
  1213. latin_center_test
  1214. latin_cover, an Octave code which produces N Latin squares which cover an NxN square, or NxN Latin cubes which cover an NxNxN cube.
  1215. latin_cover_test
  1216. latin_edge, an Octave code which returns N points in an M dimensional Latin Edge square;
  1217. latin_edge_test
  1218. latin_random, an Octave code which returns N points in an M dimensional Latin Random square;
  1219. latin_random_test
  1220. latinize, an Octave code which adjusts N points in M dimensions to form a Latin hypercube;
  1221. latinize_test
  1222. lattice_rule, an Octave code which returns lattice rules for M dimensional integration;
  1223. lattice_rule_test
  1224. leapfrog, an Octave code which uses the leapfrog method to solve a second order ordinary differential equation (ODE) of the form y''=f(t,y).
  1225. leapfrog_test
  1226. least_squares_approximant, an Octave code which finds a polynomial approximant to data using linear least squares (LLS).
  1227. least_squares_approximant_test
  1228. lebesgue, an Octave code which is given nodes in 1D, plots the Lebesgue function, and estimates the Lebesgue constant, which measures the maximum magnitude of the potential error of Lagrange polynomial interpolation.
  1229. lebesgue_test
  1230. legendre_exactness, an Octave code which tests the monomial exactness of quadrature rules for the Legendre problem of integrating a function with density 1 over the interval [-1,+1].
  1231. legendre_exactness_test
  1232. legendre_fast_rule, an Octave code which uses a fast (order N) algorithm to compute a Gauss-Legendre quadrature rule of given order.
  1233. legendre_fast_rule_test
  1234. legendre_polynomial, an Octave code which evaluates the Legendre polynomial and associated functions.
  1235. legendre_polynomial_test
  1236. legendre_product, an Octave code which computes weighted integrals of products of Legendre polynomials.
  1237. legendre_product_test
  1238. legendre_product_display, an Octave code which displays the points used in a 2D Gauss-Legendre quadrature rule;
  1239. legendre_product_display_test
  1240. legendre_product_polynomial, an Octave code which defines Legendre product polynomials, creating a multivariate polynomial as the product of univariate Legendre polynomials.
  1241. legendre_product_polynomial_test
  1242. legendre_rule, an Octave code which writes out a Gauss-Legendre quadrature rule of given order.
  1243. legendre_rule_test
  1244. legendre_shifted_polynomial, an Octave code which evaluates the shifted Legendre polynomial, with the domain [0,1].
  1245. legendre_shifted_polynomial_test
  1246. levels, an Octave code which makes a contour plot, choosing the contour levels using random sampling.
  1247. levels_test
  1248. levenshtein_distance, an Octave code which returns the Levenshtein distance between two strings.
  1249. levenshtein_distance_test
  1250. levenshtein_matrix, an Octave code which returns the Levenshtein distance matrix defined by two strings.
  1251. levenshtein_matrix_test
  1252. life, an Octave code which computes a few steps of the evolution of John Conway's Game of Life, intended as a starting point for implementing a parallel version.
  1253. life_test
  1254. lights_out_game, an Octave code which sets up the "Lights Out" game, lighting up a few squares on a grid. An interactive user must then try to press squares in such a way that all the lights are turned off.
  1255. lindberg_exact, an Octave code which evaluates the exact solution of the Lindberg ordinary differential equations (ODE), a system that is extremely difficult to solve accurately.
  1256. lindberg_exact_test
  1257. lindberg_ode, an Octave code which sets up and solves a system of 4 ordinary differential equations (ODE) which are very stiff.
  1258. lindberg_ode_test
  1259. line_cvt_lloyd, an Octave code which applies the Lloyd iteration repeatedly to a set of N points, to compute a Centroidal Voronoi Tessellation (CVT) over the interior of a line segment in 1D.
  1260. line_cvt_lloyd_test
  1261. line_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected in the unit line segment.
  1262. line_distance_test
  1263. line_fekete_rule, an Octave code which estimates the location of N Fekete points, for polynomial interpolation or quadrature, over the interior of a line segment in 1D.
  1264. line_fekete_rule_test
  1265. line_felippa_rule, an Octave code which returns a Felippa quadrature rules for approximating integrals over the interior of a line segment in 1D.
  1266. line_felippa_rule_test
  1267. line_grid, an Octave code which computes a grid of points over the interior of a line segment in 1D.
  1268. line_grid_test
  1269. line_integrals, an Octave code which returns the exact value of the integral of any monomial over the length of the unit line in 1D.
  1270. line_integrals_test
  1271. line_lines_packing, an Octave code which tries to randomly pack as many non-overlapping equal line segments as possible into a larger line segment, estimating Renyi's parking constant of 0.7475979202. This is an example of random sequential adsorption (RSA).
  1272. line_lines_packing_test
  1273. line_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the length of the unit line in 1D.
  1274. line_monte_carlo_test
  1275. line_ncc_rule, an Octave code which computes a Newton Cotes Closed (NCC) quadrature rule, using equally spaced points, over the interior of a line segment in 1D.
  1276. line_ncc_rule_test
  1277. line_nco_rule, an Octave code which computes a Newton Cotes Open (NCO) quadrature rule, using equally spaced points, over the interior of a line segment in 1D.
  1278. line_nco_rule_test
  1279. linear_algebra, an Octave code which carries out various linear algebra operations for matrices stored in a variety of formats.
  1280. linpack_bench, an Octave code which is a version of the LINPACK benchmark;
  1281. linpack_bench_test
  1282. linpack_bench_backslash, an Octave code which is a version of the LINPACK benchmark using the backslash linear system solver;
  1283. linpack_bench_backslash_test
  1284. linpack_d, an Octave code which factors and solves linear systems using real 64 bit arithmetic, by Jack Dongarra, Jim Bunch, Cleve Moler, Pete Stewart. The matrix and vector data is assumed to be real.
  1285. linpack_d_test
  1286. linpack_z, an Octave code which factors and solves linear systems using complex 64 bit arithmetic, by Jack Dongarra, Jim Bunch, Cleve Moler, Pete Stewart. The matrix and vector data is assumed to be complex.
  1287. linpack_z_test
  1288. lissajous, an Octave code which plots a Lissajous figure, of the form x = sin ( a1 t + b1 ), y = sin ( a2 t + b2 ).
  1289. lissajous_test
  1290. llsq, an Octave code which solves the linear least squares (LLS) problem. It finds the best straight line to match a set of data points. More precisely, it finds the quantities a and b defining the straight line y=a*x+b, which minimizes the root-mean-square (RMS) error to the data.
  1291. llsq_test
  1292. load_test, an Octave code which calls the load() function, which reads data from a file into a variable.
  1293. lobatto_polynomial, an Octave code which evaluates Lobatto polynomials similar to Legendre polynomials except that they are 0 at both endpoints.
  1294. lobatto_polynomial_test
  1295. local_min, an Octave code which finds a local minimum of a scalar function of a scalar variable, without the use of derivative information, by Richard Brent.
  1296. local_min_test
  1297. local_min_rc, an Octave code which finds a local minimum of a scalar function of a scalar variable, without the use of derivative information, using reverse communication (RC), by Richard Brent.
  1298. local_min_rc_test
  1299. locker_simulation, an Octave code which simulates the locker problem, in which gym users have left their wallets in lockers; someone has scrambled all the lockers, and the gym users need a strategy that maximizes the chance that everyone will find their wallet by searching a limited number of lockers.
  1300. locker_simulation_test
  1301. log_norm, an Octave code which computes the logarithmic norm of a matrix, for norms 1, 2 and oo.
  1302. log_norm_test
  1303. log_normal, an Octave code which returns quantities related to the log normal Probability Distribution Function (PDF).
  1304. log_normal_test
  1305. log_normal_truncated_ab, an Octave code which returns quantities related to the log normal Probability Distribution Function (PDF) truncated to the interval [a,b].
  1306. log_normal_truncated_ab_test
  1307. logistic_bifurcation, an Octave code which plots the bifurcation diagram for the logistic equation, by John D Cook.
  1308. logistic_bifurcation_test
  1309. logistic_exact, an Octave code which evaluates an exact solution of the logistic equation, an ordinary differential equation (ODE) which models population growth in the face of a limited carrying capacity.
  1310. logistic_exact_test
  1311. logistic_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) which models population growth in the face of a limited carrying capacity.
  1312. logistic_ode_test
  1313. lorenz_ode, an Octave code which sets up and solves the Lorenz system of ordinary differential equations (ODE).
  1314. lorenz_ode_test
  1315. luhn, an Octave code which computes the Luhn check digit for a string, and validates a string.
  1316. luhn_test
  1317. machar, an Octave code which computes the appropriate values of arithmetic constants for a given machine, by William Cody.
  1318. machar_test
  1319. machine, an Octave code which returns values of arithmetic constants for a given machine.
  1320. machine_test
  1321. magic_matrix, an Octave code which computes a magic matrix, for any odd order n, such that all rows and columns have the same sum.
  1322. magic_matrix_test
  1323. mandelbrot, an Octave code which generates an image of the Mandelbrot set;
  1324. mandelbrot_test
  1325. mandelbrot_orbit, an Octave code which generates the Mandelbrot iterates arising from a single starting point;
  1326. mandelbrot_orbit_test
  1327. maple_area, an Octave code which takes the list of pixels that form the boundary of the image of a maple leaf within a picture, and uses grid, Monte Carlo, and Quasi Monte Carlo (QMC) sampling to estimate the area of the leaf.
  1328. maple_area_test
  1329. maple_boundary, an Octave code which reads an image of a maple leaf and extracts the list of pixels that form the boundary.
  1330. maple_boundary_test
  1331. mario, an Octave code which creates a sort of needlepoint image of Mario, as an array of colored squares.
  1332. mario_test
  1333. markov_letters, an Octave code which counts the occurences of letter pairs in a text.
  1334. markov_letters_test
  1335. matrix_analyze, an Octave code which reports whether a matrix has various properties.
  1336. matrix_analyze_test
  1337. matrix_chain_brute, an Octave code which finds the cost of the most efficient ordering to use when multiplying a sequence of matrices, using brute force.
  1338. matrix_chain_brute_test
  1339. matrix_chain_dynamic, an Octave code which finds the cost of the most efficient ordering to use when multiplying a sequence of matrices, using dynamic programming..
  1340. matrix_chain_dynamic_test
  1341. matrix_exponential, an Octave code which computes the exponential of a matrix.
  1342. matrix_exponential_test
  1343. mcnuggets, an Octave code which counts M(N), the number of ways a given number N of Chicken McNuggets can be assembled, given that they are only available in packages of 6, 9, and 20.
  1344. mcnuggets_test
  1345. mcnuggets_diophantine, an Octave code which uses Diophantine methods to find the ways a given number N of Chicken McNuggets can be assembled, given that they are only available in packages of 6, 9, and 20.
  1346. mcnuggets_diophantine_test
  1347. md, an Octave code which carries out a molecular dynamics simulation, and is intended as a starting point for implementing a parallel version.
  1348. md_test
  1349. md_fast, an Octave code which carries out a molecular dynamics simulation; it is a version of md() that has been revised to take advantage of vectorization.
  1350. md_fast_test
  1351. medit_mesh_io, an Octave code which reads or writes medit() MESH files defining a finite element mesh.
  1352. medit_mesh_io_test
  1353. medit_to_fem, an Octave code which reads a medit() MESH file and writes a corresponding pair of node and element files that correspond to the FEM format.
  1354. medit_to_fem_test
  1355. memory, an Octave code which declares and uses a sequence of larger and larger arrays, to see what the memory limits are on a given computer.
  1356. memory_test
  1357. mesh_bandwidth, an Octave code which returns the geometric bandwidth associated with a mesh of elements of any order and in a space of M dimensions.
  1358. mesh_bandwidth_test
  1359. mesh_boundary, an Octave code which is given a mesh of a 2D region, formed by polygonal elements, and determines a sequence of pairs of polygonal vertices that define the boundary of the region.
  1360. mesh_boundary_test
  1361. mesh_display, an Octave code which plots the nodes and elements of a polygonal mesh, with optional numbering.
  1362. mesh_display_test
  1363. mesh_etoe, an Octave code which uses ETOV, the mesh element-to-vertex connectivity, to construct ETOE, the element-to-element connectivity.
  1364. mesh_etoe_test
  1365. mesh_vtoe, an Octave code which uses ETOV, the mesh element-to-vertex connectivity, to construct VTOE, the vertex-to-element connectivity.
  1366. mesh_vtoe_test
  1367. mesh2d, an Octave code which automatically creates a triangular mesh for a given polygonal region, by Darren Engwirda.
  1368. mesh2d_test
  1369. mesh2d_to_medit, an Octave code which accepts the nodes and triangles of a mesh created by mesh2d() and creates a corresponding medit() MESH file.
  1370. mesh2d_to_medit_test
  1371. mesh2d_write, an Octave code which writes mesh2d() node and element data to files.
  1372. mesh2d_write_test
  1373. mgmres, an Octave code which applies the restarted Generalized Minimum Residual (GMRES) algorithm to solve a sparse linear system, using Compressed Row Storage (CRS) or sparse triplet (ST) format, by Lili Ju.
  1374. mgmres_test
  1375. mgs, an Octave code which is an obscure legacy code, which the student is encouraged to study, understand, and document. This example is due to Diane O'Leary.
  1376. mgs_test
  1377. mhd_exact, an Octave code which evaluates Hartmann's exact formula for a solution of the magnetohydrodynamic (MHD) fluid flow equations in 2D.
  1378. mhd_exact_test
  1379. middle_square, an Octave code which implements the middle square algorithm for generating random integers. This is a very early method, attributed to von Neumann, which actually is deeply flawed, with short cycles.
  1380. middle_square_test
  1381. midpoint, an Octave code which solves one or more ordinary differential equations (ODE) using the (implicit) midpoint method.
  1382. midpoint_test
  1383. midpoint_adaptive, an Octave code which solves one or more ordinary differential equations (ODE) using the (implicit) midpoint method, with fsolve() solving the implicit equation, and an adaptive time step. Plots of the solution and timestep history are created.
  1384. midpoint_adaptive_test
  1385. midpoint_explicit, an Octave code which solves one or more ordinary differential equations (ODE) using the (explicit) midpoint method, also called the modified Euler method.
  1386. midpoint_explicit_test
  1387. midpoint_fixed, an Octave code which solves one or more ordinary differential equations (ODE) using the (implicit) midpoint method, using a simple fixed-point iteration to solve the implicit equation.
  1388. midpoint_fixed_test
  1389. mm_io, an Octave code which reads and writes sparse linear systems stored in the Matrix Market (MM) format.
  1390. mm_io_test
  1391. mm_to_hb, an Octave code which reads the sparse matrix information from an Matrix Market (MM) file and writes a corresponding Harwell Boeing (HB) file.
  1392. mm_to_hb_test
  1393. mm_to_msm, an Octave code which reads a Matrix Market (MM) file defining a sparse matrix, and creates a corresponding matrix in MATLAB sparse matrix (MSM) format.
  1394. mm_to_msm_test
  1395. mm_to_st, an Octave code which reads the sparse matrix information from a Matrix Market (MM) file and writes a corresponding Sparse Triplet (ST) file.
  1396. mm_to_st_test
  1397. monoalphabetic, an Octave code which applies a monoalphabetic substitution cipher to a string of text.
  1398. monoalphabetic_test
  1399. monomial, an Octave code which enumerates, lists, ranks, unranks and randomizes multivariate monomials in a space of M dimensions, with total degree less than N, equal to N, or lying within a given range.
  1400. monomial_test
  1401. monomial_symmetrize, an Octave code which symmetrizes the coefficients of equivalent monomials in a polynomial.
  1402. monomial_symmetrize_test
  1403. monomial_value, an Octave code which evaluates a monomial in M dimensions.
  1404. monomial_value_test
  1405. monopoly_matrix, an Octave code which computes the adjacency and transition matrices for the game of Monopoly.
  1406. monopoly_matrix_test
  1407. monty_hall_simulation, an Octave code which simulates the Let's Make a Deal game in which Monty Hall has hidden a prize behind one of several doors, and the user wins the prize if the correct door is selected.
  1408. monty_hall_simulation_test
  1409. mortality, an Octave code which processes some sample mortality data.
  1410. mortality_test
  1411. msm_to_hb, an Octave code which writes a MATLAB sparse matrix (MSM) to a Harwell Boeing (HB) file;
  1412. msm_to_hb_test
  1413. msm_to_mm, an Octave code which writes a MATLAB sparse matrix (MSM) to a Matrix Market (MM) file;
  1414. msm_to_mm_test
  1415. msm_to_st, an Octave code which writes a MATLAB sparse matrix (MSM) to a Sparse Triplet (ST) file;
  1416. msm_to_st_test
  1417. mxm, an Octave code which sets up a matrix multiplication problem A=B*C of arbitrary size, and compares the time required for IJK, IKJ, JIK, JKI, KIJ and KJI orderings of the loops.
  1418. mxm_test
  1419. naca, an Octave code which takes the parameters of certain NACA airfoils and returns the coordinates of a sequence of points that outline the wing shape. The shape can be displayed graphically.
  1420. naca_test
  1421. nas, an Octave code which runs the NASA kernel benchmark.
  1422. nas_test
  1423. navier_stokes_2d_exact, an Octave code which evaluates an exact solution to the incompressible time-dependent Navier-Stokes equations (NSE) over an arbitrary domain in 2D.
  1424. navier_stokes_2d_exact_test
  1425. navier_stokes_3d_exact, an Octave code which evaluates an exact solution to the incompressible time-dependent Navier-Stokes equations (NSE) over an arbitrary domain in 3D.
  1426. navier_stokes_3d_exact_test
  1427. navier_stokes_mesh2d, an Octave code which handles meshes for several 2D test problems involving the Navier Stokes equations (NSE) for fluid flow, provided by Leo Rebholz.
  1428. navier_stokes_mesh2d_test
  1429. navier_stokes_mesh3d, an Octave code which handles meshes for several 3D test problems involving the Navier Stokes equations (NSE) for fluid flow, provided by Leo Rebholz.
  1430. navier_stokes_mesh3d_test
  1431. ncm, an Octave code which accompanies the textbook "Numerical Computing with MATLAB", by Cleve Moler, and illustrates algorithms for the 3n+1 problem, blackjack, eigenvalue computations, fast Fourier transforms, Fibonacci numbers, file encryption, the flame differential equation, the fractal fern, the Lorenz differential equation, a membrane partial differential equation, minimization of a scalar function, ordinary differential equations, the pendulum differential equation, piecewise cubic Hermite interpolation, polynomial interpolation, quadrature for approximate integration, random number generation, tridiagonal linear system solution, the singular value decomposition, solution of a nonlinear equation.
  1432. ncm_test
  1433. nearest_interp_1d, an Octave code which interpolates a set of data using a piecewise constant (PWC) interpolant defined by the nearest neighbor criterion.
  1434. nearest_interp_1d_test
  1435. nearest_neighbor, an Octave code which is given two sets of M-dimensional points R and S; For each point in S, it finds the closest point in R. The code is by Richard Brown.
  1436. nearest_neighbor_test
  1437. neighbor_risk, an Octave code which records information about neighboring pairs of territories in the game of RISK.
  1438. neighbor_risk_test
  1439. neighbor_states, an Octave code which records information about pairs of US states which are neighbors.
  1440. neighbor_states_test
  1441. neighbors_to_metis_graph, an Octave code which reads a file describing the neighbor structure of a mesh of triangles or tetrahedrons, and writes a metis_graph() file suitable for input to one of the family of programs based on metis();
  1442. neighbors_to_metis_graph_test
  1443. nested_sequence_display, an Octave code which displays nested sequences.
  1444. nested_sequence_display_test
  1445. neural_network, an Octave code which illustrates the use of neural networks for deep learning, using back propagation and stochastic gradient descent, by Catherine Higham and Desmond Higham.
  1446. neural_network_test
  1447. newton_interp_1d, an Octave code which finds a polynomial interpolant to data using Newton divided differences.
  1448. newton_interp_1d_test
  1449. newton_rc, an Octave code which solves a system of nonlinear equations by Newton's method, using reverse communication (RC).
  1450. newton_rc_test
  1451. niederreiter2, an Octave code which computes the Niederreiter M dimensional Quasi Mont Carlo (QMC) sequence, base 2;
  1452. niederreiter2_test
  1453. nint_exactness_mixed, an Octave code which measures the exactness of an M-dimensional quadrature rule based on a mixture of 1D quadrature rule factors.
  1454. nint_exactness_mixed_test
  1455. nintlib, an Octave code which implements approximate integration (quadrature) in M dimensions;
  1456. nintlib_test
  1457. nonlin_bisect, a Octave code which interactively uses bisection to seek a zero of a function f(x) within a domain a ≤ x ≤ b;
  1458. nonlin_bisect_test
  1459. nonlin_fixed_point, a Octave code which interactively uses fixed point iteration x=g(x) to seek a zero of a function f(x) given a starting point x0 and iterations it;
  1460. nonlin_fixed_point_test
  1461. nonlin_newton, a Octave code which interactively uses the Newton method to find the zero of a function, given formulas for f(x), f'(x), and a starting point.
  1462. nonlin_newton_test
  1463. nonlin_regula, a Octave code which interactively uses the regula falsi method to seek a zero of a function f(x) within a change of sign interval [a,b];
  1464. nonlin_regula_test
  1465. nonlin_secant, a Octave code which interactively uses the secant method to seek a zero of a function f(x) given two starting estimates a and b.
  1466. nonlin_secant_test
  1467. nonlin_snyder, a Octave code which interactively uses the Snyder method to seek a zero of a function f(x) within a change of sign interval [a,b];
  1468. nonlin_snyder_test
  1469. norm_l1, a Octave code which interactively estimates the L1 norm of a function over an interval [A,B], with the function entered as a string.
  1470. norm_l1_test
  1471. norm_l2, a Octave code which interactively estimates the L2 norm of a function over an interval [A,B], with the function entered as a string.
  1472. norm_l2_test
  1473. norm_loo, a Octave code which interactively estimates the L-infinity norm of a function over an interval [A,B], with the function entered as a string.
  1474. norm_loo_test
  1475. norm_rms, a Octave code which interactively estimates the root mean square (RMS) norm of a function over an interval [A,B], with the function entered as a string.
  1476. norm_rms_test
  1477. normal, an Octave code which implements normal random number generators (RNG) for real and complex arithmetic, for scalars, vectors, and matrices.
  1478. normal_test
  1479. normal_dataset, an Octave code which creates a multivariate normal random dataset and writes it to a file.
  1480. normal_dataset_test
  1481. normal_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) defining the normal probability density function (PDF).
  1482. normal_ode_test
  1483. normal01_multivariate_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from an isotropic standard normal distribution in M dimensions.
  1484. normal01_multivariate_distance_test
  1485. numgrid, an Octave code which defines and numbers a subset of the nodes in a regular nxn grid of the [-1,+1]x[-1,+1] unit square.
  1486. numgrid_test
  1487. obj_display, an Octave code which displays an OBJ 3D graphics file;
  1488. obj_display_test
  1489. obj_io, an Octave code which reads and writes the data in an OBJ 3D graphics file;
  1490. obj_io_test
  1491. obj_to_tri_surface, an Octave code which reads an OBJ 3D graphics file and extracts the surface mesh data as a TRI_SURFACE dataset.
  1492. obj_to_tri_surface_test
  1493. octave_combinatorics, an Octave code which considers a variety of problems in combinatorics involving counting, combinations, permutations, and so on.
  1494. octave_distance, an Octave code which estimates the typical distance between a pair of points randomly selected from the surface or interior of a geometric object such as a circle, disk, sphere, cube.
  1495. octave_exact, an Octave code which evaluates exact solutions to a few selected examples of ordinary differential equations (ODE) and partial differential equations (PDE).
  1496. octave_grid, an Octave code which generates a regular grid of points inside a variety of regions in one, two, three or many dimensions.
  1497. octave_integrals, an Octave code which returns the exact value of the integral of any monomial over the surface or interior of some geometric object, including a line, quadrilateral, box, circle, disk, sphere, ball and others.
  1498. octave_monte_carlo, an Octave code which uses Monte Carlo sampling to estimate areas and integrals.
  1499. octave_ode, an Octave code which sets up various systems of ordinary differential equations (ODE).
  1500. octave_ode_solver, an Octave code which solves one or more differential equations (ODE) using a method of a particular order, either explicit or implicit. Some methods require a nonlinear equation solver. Some methods used a fixed stepsize, while others adapt the stepsize based on an error estimate.
  1501. octave_plots, an Octave code which uses plotting to illustrate a mathematical structure, such as an iterative map, a fractal, a curve or surface.
  1502. octave_polynomial, an Octave code which analyzes a variety of polynomial families, returning the polynomial values, coefficients, derivatives, integrals, roots, or other information.
  1503. octave_rule, an Octave code which computes a quadrature rule which estimates the integral of a function f(x), which might be defined over a one dimensional region (a line) or more complex shapes such as a circle, a triangle, a quadrilateral, a polygon, or a higher dimensional region, and which might include an associated weight function w(x).
  1504. octave_simulation, an Octave code which uses simulation to study card games, contests, and other processes which have a random element. Usually, the purpose is to try to predict the average behavior of the system over many trials.
  1505. octopus, an Octave code which contains some Octave-specific utilities.
  1506. octopus_test
  1507. ode_euler, a Octave code which interactively applies the Euler method to estimate the solution of an ordinary differential equation (ODE) y'=f(x,y), over the interval [a,b], with initial condition y(a)=ya, using n steps.
  1508. ode_euler_test
  1509. ode_euler_backward, a Octave code which interactively applies the backward Euler method to estimate the solution of an ordinary differential equation (ODE) y'=f(x,y), over the interval [a,b], with initial condition y(a)=ya, using n steps.
  1510. ode_euler_backward_test
  1511. ode_euler_system, a Octave code which interactively applies the Euler method to estimate the solution of a system of ordinary differential equations (ODE) y'=f(x,y), over the interval [a,b], with initial condition y(a)=ya, using n steps.
  1512. ode_euler_system_test
  1513. ode_midpoint, a Octave code which interactively applies the midpoint method to estimate the solution of an ordinary differential equation (ODE) y'=f(x,y), over the interval [a,b], with initial condition y(a)=ya, using n steps.
  1514. ode_midpoint_test
  1515. ode_midpoint_system, a Octave code which interactively applies the midpoint method to estimate the solution of a system of ordinary differential equations (ODE) y'=f(x,y), over the interval [a,b], with initial condition y(a)=ya, using n steps.
  1516. ode_midpoint_system_test
  1517. ode_rk4, a Octave code which interactively applies a fourth order Runge-Kutta method to estimate the solution of an ordinary differential equation (ODE) y'=f(x,y), over the interval [a,b], with initial condition y(a)=ya, using n steps.
  1518. ode_rk4_test
  1519. ode_trapezoidal, a Octave code which interactively applies the trapezoidal method to estimate the solution of an ordinary differential equation (ODE) y'=f(x,y), over the interval [a,b], with initial condition y(a)=ya, using n steps.
  1520. ode_trapezoidal_test
  1521. ode23_test, an Octave code which calls ode23(), which is a built-in function for the adaptive solution of systems of ordinary differential equations (ODE) using a pair of Runge-Kutta solvers of orders 2 and 3.
  1522. ode45_test, an Octave code which calls ode45(), which is a built-in function for the adaptive solution of systems of ordinary differential equations (ODE) using a pair of Runge-Kutta solvers of orders 4 and 5.
  1523. opt_golden, a Octave code which interactively estimates a minimizer of a function f(x) over the interval [a,b], assuming f(x) is unimodular (U-shaped) over the interval [a,b].
  1524. opt_golden_test
  1525. opt_gradient_descent, a Octave code which interactively seeks a local minimum of a function f(x), given a formula for the derivative f'(x), a starting point x0, and a stepsize factor gamma.
  1526. opt_gradient_descent_test
  1527. opt_quadratic, a Octave code which interactively uses quadratic interpolation to estimate a critical point of a function f(x) given three starting points, an iteration limit n, and tolerances for x and y.
  1528. opt_quadratic_test
  1529. opt_sample, a Octave code which interactively estimates the minimum and maximum of a function f(x) over an interval [a,b], using n random sample values, with the function entered as a string.
  1530. opt_sample_test
  1531. oregonator_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) that define the Oregonator, a model of the Belousov-Zhabotinsky chemical reaction.
  1532. oregonator_ode_test
  1533. ornstein_uhlenbeck, an Octave code which approximates solutions of the Ornstein-Uhlenbeck stochastic differential equation (SDE) using the Euler method, the Euler-Maruyama method, and the Milstein method.
  1534. ornstein_uhlenbeck_test
  1535. oscillator_ode, an Octave code which sets up and solves the highly oscillatory ordinary differential equation (ODE).
  1536. oscillator_ode_test
  1537. owen, an Octave code which evaluates the Owen T function.
  1538. owen_test
  1539. ozone_ode, an Octave code which sets up and solves a stiff system of four ordinary differential equations (ODE) that simulate the daily variation in atmospheric ozone concentration.
  1540. ozone_ode_test
  1541. ozone2_ode, an Octave code which sets up and solves a stiff system of four ordinary differential equations (ODE) that simulate the daily variation in atmospheric ozone concentration. This version of the ozone ODE includes a nitrogen oxide source term.
  1542. ozone2_ode_test
  1543. padua, an Octave code which returns the coordinates of the 2D Padua points, as well as interpolation weights or quadrature weights, and images of the points.
  1544. padua_test
  1545. pagerank, an Octave code which uses the eigenvalue (power method) and surfer (Markov Chain Monte Carlo MCMC) approaches to ranking web pages.
  1546. pagerank_test
  1547. pagerank2, an Octave code which considers a specific application of the page rank algorithm.
  1548. pagerank2_test
  1549. paraheat_functional, an Octave code which sets up and solves a parameterized steady heat equation in a 2D spatial domain, using diffusivity parameterized by vc, and reporting selected solution values vs, using a functional framework vs=f(vc).
  1550. paraheat_functional_test
  1551. pariomino, an Octave code which considers pariominoes, which are polyominoes with a checkerboard parity.
  1552. pariomino_test
  1553. partial_digest, an Octave code which seeks solutions of the partial digest problem.
  1554. partial_digest_test
  1555. partition_brute, an Octave code which uses a brute force algorithm to seek solutions of the partition problem, splitting a set of integers into two subsets with equal sum.
  1556. partition_brute_test
  1557. partition_greedy, an Octave code which uses a greedy algorithm to seek a solution of the partition problem, in which a given set of integers is to be split into two groups whose sums are as close as possible.
  1558. partition_greedy_test
  1559. patterson_rule, an Octave code which returns the points and weights of a 1D Gauss-Patterson quadrature rule of order 1, 3, 7, 15, 31, 63, 127, 255 or 511.
  1560. patterson_rule_test
  1561. pbma_io, an Octave code which reads or writes graphics files that use the ASCII Portable Bit Map (PBM) format.
  1562. pbma_io_test
  1563. pce_burgers, an Octave code which solves a version of the time-dependent viscous Burgers equation, with uncertain viscosity, using a polynomial chaos expansion (PCE) in terms of Hermite polynomials, by Gianluca Iaccarino.
  1564. pce_burgers_test
  1565. pce_legendre, an Octave code which sets up the system matrix for a polynomial chaos expansion (PCE), using Legendre polynomials with a linear factor, applied to a 2D partial differential equation (PDE) with a stochastic diffusion coefficient.
  1566. pce_legendre_test
  1567. pce_ode_hermite, an Octave code which sets up a simple scalar ordinary differential equation (ODE) for exponential decay with an uncertain decay rate, using a polynomial chaos expansion (PCE) in terms of Hermite polynomials.
  1568. pce_ode_hermite_test
  1569. pdflib, an Octave code which evaluates Probability Density Functions (PDF) and produces random samples from them, including beta, binomial, chi, exponential, gamma, inverse chi, inverse gamma, multinomial, normal, scaled inverse chi, and uniform.
  1570. pdflib_test
  1571. pendulum_comparison_ode, an Octave code which compares the linear and nonlinear ordinary differential equations (ODE) that represent the behavior of a pendulum of length L under a gravitational force of strength G.
  1572. pendulum_comparison_ode_test
  1573. pendulum_double_ode, an Octave code which sets up and solves the double pendulum ordinary differential equation (ODE).
  1574. pendulum_double_ode_test
  1575. pendulum_elastic_ode an Octave code which sets up and solves the ordinary differential equations (ODE) that represent the behavior of a nonlinear elastic pendulum, with gravitational force G, spring constant K, unstretched length L, and mass M.
  1576. pendulum_elastic_ode_test
  1577. pendulum_nonlinear_exact, an Octave code which evaluates an exact formula for the solution of the the ordinary differential equations (ODE) that represent the behavior of a nonlinear pendulum of length L under a gravitational force of strength G.
  1578. pendulum_nonlinear_exact_test
  1579. pendulum_nonlinear_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) that represent a nonlinear model of the behavior of a pendulum of length L under a gravitational force of strength G.
  1580. pendulum_nonlinear_ode_test
  1581. pendulum_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) that represent a linear model of the behavior of a pendulum of length L under a gravitational force of strength G.
  1582. pendulum_ode_test
  1583. pendulum_ode_period, an Octave code which sets up and solves a system of ordinary differential equations (ODE) that represent the behavior of a linear pendulum of length L under a gravitational force of strength G, in order to estimate the period of oscillation.
  1584. pendulum_ode_period_test
  1585. pentominoes, an Octave code which forms or plots any of the 12 members of the pentomino family, shapes formed from 5 adjacent squares.
  1586. pentominoes_test
  1587. perceptron_test, an Octave code which calculates a classifier of linearly separable data using the perceptron algorithm.
  1588. percolation_simulation, an Octave code which simulates a percolation system. A rectangular region is decomposed into a grid of MxN squares. Each square may be porous or solid. We are interested in a path of porous squares connecting the top and bottom, or the left and right boundaries. The original code was written by Ian Cooper.
  1589. percolation_simulation_test
  1590. permutation_distance, an Octave code which estimates the expected value of the Ulam distance between a pair of randomly selected permutations of the same order.
  1591. permutation_distance_test
  1592. persistence, an Octave code which demonstrates how to initialize, get, or set data stored within a function, using static/persistent/saved/local memory.
  1593. persistence_test
  1594. pgma_io, an Octave code which reads or writes graphics files that use the ASCII Portable Gray Map (PGM) format.
  1595. pgma_io_test
  1596. pi_spigot, an Octave code which produces any number of digits of the decimal expansion of pi.
  1597. pi_spigot_test
  1598. pic, an Octave code which uses the Particle In Cell (PIC) method to simulate the motion of electrically charged particles past a plate, and is intended as a starting point for implementing a parallel version.
  1599. pic_test
  1600. pink_noise, an Octave code which computes a pink noise signal obeying a 1/f power law.
  1601. pink_noise_test
  1602. plasma_matrix, an Octave code which sets up a matrix associated with a problem in plasma physics.
  1603. plasma_matrix_test
  1604. ply_display, an Octave code which displays an image of a 3D graphics file in PLY format;
  1605. ply_display_test
  1606. ply_io, an Octave code which reads or writes a 3D graphics file in PLY format, by Greg Turk;
  1607. ply_io_test
  1608. ply_to_tri_surface, an Octave code which reads a PLY file describing a 3D polygonal mesh, and reformulates the surface mesh data as 3D mesh of triangles, a TRI_SURFACE dataset.
  1609. ply_to_tri_surface_test
  1610. poisson_1d, an Octave code which solves a discretized version of the Poisson equation -uxx = f(x) on the interval a ≤ x ≤ b, with Dirichlet boundary conditions u(a) = ua, u(b) = ub. The linear system is solved using Gauss-Seidel iteration.
  1611. poisson_1d_test
  1612. poisson_1d_multigrid, an Octave code which applies the multigrid method to a discretized version of the 1D Poisson equation.
  1613. poisson_1d_multigrid_test
  1614. poisson_2d, an Octave code which solves the Poisson equation in a rectangle, using finite differences and Jacobi iteration.
  1615. poisson_2d_test
  1616. poisson_ell_test, an Octave code which plots data from a solution of the Poisson equation in the L-shaped region, as computed by FreeFem++() and transferred using the ffmatlib() library.
  1617. poisson_simulation, an Octave code which simulates a Poisson process in which events randomly occur with an average waiting time of Lambda.
  1618. poisson_simulation_test
  1619. polar_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) whose variable is complex, and whose solution should be viewed in a polar coordinate plot.
  1620. polar_ode_test
  1621. polpak, an Octave code which evaluates a variety of mathematical functions, polynomials, and sequences, including Bell, Benford, Bernoulli, Bernstein, Cardan, Catalan, Charlier, Chebyshev, Collatz, Delannoy, Euler, Fibonacci, Gegenbauer, Gudermannian, Harmonic, Hermite, Hofstadter, Hypergeometric 2F1, Jacobi, Krawtchouk, Laguerre, Lambert, Legendre, Lerch, Meixner, Mertens, Moebius, Motzkin, Phi, Stirling Number, Tau, Tribonacci, Zernike.
  1622. polpak_test
  1623. polygon, an Octave code which computes properties of an arbitrary polygon in the plane, defined by a sequence of vertices, including interior angles, area, centroid, containment of a point, convexity, counter clockwise ordering, diameter, distance to a point, inradius, lattice area, nearest point in set, outradius, uniform sampling, and triangulation.
  1624. polygon_test
  1625. polygon_average, an Octave code which demonstrates a process of repeatedly averaging and normalizing the vertices of a polygon, illustrating a property of the power method.
  1626. polygon_average_test
  1627. polygon_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of a polygon in 2D.
  1628. polygon_distance_test
  1629. polygon_grid, an Octave code which generates a grid of points over the interior of a polygon in 2D.
  1630. polygon_grid_test
  1631. polygon_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of a polygon in 2D.
  1632. polygon_integrals_test
  1633. polygon_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the interior of a polygon in 2D.
  1634. polygon_monte_carlo_test
  1635. polygon_triangulate, an Octave code which triangulates a (possibly nonconvex) polygon in 2D, based on a C program by Joseph ORourke;
  1636. polygon_triangulate_test
  1637. polygonal_surface_display, an Octave code which displays a surface in 3D described as a set of polygons;
  1638. polygonal_surface_display_test
  1639. polyiamonds, an Octave code which works with polyiamonds, simple shapes constructed by edgewise connections of congruent equilateral triangles.
  1640. polyiamonds_test
  1641. polynomial, an Octave code which adds, multiplies, differentiates, evaluates and prints multivariate polynomials in a space of M dimensions.
  1642. polynomial_test
  1643. polynomial_conversion, an Octave code which converts representations of a polynomial between monomial, Bernstein, Chebyshev, Gegenbauer, Hermite, Laguerre and Legendre forms.
  1644. polynomial_conversion_test
  1645. polynomial_multiply, an Octave code which multiplies two polynomials p(x) and q(x).
  1646. polynomial_multiply_test
  1647. polynomial_resultant, an Octave code which computes the resultant R of univariate polynomials P and Q.
  1648. polynomial_resultant_test
  1649. polynomial_root_bound, an Octave code which computes the Cauchy bound on the magnitude of all roots of a polynomial with complex coefficients.
  1650. polynomial_root_bound_test
  1651. polynomials, an Octave code which defines multivariate polynomials over rectangular domains, for which certain information is to be determined, such as the maximum and minimum values.
  1652. polynomials_test
  1653. polyomino_parity, an Octave code which uses parity considerations to determine whether a given set of polyominoes can tile a specified region.
  1654. polyomino_parity_test
  1655. polyominoes, an Octave code which defines, solves, and plots a variety of polyomino tiling problems, which are solved by a direct algebraic approach, instead of the more typical brute-force or backtracking methods.
  1656. polyominoes_test
  1657. porous_medium_exact, an Octave code which returns an exact solution of the porous medium equation (PME), dudt=Del^2(u^m), a partial differential equation (PDE) related to the diffusion equation, based on the Barenblatt solution.
  1658. porous_medium_exact_test
  1659. power_method, an Octave code which carries out the power method for finding a dominant eigenvalue and its eigenvector.
  1660. power_method_test
  1661. power_rule, an Octave code which constructs a power rule, that is, a product quadrature rule from identical 1D factor rules.
  1662. power_rule_test
  1663. ppma_io, an Octave code which reads or writes graphics files that use the ASCII Portable Pixel Map (PPM) format.
  1664. ppma_io_test
  1665. praxis, an Octave code which minimizes a scalar function of several variables, without requiring derivative information, by Richard Brent.
  1666. praxis_test
  1667. predator_prey_ode, an Octave code which sets up and solves a time-dependent predator-prey system of ordinary differential equations (ODE).
  1668. predator_prey_ode_test
  1669. predator_prey_ode_period, an Octave code which sets up and solves a time-dependent predator-prey system of ordinary differential equations (ODE) in order to estimate the period of the limit cycle.
  1670. predator_prey_ode_period_test
  1671. prime, an Octave code which counts the number of primes between 1 and N, and is intended as a starting point for a parallel version.
  1672. prime_test
  1673. prime_factors, an Octave code which returns a list of the prime factors of an integer.
  1674. prime_factors_test
  1675. prime_fermat, an Octave code which applies Fermat's primality test to an integer n, which always correctly identifies primes, but sometimes also accepts nonprimes. Nonetheless, the test is useful for weeding out most nonprimes. The accuracy of the test can be improved by running it for several bases.
  1676. prime_fermat_test
  1677. prime_pi, an Octave code which evaluates Pi(n), the number of primes less than or equal to an integer n.
  1678. prime_pi_test
  1679. prime_plot, an Octave code which displays a box plot of the prime and composite numbers.
  1680. prime_plot_test
  1681. prism_jaskowiec_rule, an Octave code which returns symmetric quadrature rules, with exactness up to total degree 20, over the interior of a prism with triangular base, by Jan Jaskowiec, Natarajan Sukumar.
  1682. prism_jaskowiec_rule_test
  1683. prism_witherden_rule, an Octave code which returns a symmetric Witherden quadrature rule for a prism with triangular base, with exactness up to total degree 10.
  1684. prism_witherden_rule_test
  1685. prob, an Octave code which evaluates, samples, inverts, and characterizes Probability Density Functions (PDF) and Cumulative Density Functions (CDF), including anglit, arcsin, benford, birthday, bernoulli, beta_binomial, beta, binomial, bradford, burr, cardiod, cauchy, chi, chi squared, circular, cosine, deranged, dipole, dirichlet mixture, discrete, empirical, english sentence and word length, error, exponential, extreme values, f, fisk, folded normal, frechet, gamma, generalized logistic, geometric, gompertz, gumbel, half normal, hypergeometric, inverse gaussian, laplace, levy, logistic, log normal, log series, log uniform, lorentz, maxwell, multinomial, nakagami, negative binomial, normal, pareto, planck, poisson, power, quasigeometric, rayleigh, reciprocal, runs, sech, semicircular, student t, triangle, uniform, von mises, weibull, zipf.
  1686. prob_test
  1687. product_rule, an Octave code which creates an M dimensional quadrature rule from a product of distinct 1d quadrature rules;
  1688. product_rule_test
  1689. profile_data, an Octave code which carries out some numerical exercises based on data that came from tracing the profile of a face.
  1690. profile_data_test
  1691. pwc_plot_1d, an Octave code which converts the definition of a piecewise constant (PWC) function of a 1D argument into plottable data.
  1692. pwc_plot_1d_test
  1693. pwc_plot_2d, an Octave code which converts the definition of a piecewise constant (PWC) function of a 2D argument into plottable data.
  1694. pwc_plot_2d_test
  1695. pwl_approx_1d, an Octave code which approximates a set of data using a piecewise linear (PWL) function.
  1696. pwl_approx_1d_test
  1697. pwl_interp_1d, an Octave code which interpolates a set of data using a piecewise linear (PWL) function.
  1698. pwl_interp_1d_test
  1699. pwl_interp_2d, an Octave code which evaluates a piecewise linear (PWL) interpolant to data defined on a regular 2D grid.
  1700. pwl_interp_2d_test
  1701. pwl_interp_2d_scattered, an Octave code which evaluates a piecewise linear (PWL) interpolant to data which is available at an irregularly arranged set of points.
  1702. pwl_interp_2d_scattered_test
  1703. pwl_product_integral, an Octave code which calculates the exact value of the integral of the product of two piecewise linear (PWL) functions f(x) and g(x).
  1704. pwl_product_integral_test
  1705. pyramid_exactness, an Octave code which investigates the polynomial exactness of a quadrature rule over the interior of the unit pyramid in 3D.
  1706. pyramid_exactness_test
  1707. pyramid_felippa_rule, an Octave code which returns a Felippa quadrature rule for approximating integrals over the interior of a pyramid in 3D.
  1708. pyramid_felippa_rule_test
  1709. pyramid_grid, an Octave code which computes a grid of points over the interior of the unit pyramid in 3D;
  1710. pyramid_grid_test
  1711. pyramid_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit pyramid in 3D.
  1712. pyramid_integrals_test
  1713. pyramid_jaskowiec_rule, an Octave code which returns quadrature rules, with exactness up to total degree 20, over the interior of a pyramid in 3D, by Jan Jaskowiec, Natarajan Sukumar.
  1714. pyramid_jaskowiec_rule_test
  1715. pyramid_monte_carlo, an Octave code which applies a Monte Carlo method to estimate integrals of a function over the interior of the unit pyramid in 3D;
  1716. pyramid_monte_carlo_test
  1717. pyramid_rule, an Octave code which computes a conical product quadrature rule over the interior of the unit pyramid in 3D.
  1718. pyramid_rule_test
  1719. pyramid_witherden_rule, an Octave code which returns a Witherden quadrature rule, with exactness up to total degree 10, over the interior of a pyramid.
  1720. pyramid_witherden_rule_test
  1721. qr_solve, an Octave code which computes the linear least squares (LLS) solution of a system A*x=b using the QR factorization.
  1722. qr_solve_test
  1723. quad_fast_rule, an Octave code which rapidly defines certain quadrature rules for approximating an integral;
  1724. quad_fast_rule_test
  1725. quad_gauss, a Octave code which interactively uses an n-point Gauss quadrature rule to estimate the integral of a function f(x) in the interval [a,b].
  1726. quad_gauss_test
  1727. quad_monte_carlo, a Octave code which interactively uses n random samples to estimate the integral of a function f(x) in the interval [a,b].
  1728. quad_monte_carlo_test
  1729. quad_rule, an Octave code which defines quadrature rules for approximating an integral;
  1730. quad_rule_test
  1731. quad_serial, an Octave code which applies a quadrature rule to estimate an integral, intended as a starting point for parallelization exercises.
  1732. quad_serial_test
  1733. quad_trapezoid, a Octave code which interactively applies a trapezoid rule using n intervals to estimate the integral of a function f(x) over an interval [a,b].
  1734. quad_trapezoid_test
  1735. quad2d, an Octave code which estimates an integral over a 2D rectangle using quadrature, intended as the starting point for program optimization or parallelization.
  1736. quad2d_test
  1737. quadex_ode an Octave code which sets up and solves a stiff ordinary differential equation (ODE), whose exact solution is a parabola, but for which errors grow exponentially.
  1738. quadex_ode_test
  1739. quadmom, an Octave code which computes a Gaussian quadrature rule for a weight function rho(x) based on the Golub-Welsch procedure that only requires knowledge of the moments of rho(x).
  1740. quadmom_test
  1741. quadrature_golub_welsch, an Octave code which computes the points and weights of a Gaussian quadrature rule using the Golub-Welsch procedure.
  1742. quadrature_golub_welsch_test
  1743. quadrature_least_squares, an Octave code which computes weights for sub-interpolatory quadrature rules, that is, it estimates integrals by integrating a polynomial that approximates the function data in a least squares sense.
  1744. quadrature_least_squares_test
  1745. quadrature_weights_vandermonde, an Octave code which computes the weights of a quadrature rule using the Vandermonde matrix, assuming that the points have been specified.
  1746. quadrature_weights_vandermonde_test
  1747. quadrature_weights_vandermonde_2d, an Octave code which computes the weights of a 2D quadrature rule using the Vandermonde matrix, assuming that the points have been specified.
  1748. quadrature_weights_vandermonde_2d_test
  1749. quadrilateral, an Octave code which carries out geometric calculations on quadrilaterals, including angles, area, distances, nearest point, point containment, perimeter, and random generation.
  1750. quadrilateral_test
  1751. quadrilateral_mesh, an Octave code which handles meshes of quadrilaterals over a 2D region;
  1752. quadrilateral_mesh_test
  1753. quadrilateral_mesh_order1_display, an Octave code which plots piecewise constant (PWC) data associated with a mesh of quadrilaterals;
  1754. quadrilateral_mesh_order1_display_test
  1755. quadrilateral_mesh_rcm, an Octave code which computes the Reverse Cuthill McKee (RCM) reordering for nodes in a mesh of 4-node quadrilaterals.
  1756. quadrilateral_mesh_rcm_test
  1757. quadrilateral_surface_display, an Octave code which plots piecewise bilinear data associated with a quadrilateral_surface, that is, a 3D surface defined by a quadrilateral mesh;
  1758. quadrilateral_surface_display_test
  1759. quadrilateral_witherden_rule, an Octave code which returns a symmetric Witherden quadrature rule for the quadrilateral, with exactness up to total degree 21.
  1760. quadrilateral_witherden_rule_test
  1761. quality, an Octave code which measures the dispersion of pointsets in M dimensions;
  1762. quality_test
  1763. quasiperiodic_ode, an Octave code which sets up and solves a system of ordinary differential equations (ODE) for a problem with a quasiperiodic solution.
  1764. quasiperiodic_ode_test
  1765. quaternions, an Octave code which carries out some simple arithmetic operations for quaternions.
  1766. quaternions_test
  1767. r8_scale, an Octave code which computes the "next" and "previous" real numbers.
  1768. r8_scale_test
  1769. r83, an Octave code which contains linear algebra routines for r83 matrices (real, 64 bit, tridiagonal 3xN format).
  1770. r83_test
  1771. r83_np, an Octave code which contains linear algebra routines for r83_np matrices (real, 64 bit, tridiagonal 3xN format, nonpivoting factorization).
  1772. r83_np_test
  1773. r83p, an Octave code which contains linear algebra routines for r83p matrices (real, 64 bit, tridiagonal periodic format).
  1774. r83p_test
  1775. r83s, an Octave code which contains linear algebra routines for r83s matrices (real, 64 bit, tridiagonal scalar format).
  1776. r83s_test
  1777. r83t, an Octave code which contains linear algebra routines for r83t matrices (real, 64 bit, tridiagonal Mx3 format).
  1778. r83t_test
  1779. r83v, an Octave code which contains linear algebra routines for r83v matrices (real, 64 bit, tridiagonal three vector format).
  1780. r83v_test
  1781. r85, an Octave code which contains linear algebra routines for r85 matrices (real, 64 bit, pentadiagonal format).
  1782. r85_test
  1783. r8bb, an Octave code which contains linear algebra routines for r8bb matrices (real, 64 bit, border banded format).
  1784. r8bb_test
  1785. r8blt, an Octave code which contains linear algebra routines for r8blt matrices (real, 64 bit, band lower triangular format).
  1786. r8blt_test
  1787. r8bto, an Octave code which contains linear algebra routines for r8bto matrices (real, 64 bit, block Toeplitz format).
  1788. r8bto_test
  1789. r8but, an Octave code which contains linear algebra routines for r8but matrices (real, 64 bit, band upper triangular format).
  1790. r8but_test
  1791. r8cb, an Octave code which contains linear algebra routines for r8cb matrices (real, 64 bit, Compressed Band format).
  1792. r8cb_test
  1793. r8cbb, an Octave code which contains linear algebra routines for r8cbb matrices (real, 64 bit, Compressed Border Banded format).
  1794. r8cbb_test
  1795. r8ccs, an Octave code which contains linear algebra routines for r8ccs matrices: real, 64 bit, Compressed Column Storage (CCS) format.
  1796. r8ccs_test
  1797. r8ci, an Octave code which contains linear algebra routines for r8ci matrices (real, 64 bit, circulant format).
  1798. r8ci_test
  1799. r8col, an Octave code which contains utility routines for an R8COL, that is, a real 64 bit MxN array, considered as N column vectors, each of length M. The data may be thought of as a matrix of multiple columns, and many operations will be carried out columnwise.
  1800. r8col_test
  1801. r8crs, an Octave code which contains linear algebra routines for R8CRS matrices: real, 64 bit, Compressed Row Storage (CRS) format.
  1802. r8crs_test
  1803. r8gb, an Octave code which contains linear algebra routines for r8gb matrices (real, 64 bit, General Banded format).
  1804. r8gb_test
  1805. r8gd, an Octave code which contains linear algebra routines for r8gd matrices (real, 64 bit, general diagonal format).
  1806. r8gd_test
  1807. r8ge, an Octave code which contains linear algebra routines for R8GE matrices (real, 64 bit, General format).
  1808. r8ge_test
  1809. r8ge_np, an Octave code which contains nonpivoting linear algebra routines for r8ge_np matrices (real, 64 bit, General Nonpivoting format).
  1810. r8ge_np_test
  1811. r8lib, an Octave code which contains many utility routines, using double precision real (R8) arithmetic.
  1812. r8lib_test
  1813. r8lt, an Octave code which contains linear algebra routines for R8LT matrices: real, 64 bit, Lower Triangular.
  1814. r8lt_test
  1815. r8ltt, an Octave code which contains linear algebra routines for r8ltt matrices (real, 64 bit, lower triangular Toeplitz format).
  1816. r8ltt_test
  1817. r8ncf, an Octave code which contains linear algebra routines for r8ncf matrices (real, 64 bit, nonsymmetric coordinate format).
  1818. r8ncf_test
  1819. r8pbl, an Octave code which contains linear algebra routines for r8pbl matrices (real, 64 bit, symmetric positive definite (SPD) band lower format).
  1820. r8pbl_test
  1821. r8pbu, an Octave code which contains linear algebra routines for r8pbu matrices (real, 64 bit, symmetric positive definite (SPD) band upper format).
  1822. r8pbu_test
  1823. r8po, an Octave code which contains linear algebra routines for r8po matrices (real, 64 bit, symmetric positive definite (SPD) format).
  1824. r8po_test
  1825. r8poly, an Octave code which operates on real polynomials, including evaluation, differentiation, integration, multiplication, synthetic division, shifting the base, computing a power, taking the norm. It also defines Chebyshev, Lagrange and Legendre polynomials.
  1826. r8poly_test
  1827. r8pp, an Octave code which contains linear algebra routines for r8pp matrices (real, 64 bit, symmetric positive definite (SPD) packed format).
  1828. r8pp_test
  1829. r8ri, an Octave code which contains linear algebra routines for r8ri matrices (real, 64 bit, row indexed format).
  1830. r8ri_test
  1831. r8row, an Octave code which contains utility routines for an R8ROW, that is, a real 64 bit MxN array, considered as M row vectors, each of length N. The data may be thought of as a matrix of multiple rows, and many operations will be carried out rowwise.
  1832. r8row_test
  1833. r8sd, an Octave code which contains linear algebra routines for r8sd matrices (real, 64 bit, symmetric diagonal format).
  1834. r8sd_test
  1835. r8sm, an Octave code which contains linear algebra routines for r8sm matrices (real, 64 bit, Sherman-Morrison A-u*v' format).
  1836. r8sm_test
  1837. r8sr, an Octave code which carries out linear algebra operations for r8sr matrices (real, 64 bit, diagonal + compressed row offdiagonal format).
  1838. r8sr_test
  1839. r8ss, an Octave code which carries out linear algebra operations for r8ss matrices (real, 64 bit, symmetric skyline format).
  1840. r8ss_test
  1841. r8st, an Octave code which contains linear algebra routines for R8ST matrices: real, 64 bit, Sparse Triplet.
  1842. r8st_test
  1843. r8sto, an Octave code which contains linear algebra routines for r8sto matrices (real, 64 bit, symmetric Toeplitz N format).
  1844. r8sto_test
  1845. r8to, an Octave code which contains linear algebra routines for r8to matrices (real, 64 bit, Toeplitz 2*N-1 format).
  1846. r8to_test
  1847. r8ut, an Octave code which contains linear algebra routines for r8ut matrices: real, 64 bit, Upper Triangular.
  1848. r8ut_test
  1849. r8utp, an Octave code which carries out linear algebra operations on r8utp matrices, real 64 bit, Upper Triangular Packed format.
  1850. r8utp_test
  1851. r8utt, an Octave code which contains linear algebra routines for r8utt matrices (real, 64 bit, upper triangular Toeplitz format).
  1852. r8utt_test
  1853. r8vm, an Octave code which contains linear algebra routines for r8vm matrices (real, 64 bit, vandermonde format).
  1854. r8vm_test
  1855. randlc, an Octave code which implements a random number generator (RNG) used by the nas() benchmarks.
  1856. randlc_test
  1857. random_data, an Octave code which uses a random number generator (RNG) to sample points distributed according to various probability density functions (PDF), spatial dimensions, and geometries, including the annulus, cube, ellipse, ellipsoid, polygon, simplex and sphere.
  1858. random_data_test
  1859. random_sorted, an Octave code which generates vectors of random values which are already sorted.
  1860. random_sorted_test
  1861. random_walk_1d_simulation, an Octave code which simulates a random walk in a 1-dimensional region.
  1862. random_walk_1d_simulation_test
  1863. random_walk_2d_avoid_simulation, an Octave code which simulates a self-avoiding random walk in a 2-dimensional region.
  1864. random_walk_2d_avoid_simulation_test
  1865. random_walk_2d_simulation, an Octave code which simulates a random walk in a 2-dimensional region.
  1866. random_walk_2d_simulation_test
  1867. random_walk_3d_simulation, an Octave code which simulates a random walk in a 3-dimensional region.
  1868. random_walk_3d_simulation_test
  1869. ranlib, an Octave code which produces random samples from Probability Density Functions (PDF), including Beta, Chi-square Exponential, F, Gamma, Multivariate normal, Noncentral chi-square, Noncentral F, Univariate normal, random permutations, Real uniform, Binomial, Negative Binomial, Multinomial, Poisson and Integer uniform, by Barry Brown and James Lovato.
  1870. ranlib_test
  1871. rbf_interp_1d, an Octave code which defines and evaluates radial basis function (RBF) interpolants to 1D data.
  1872. rbf_interp_1d_test
  1873. rbf_interp_2d, an Octave code which defines radial basis function (RBF) interpolants to 2D data.
  1874. rbf_interp_2d_test
  1875. rbf_interp_nd, an Octave code which defines and evaluates radial basis function (RBF) interpolants to M dimensional data.
  1876. rbf_interp_nd_test
  1877. rcm, an Octave code which applies the Reverse Cuthill McKee (RCM) algorithm for reordering the nodes of a graph, and reducing the bandwidth of a corresponding sparse matrix;
  1878. rcm_test
  1879. reaction_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) which model a simple chemical reaction A+B --k--> C.
  1880. reaction_ode_test
  1881. reaction_twoway_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) which model a two-way chemical reaction between species W1 and W2.
  1882. reaction_twoway_ode_test
  1883. reactor simulation, an Octave code which is a simple Monte Carlo simulation of the shielding effect of a slab of a certain thickness in front of a neutron source. This program was provided as an example with the book "Numerical Methods and Software."
  1884. reactor simulation_test
  1885. rectangle_distance, an Octave code which estimates the distribution and expected value of the distance between two points picked uniformly at random within a rectangle.
  1886. rectangle_distance_test
  1887. region_test, an Octave code which plots data from an interesting region that was meshed by FreeFem++() and transferred using the ffmatlib() library.
  1888. rejection_sample, an Octave code which demonstrates acceptance/rejection sampling.
  1889. rejection_sample_test
  1890. rigid_body_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) representing the Euler equations for a rigid body with three unequal moments of inertia, originally proposed by Fred Krogh.
  1891. rigid_body_ode_test
  1892. ring_data, an Octave code which creates, plots, or saves data generated by sampling a number of concentric, possibly overlapping rings.
  1893. ring_data_test
  1894. ripple_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) whose solutions start as ripples and end as hyperbolas.
  1895. ripple_ode_test
  1896. risk_matrix, an Octave code which returns the transition and adjacency matrix for the game of RISK.
  1897. risk_matrix_test
  1898. rk1, an Octave code which solves one or more ordinary differential equations (ODE) using an explicit Runge-Kutta method of order 1, usually known as Euler's explicit method.
  1899. rk1_test
  1900. rk1_implicit, an Octave code which solves one or more ordinary differential equations (ODE) using the Runge-Kutta order 1 implicit method, using fsolve() to solve the implicit equation, and using a fixed time step. rk1_implicit() is commonly called the backward Euler method.
  1901. rk1_implicit_test
  1902. rk12, an Octave code which solves an ordinary differential equation (ODE) using a Runge-Kutta (RK) method of order 2, estimating the local error with a Runge-Kutta method of order 1.
  1903. rk12_test
  1904. rk12_adapt, an Octave code which defines an adaptive ordinary differential equation (ODE) solver, using Runge-Kutta (RK) solvers of order 1 and 2.
  1905. rk12_adapt_test
  1906. rk2, an Octave code which solves one or more ordinary differential equations (ODE) using an explicit Runge-Kutta method of order 2, also known as Heun's method, the modified Euler method, or the explicit midpoint method.
  1907. rk2_test
  1908. rk2_implicit, an Octave code which solves one or more ordinary differential equations (ODE) using the Runge-Kutta order 2 implicit method, using fsolve() to solve the implicit equation, and using a fixed time step. rk2_implicit() is also known as the implicit midpoint method.
  1909. rk2_implicit_test
  1910. rk23, an Octave code which applies Runge-Kutta (RK) solvers of order 2 and 3 to a system of ordinary differential equations (ODE);
  1911. rk23_test
  1912. rk34, an Octave code which applies Runge-Kutta (RK) solvers of order 3 and 4 to a system of ordinary differential equations (ODE);
  1913. rk34_test
  1914. rk4, an Octave code which applies the fourth order Runge-Kutta (RK) algorithm to estimate the solution of an ordinary differential equation (ODE) at the next time step.
  1915. rk4_test
  1916. rk45, an Octave code which applies Runge-Kutta (RK) solvers of order 4 and 5 to a system of ordinary differential equations (ODE);
  1917. rk45_test
  1918. rkf45, an Octave code which applies a Runge-Kutta-Fehlberg (RKF) solver to a system of ordinary differential equations (ODE);
  1919. rkf45_test
  1920. rng_cliff, an Octave code which computes a sequence of values from the Cliff random number generator (RNG).
  1921. rng_cliff_test
  1922. rnglib, an Octave code which implements a random number generator (RNG) with splitting facilities, allowing multiple independent streams to be computed, by L'Ecuyer and Cote.
  1923. rnglib_test
  1924. robertson_ode, an Octave code which sets up and solves a system of three nonlinear stiff ordinary differential equations (ODE) characterizing an autocatalytic chemical reaction.
  1925. robertson_ode_test
  1926. roessler_ode, an Octave code which sets up and solves the 3D Roessler system of ordinary differential equations (ODE).
  1927. roessler_ode_test
  1928. root_rc, an Octave code which seeks a solution of a scalar nonlinear equation f(x)=0, using reverse communication (RC), by Gaston Gonnet.
  1929. root_rc_test
  1930. roots_rc, an Octave code which seeks solutions of a system of nonlinear equations, using reverse communication (RC), by Gaston Gonnet.
  1931. roots_rc_test
  1932. rot13, an Octave code which enciphers a string using the ROT13 cipher for letters, and the ROT5 cipher for digits.
  1933. rot13_test
  1934. roulette_simulation, an Octave code which simulates the spinning of a roulette wheel and the evaluation of certain common roulette bets.
  1935. roulette_simulation_test
  1936. row_echelon_integer, an Octave code which carries out the exact computation of the integer row echelon form (IREF) and integer reduced row echelon form (IRREF) of an integer matrix.
  1937. row_echelon_integer_test
  1938. rref_test, an Octave code which calls rref() for the reduced row echelon form (RREF) of a matrix, which can be singular or rectangular.
  1939. rubber_band_ode, an Octave code which sets up and solves a set of ordinary differential equations (ODE) describing a mass suspended by a spring and rubber band, which exhibits chaotic behavior.
  1940. rubber_band_ode_test
  1941. rucklidge_ode, an Octave code which sets up and solves the Rucklidge ordinary differential equation (ODE), a model of double convection which embodies a transition to chaos.
  1942. rucklidge_ode_test
  1943. sammon_data, an Octave code which generates six M dimensional datasets for cluster analysis.
  1944. sammon_data_test
  1945. sandia_cubature, an Octave code which computes M-dimensional quadrature rules for certain regions and weight functions.
  1946. sandia_cubature_test
  1947. sandia_rules, an Octave code which produces 1D quadrature rules of Chebyshev, Clenshaw Curtis, Fejer 2, Gegenbauer, generalized Hermite, generalized Laguerre, Hermite, Jacobi, Laguerre, Legendre and Patterson types.
  1948. sandia_rules_test
  1949. sandia_sgmgg, an Octave code which explores a generalized construction method for sparse grids.
  1950. sandia_sgmgg_test
  1951. sandia_sparse, an Octave code which produces a M-dimensional sparse grid, based on a variety of 1D quadrature rules; only isotropic grids are generated, that is, the same rule is used in each dimension, and the same maximum order is used in each dimension.
  1952. sandia_sparse_test
  1953. satisfy_brute, an Octave code which uses brute force to find all assignments of values to a set of logical variables which make a complicated logical statement true.
  1954. satisfy_brute_test
  1955. sawtooth_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) driven by a right hand side which is a sawtooth function (periodic, discontinuous, piecewise linear).
  1956. sawtooth_ode_test
  1957. schroedinger_linear_pde, an Octave code which sets up and solves the complex partial differential equation (PDE) known as Schroedinger's linear equation: dudt = i uxx, in one spatial dimension, with Neumann boundary conditions.
  1958. schroedinger_linear_pde_test
  1959. schroedinger_nonlinear_pde, an Octave code which sets up and solves the complex partial differential equation (PDE) known as Schroedinger's nonlinear equation: dudt = i uxx + i gamma * |u|^2 u, in one spatial dimension, with Neumann boundary conditions.
  1960. schroedinger_nonlinear_pde_test
  1961. scip_solution_read, an Octave code which reads a file created by the integer programming package scip(), representing the solution of a polyomino tiling problem, and writes out a simple ASCII file.
  1962. scip_solution_read_test
  1963. sde, an Octave code which illustrates properties of stochastic differential equations (SDE), and common algorithms for their analysis, by Desmond Higham;
  1964. sde_test
  1965. search_test, an Octave code which searches integers between A and B for a value J such that F(J) = C.
  1966. sensitive_ode, an Octave code which sets up a second order ordinary differential equation (ODE) which exhibits sensitive dependence on the initial condition.
  1967. sensitive_ode_test
  1968. serenity, an Octave code which considers the serenity puzzle, a smaller version of the eternity puzzle. The serenity puzzle specifies a dodecagonal region R composed of 288 30-60-90 triangles, and a set of 8 "tiles", each consisting of 36 30-60-90 triangles, and seeks an arrangement of the tiles that exactly covers the region.
  1969. serenity_test
  1970. serenity_cplex_test a BASH code which calls cplex(), to read the LP file defining the serenity tiling problem, solve the linear programming problem, and write the solution to a file.
  1971. serenity_gurobi_test a BASH code which calls gurobi(), to read the LP file defining the serenity tiling problem, solve the linear programming problem, and write the solution to a file.
  1972. set_theory, an Octave code which implements various set theoretic operations.
  1973. set_theory_test
  1974. sftpack, an Octave code which implements the slow Fourier transform (SFT), intended as a teaching tool and comparison with the Fast Fourier Transform (FFT).
  1975. sftpack_test
  1976. shepard_interp_1d, an Octave code which defines and evaluates Shepard interpolants to 1D data, based on inverse distance weighting.
  1977. shepard_interp_1d_test
  1978. shepard_interp_2d, an Octave code which defines and evaluates Shepard interpolants to 2D data, based on inverse distance weighting.
  1979. shepard_interp_2d_test
  1980. shepard_interp_nd, an Octave code which defines and evaluates Shepard interpolants to M dimensional data, based on inverse distance weighting.
  1981. shepard_interp_nd_test
  1982. sigmoid_derivative, an Octave code which evaluates derivatives of any order for the sigmoid function s(x)=1/(1+exp(-x)).
  1983. sigmoid_derivative_test
  1984. simplex_coordinates, an Octave code which computes the Cartesian coordinates of the vertices of a regular simplex in M dimensions.
  1985. simplex_coordinates_test
  1986. simplex_gm_rule, an Octave code which defines Grundmann-Moeller quadrature rules over the interior of a triangle in 2D, a tetrahedron in 3D, or over the interior of the simplex in M dimensions.
  1987. simplex_gm_rule_test
  1988. simplex_grid, an Octave code which generates a regular grid of points over the interior of an arbitrary simplex in M dimensions.
  1989. simplex_grid_test
  1990. simplex_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit simplex in M dimensions.
  1991. simplex_integrals_test
  1992. simplex_monte_carlo, an Octave code which uses the Monte Carlo method to estimate an integral over the interior of the unit simplex in M dimensions.
  1993. simplex_monte_carlo_test
  1994. sine_gordon_exact, an Octave code which returns an exact solution of the Sine-Gordon equation, a partial differential equation (PDE) of the form uxy=sin(u).
  1995. sine_gordon_exact_test
  1996. sine_transform, an Octave code which demonstrates properties of the discrete sine transform (DST).
  1997. sine_transform_test
  1998. sir_ode, an Octave code which sets up and solves the ordinary differential equations (ODE) which simulate the spread of a disease using the Susceptible/Infected/Recovered (SIR) model.
  1999. sir_ode_test
  2000. sir_simulation, an Octave code which simulates the spread of a disease through a hospital room of M by N beds, using the Susceptible/Infected/Recovered (SIR) model.
  2001. sir_simulation_test
  2002. slap_io, an Octave code which reads and writes sparse matrix files in the SLAP format;
  2003. slap_io_test
  2004. sling_ode, an Octave code which sets up and solves a system of ordinary differential equations (ODE) for which the exact circular solution can only be approximated for a short interval before it decays to zero.
  2005. sling_ode_test
  2006. smolyak_display, an Octave code which displays the exactness diagram for a 2D Smolyak sparse grid, by displaying and summing the exactness diagrams for the component product rules.
  2007. smolyak_display_test
  2008. snakes_and_ladders, an Octave code which provides tools for studying the game of Snakes and Ladders.
  2009. snakes_and_ladders_simulation, an Octave code which simulates a one-player game of Snakes and Ladders, to produce histograms of the count, PDF and CDF estimates for the length of a one-player game.
  2010. snakes_and_ladders_simulation_test
  2011. snakes_matrix, an Octave code which returns the transition matrix for the game of Snakes and Ladders.
  2012. snakes_matrix_test
  2013. snakes_probability, an Octave code which computes the game length probabilities for the game of Snakes and Ladders, by Desmond Higham and Nicholas Higham.
  2014. snakes_probability_test
  2015. sncndn, an Octave code which evaluates the Jacobi elliptic functions sn(u,m), cn(u,m), and dn(u,m).
  2016. sncndn_test
  2017. solve, an Octave code which uses Gauss elimination to solve a linear system A*x=b.
  2018. solve_test
  2019. sor, an Octave code which uses the successive over-relaxation (SOR) iteration to solve a linear system of equations.
  2020. sor_test
  2021. sort_test, an Octave code which calls the sort() function to sort objects of several types.
  2022. sort_rc, an Octave code which sorts a list of any kind of objects, using reverse communication (RC).
  2023. sort_rc_test
  2024. sparse_test, an Octave code which tests the sparse() function for creating sparse matrices and carrying out linear algebraic functions on them;
  2025. sparse_count, an Octave code which analyzes sparse grids in which a single family of 1D quadrature rules is used for all spatial dimensions, with a variety of growth rules.
  2026. sparse_count_test
  2027. sparse_display, an Octave code which reads information defining a matrix of numbers and displays the sparsity pattern or location of the nonzero elements using gnuplot(). This operation is already available in the built-in matplotlib spy() function.
  2028. sparse_display_test
  2029. sparse_grid_cc, an Octave code which creates sparse grids based on Clenshaw-Curtis (CC) quadrature rules.
  2030. sparse_grid_cc_test
  2031. sparse_grid_gl, an Octave code which creates sparse grids based on Gauss-Legendre (GL) rules.
  2032. sparse_grid_gl_test
  2033. sparse_grid_hermite, an Octave code which creates sparse grids based on Gauss-Hermite rules.
  2034. sparse_grid_hermite_test
  2035. sparse_grid_hw, an Octave code which creates sparse grids based on Gauss-Legendre, Gauss-Hermite, Gauss-Patterson, or a nested variation of Gauss-Hermite rules, by Florian Heiss and Viktor Winschel.
  2036. sparse_grid_hw_test
  2037. sparse_grid_laguerre, an Octave code which creates sparse grids based on Gauss-Laguerre rules.
  2038. sparse_grid_laguerre_test
  2039. sparse_grid_mixed, an Octave code which creates a sparse grid dataset based on a mixed set of 1D factor rules.
  2040. sparse_grid_mixed_test
  2041. sparse_grid_total_poly, an Octave code which investigates the total polynomial approximation using sparse grids.
  2042. sparse_grid_total_poly_test
  2043. sparse_interp_nd, an Octave code which defines a sparse interpolant to a function f(x) of a M dimensional argument.
  2044. sparse_interp_nd_test
  2045. spd_test, an Octave code which performs a few tests on a real matrix to determine whether it is symmetric positive definite (SPD).
  2046. sphere_cubed_grid, an Octave code which uses the projection of a cube to create grids of points, lines, and quadrilaterals on the surface of the unit sphere in 3D.
  2047. sphere_cubed_grid_test
  2048. sphere_cvt, an Octave code which carries out the Centroidal Voronoi Tessellation (CVT) iteration on the surface of the unit sphere in 3D.
  2049. sphere_cvt_test
  2050. sphere_delaunay, an Octave code which computes the Delaunay triangulation of points on the surface of the unit sphere in 3D.
  2051. sphere_delaunay_test
  2052. sphere_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the surface of the unit sphere in 3D.
  2053. sphere_distance_test
  2054. sphere_exactness, an Octave code which tests the polynomial exactness of a quadrature rule on the surface of the unit sphere in 3D.
  2055. sphere_exactness_test
  2056. sphere_fibonacci_grid, an Octave code which uses a Fibonacci spiral to create a grid of points on the surface of the unit sphere in 3D.
  2057. sphere_fibonacci_grid_test
  2058. sphere_grid, an Octave code which provides a number of ways of generating grids of points, or of points and lines, or of points and lines and faces, on the surface of the unit sphere in 3D.
  2059. sphere_grid_test
  2060. sphere_integrals, an Octave code which returns the exact value of the integral of any monomial over the surface of the unit sphere in 3D.
  2061. sphere_integrals_test
  2062. sphere_lebedev_rule, an Octave code which computes Lebedev quadrature rules on the surface of the unit sphere in 3D.
  2063. sphere_lebedev_rule_test
  2064. sphere_lebedev_rule_display, an Octave code which reads a file defining a Lebedev quadrature rule on the surface of the unit sphere in 3D and displays the point locations.
  2065. sphere_lebedev_rule_display_test
  2066. sphere_llq_grid, an Octave code which uses longitudes and latitudes to create grids of points, lines, and quadrilaterals on the surface of the unit sphere in 3D.
  2067. sphere_llq_grid_test
  2068. sphere_llt_grid, an Octave code which uses longitudes and latitudes to create grids of points, lines, and triangles on the surface of the unit sphere in 3D.
  2069. sphere_llt_grid_test
  2070. sphere_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function on the surface of the unit sphere in 3D.
  2071. sphere_monte_carlo_test
  2072. sphere_positive_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the surface of the unit positive sphere in 3D.
  2073. sphere_positive_distance_test
  2074. sphere_quad, an Octave code which uses triangulation to approximate an integral on the surface of the unit sphere in 3D.
  2075. sphere_quad_test
  2076. sphere_stereograph, an Octave code which computes the stereographic mapping between points on the surface of the unit sphere in 3D and points on the plane Z = 1; a generalized mapping is also available.
  2077. sphere_stereograph_test
  2078. sphere_stereograph_display, an Octave code which computes and displays the results of several stereographic projections between points on the surface of the unit sphere in 3D and a plane.
  2079. sphere_stereograph_display_test
  2080. sphere_triangle_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over a spherical triangle on the surface of the unit sphere in 3D;
  2081. sphere_triangle_monte_carlo_test
  2082. sphere_triangle_quad, an Octave code which uses quadrature to estimate the integral of a function over a spherical triangle on the surface of the unit sphere in 3D.
  2083. sphere_triangle_quad_test
  2084. sphere_voronoi, an Octave code which computes the Voronoi diagram of points on the surface of the unit sphere in 3D.
  2085. sphere_voronoi_test
  2086. spherical_harmonic, an Octave code which evaluates spherical harmonic functions.
  2087. spherical_harmonic_test
  2088. spiral_exact, an Octave code which computes a 2D velocity vector field that is an exact solution of the continuity equation.
  2089. spiral_exact_test
  2090. spiral_pde, an Octave code which solves a pair of reaction-diffusion partial differential equations (PDE) over a rectangular domain with periodic boundary condition, whose solution is known to evolve into a pair of spirals.
  2091. spiral_pde_test
  2092. spline, an Octave code which interpolates and approximates via splines;
  2093. spline_test
  2094. spquad, an Octave code which computes the points and weights of a sparse grid quadrature rule for an M-dimensional integral, based on the Clenshaw-Curtis quadrature rule, by Greg von Winckel.
  2095. spquad_test
  2096. spring_ode, an Octave code which sets up and solves a system of ordinary differential equations (ODE) for the motion of a spring with mass m, damping b, and stiffness k.
  2097. spring_ode_test
  2098. spring_double_ode, an Octave code which sets up and solves a system of ordinary differential equations (ODE) for a system in which a mass is connected by a spring to a mass connected by a spring to a fixed support.
  2099. spring_double_ode_test
  2100. spring_sweep_ode, an Octave code which computes a grid of solutions to a parameterized system of ordinary differential equations (ODE) that represent the motion of a spring with mass m, damping b, and stiffness k.
  2101. spring_sweep_ode_test
  2102. square_arbq_rule, an Octave code which returns quadrature rules, with exactness up to total degree 20, over the interior of the symmetric square in 2D, by Hong Xiao and Zydrunas Gimbutas.
  2103. square_arbq_rule_test
  2104. square_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of the unit square in 2D.
  2105. square_distance_test
  2106. square_exactness, an Octave code which investigates the polynomial exactness of quadrature rules for f(x,y) over the interior of a rectangle in 2D.
  2107. square_exactness_test
  2108. square_felippa_rule, an Octave code which returns a Felippa quadrature rules for approximating integrals over the interior of a square in 2D.
  2109. square_felippa_rule_test
  2110. square_grid, an Octave code which computes a grid of points over the interior of a square in 2D.
  2111. square_grid_test
  2112. square_hex_grid, an Octave code which computes a hexagonal grid of points over the interior of a square in 2D.
  2113. square_hex_grid_test
  2114. square_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit square or symmetric unit square in 2D.
  2115. square_integrals_test
  2116. square_minimal_rule, an Octave code which returns almost minimal quadrature rules, with exactness up to total degree 55, over the interior of the symmetric square in 2D, by Mattia Festa and Alvise Sommariva.
  2117. square_minimal_rule_test
  2118. square_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit square in 2D.
  2119. square_monte_carlo_test
  2120. square_surface_distance, an Octave code which estimates the expected value of the distance between a pair of points randomly selected on the surface of the unit square.
  2121. square_surface_distance_test
  2122. square_symq_rule, an Octave code which returns symmetric quadrature rules, with exactness up to total degree 20, over the interior of the symmetric square in 2D, by Hong Xiao and Zydrunas Gimbutas.
  2123. square_symq_rule_test
  2124. squircle_ode, an Octave code which sets up and solves a system of ordinary differential equations (ODE) for a pair of functions that generalize the sine and cosine, and whose phase portrait is a squircle, a sort of squared circle.
  2125. squircle_ode_test
  2126. st_io, an Octave code which reads and writes sparse linear systems stored in the Sparse Triplet (ST) format.
  2127. st_io_test
  2128. st_to_ccs, an Octave code which converts sparse matrix data from Sparse Triplet (ST) format to Compressed Column Storage (CCS) format;
  2129. st_to_ccs_test
  2130. st_to_hb, an Octave code which converts sparse matrix data from Sparse Triplet (ST) format to Harwell Boeing (HB) format;
  2131. st_to_hb_test
  2132. st_to_mm, an Octave code which converts sparse matrix data from Sparse Triplet (ST) format to Matrix Market (MM) format;
  2133. st_to_mm_test
  2134. st_to_msm, an Octave code which reads a Sparse Triplet (ST) file and creates a corresponding MATLAB Sparse Matrix (MSM).
  2135. st_to_msm_test
  2136. steinerberger, an Octave code which evaluates the Steinerberger function, a continuous function with discontinuous derivative, which is very hard to accurately plot, integrate, minimize, or interpolate.
  2137. steinerberger_test
  2138. stetter_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) for which a specific time step sequence causes the implicit trapezoidal method to be unstable, while the implicit midpoint method will be stable. Note that the right hand side function f(t,y) is periodic, discontinuous, and piecewise linear.
  2139. stetter_ode_test
  2140. stiff_ode, an Octave code which sets up and solves an ordinary differential equation (ODE) which is an example of a stiff ODE.
  2141. stiff_ode_test
  2142. stla_display, an Octave code which displays an ASCII stereolithography (STL) 3D graphics file;
  2143. stla_display_test
  2144. stla_io, an Octave code which reads and writes an ASCII stereolithography (STL) 3D graphics file;
  2145. stla_io_test
  2146. stla_to_tri_surface, an Octave code which reads an ASCII stereolithography (STL) 3D graphics file and extracts the surface mesh data as a TRI_SURFACE dataset.
  2147. stla_to_tri_surface_test
  2148. stla_to_tri_surface_fast, an Octave code which is a faster version of stla_to_tri_surface().
  2149. stla_to_tri_surface_fast_test
  2150. stochastic_diffusion, an Octave code which implements several versions of a stochastic diffusivity coefficient.
  2151. stochastic_diffusion_test
  2152. stochastic_heat2d, an Octave code which implements a finite difference method (FDM) for the steady 2D heat equation, with a stochastic heat diffusivity coefficient.
  2153. stochastic_heat2d_test
  2154. stochastic_rk, an Octave code which applies a Runge Kutta (RK) scheme to a stochastic ordinary differential equation (SDE).
  2155. stochastic_rk_test
  2156. stokes_2d_exact, an Octave code which evaluates exact solutions to the incompressible steady Stokes equations over the unit square in 2D.
  2157. stokes_2d_exact_test
  2158. string_pde, an Octave code which sets up and solves the partial differential equations (PDE) describing a vibrating string, creating files to be displayed by gnuplot().
  2159. string_pde_test
  2160. stroud_rule, an Octave code which defines quadrature rules for a variety of M-dimensional regions, including the interior of the square, cube and hypercube, the pyramid, cone and ellipse, the hexagon, the M-dimensional octahedron, the circle, sphere and hypersphere, the triangle, tetrahedron and simplex, and the surface of the circle, sphere and hypersphere.
  2161. stroud_rule_test
  2162. subpak, an Octave code which includes a number of utility routines.
  2163. subpak_test
  2164. subset, an Octave code which enumerates, generates, randomizes, ranks and unranks combinatorial objects including combinations, compositions, Gray codes, index sets, partitions, permutations, polynomials, subsets, and Young tables. Backtracking routines are included to solve some combinatorial problems.
  2165. subset_test
  2166. subset_distance, an Octave code which estimates the expected value of the Hamming distance between a pair of randomly selected subsets of an M set.
  2167. subset_distance_test
  2168. subset_sum, an Octave code which seeks solutions of the subset sum problem, in which it is desired to find a subset of integers which has a given sum.
  2169. subset_sum_test
  2170. subset_sum_backtrack, an Octave code which uses backtracking to find solutions of the subset sum problem, in which it is desired to find a subset of integers which has a given sum.
  2171. subset_sum_backtrack_test
  2172. subset_sum_brute, an Octave code which seeks solutions of the subset sum problem, using a brute force approach.
  2173. subset_sum_brute_test
  2174. subset_sum_swap, an Octave code which uses swapping to try to improve an initial estimated solution of the subset sum problem, which seeks a subset of a set of integers which has a given sum. Even when an exact solution exists, this approach often only finds an approximate solution.
  2175. subset_sum_swap_test
  2176. sudoku, an Octave code which handles Sudoku puzzles;
  2177. sudoku_test
  2178. surf_test, calls surf(), which displays a 3D surface or contour plot for data of the form Z=F(X,Y).
  2179. svd_test, an Octave code which demonstrates the Singular Value Decomposition (SVD) for a simple example.
  2180. svd_basis, an Octave code which applies the singular value decomposition (SVD) to a collection of data vectors, extracting dominant modes;
  2181. svd_basis_test
  2182. svd_circle, an Octave code which analyzes a linear map of the unit circle caused by an arbitrary 2x2 matrix A, using the singular value decomposition (SVD).
  2183. svd_circle_test
  2184. svd_faces, an Octave code which applies singular value decomposition (SVD) analysis to a set of images.
  2185. svd_faces_test
  2186. svd_fingerprint, an Octave code which reads a file containing a fingerprint image and uses the singular value decomposition (SVD) to compute and display a series of low rank approximations to the image.
  2187. svd_fingerprint_test
  2188. svd_gray, an Octave code which reads a gray scale image, computes the Singular Value Decomposition (SVD), and constructs a series of low rank approximations to the image.
  2189. svd_gray_test
  2190. svd_lls, an Octave code which uses the singular value decomposition (SVD) to construct and plot the best affine and linear relationships in the sense of least square, between two vectors of data.
  2191. svd_lls_test
  2192. svd_powers, an Octave code which applies singular value decomposition (SVD) analysis to a set of powers x(i)^(j-1).
  2193. svd_powers_test
  2194. svd_snowfall, an Octave code which reads a file containing historical snowfall data and analyzes the data with the Singular Value Decomposition (SVD).
  2195. svd_snowfall_test
  2196. svd_sphere, an Octave code which analyzes a linear map of the unit sphere caused by an arbitrary 3x3 matrix A, using the singular value decomposition (SVD).
  2197. svd_sphere_test
  2198. svd_truncated_test, an Octave code which calls the economy version of the Singular Value Decomposition (SVD) of an M by N rectangular matrix, in cases where M is less than N or N is less than M.
  2199. sympy_test, an Octave code which tests sympy(), the symbolic mathematics package.
  2200. t_puzzle, an Octave code which considers the T puzzle, a set of 4 wooden pieces. The challenge is to arrange the pieces to form the shape of the letter T. Three other challenge shapes are an arrow, a rhombus, and a fat T.
  2201. t_puzzle_test
  2202. table_io, an Octave code which reads and writes a simple table file;
  2203. table_io_test
  2204. task_division, an Octave code which implements a simple procedure for smoothly dividing T tasks among P processors; such a method can be useful in MPI and other parallel environments, particularly when T is not an exact multiple of P, and when the processors can be indexed starting from 0 or from 1.
  2205. task_division_test
  2206. tec_io, an Octave code which reads or writes a tecplot() ASCII TEC file containing a model associated with the finite element method (FEM).
  2207. tec_io_test
  2208. tec_to_fem, an Octave code which converts a tecplot() ASCII TEC file into an FEM model.
  2209. tec_to_fem_test
  2210. tec_to_vtk, an Octave code which converts a tecplot() TEC file into a set of VTK files.
  2211. tec_to_vtk_test
  2212. tennis_matrix, an Octave code which computes the transition matrix for a game of tennis, which has 17 distinct states.
  2213. tennis_matrix_test
  2214. tensor_grid_display, an Octave code which displays the grid points of a tensor product rule used for interpolation or quadrature, in 1D, 2D or 3D.
  2215. tensor_grid_display_test
  2216. test_approx, an Octave code which implements test problems for approximation, provided as a set of (x,y) data.
  2217. test_approx_test
  2218. test_con, an Octave code which implements test problems for numerical continuation.
  2219. test_con_test
  2220. test_eigen, an Octave code which implements test matrices for eigenvalue analysis.
  2221. test_eigen_test
  2222. test_int, an Octave code which implements test problems for approximate integration (quadrature) in one dimension.
  2223. test_int_test
  2224. test_int_2d, an Octave code which implements test problems for approximate integration (quadrature) in two dimensions.
  2225. test_int_2d_test
  2226. test_interp, an Octave code which defines test problems for interpolation, provided as a set of (x,y(x)) data.
  2227. test_interp_test
  2228. test_interp_1d, an Octave code which defines test problems for interpolation of data y(x), which depends on a 1D argument.
  2229. test_interp_1d_test
  2230. test_interp_2d, an Octave code which defines test problems for interpolation of data z(x,y), which depends on a 2D argument.
  2231. test_interp_2d_test
  2232. test_interp_fun, an Octave code which defines test problems for interpolation which are available in functional form.
  2233. test_interp_fun_test
  2234. test_interp_nd, an Octave code which defines test problems for interpolation of data z(x), depending on an M dimensional argument.
  2235. test_interp_nd_test
  2236. test_lls, an Octave code which implements linear least squares (LLS) test problems of the form A*x=b.
  2237. test_lls_test
  2238. test_matrix, an Octave code which defines test matrices for which the condition number, determinant, eigenvalues, eigenvectors, inverse, null vectors, P*L*U factorization or linear system solution are known. Examples include the Fibonacci, Hilbert, Redheffer, Vandermonde, Wathen and Wilkinson matrices.
  2239. test_matrix_test
  2240. test_matrix_exponential, an Octave code which defines a set of test cases for computing the matrix exponential.
  2241. test_matrix_exponential_test
  2242. test_min, an Octave code which implements test problems for minimization of a scalar function of a scalar variable.
  2243. test_min_test
  2244. test_nint, an Octave code which defines test functions for M-dimensional quadrature routines.
  2245. test_nint_test
  2246. test_nonlin, an Octave code which implements test problems for the solution of systems of nonlinear equations.
  2247. test_nonlin_test
  2248. test_opt, an Octave code which implements test problems for optimization of a scalar function of several variables.
  2249. test_opt_test
  2250. test_opt_con, an Octave code which defines test problems for the minimization of a scalar function of several variables, with the search constrained to lie within a specified hyper-rectangle.
  2251. test_opt_con_test
  2252. test_optimization, an Octave code which implements test problems for optimization of a scalar function of several variables, as described by Molga and Smutnicki.
  2253. test_optimization_test
  2254. test_partial_digest, an Octave code which generates example cases of the partial digest problem.
  2255. test_partial_digest_test
  2256. test_triangulation, an Octave code which defines test problems for triangulation;
  2257. test_triangulation_test
  2258. test_values, an Octave 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, 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.
  2259. test_values_test
  2260. test_zero, an Octave code which defines some functions f(x) suitable for testing software that solves a nonlinear equation f(x)=0;
  2261. test_zero_test
  2262. tester, a BASH script which runs the Octave tests.
  2263. tet_mesh, an Octave code which works with tetrahedral meshes in 3D;
  2264. tet_mesh_test
  2265. tet_mesh_boundary, an Octave code which reads information defining a tetrahedral mesh of points in 3D, and determines the triangular faces that form the boundary of the mesh; it writes out files containing the nodes and elements defining this TRI_SURFACE data.
  2266. tet_mesh_boundary_test
  2267. tet_mesh_display, an Octave code which reads data defining a tetrahedral mesh, and displays a wireframe image of the nodes and edges;
  2268. tet_mesh_display_test
  2269. tet_mesh_l2q, an Octave code which reads information about a 4-node linear mesh of tetrahedrons and creates data defining a corresponding 10-node quadratic mesh of tetrahedrons;
  2270. tet_mesh_l2q_test
  2271. tet_mesh_q2l, an Octave code which reads information about a 10-node quadratic mesh of tetrahedrons and creates data defining a corresponding 4-node linear mesh of tetrahedrons;
  2272. tet_mesh_q2l_test
  2273. tet_mesh_quad, an Octave code which estimates the integral of a function over a region defined by a tetrahedral mesh.
  2274. tet_mesh_quad_test
  2275. tet_mesh_quality, an Octave code which computes various quality measures for a tetrahedral mesh of a set of nodes in 3D;
  2276. tet_mesh_quality_test
  2277. tet_mesh_rcm, an Octave code which computes the Reverse Cuthill McKee (RCM) reordering for the nodes of a mesh of tetrahedrons, using 4 or 10 node elements.
  2278. tet_mesh_rcm_test
  2279. tet_mesh_refine, an Octave code which refines a mesh of tetrahedrons;
  2280. tet_mesh_refine_test
  2281. tet_mesh_tet_neighbors, an Octave code which reads information about a tetrahedral mesh and lists the tetrahedrons adjacent to a given tetrahedron;
  2282. tet_mesh_tet_neighbors_test
  2283. tet_mesh_to_gmsh, an Octave code which write a gmsh() file describing a tetrahedral mesh;
  2284. tet_mesh_to_gmsh_test
  2285. tet_mesh_to_xml, an Octave code which write an XML file describing a tetrahedral mesh;
  2286. tet_mesh_to_xml_test
  2287. tet_mesh_volumes, an Octave code which computes the volume of each tetrahedron in a mesh of tetrahedrons;
  2288. tet_mesh_volumes_test
  2289. tetrahedron, an Octave code which carries out geometric calculations involving a general tetrahedron, including solid and facial angles, face areas, point containment, distances to a point, circumsphere and insphere, measures of shape quality, centroid, barycentric coordinates, edges and edge lengths, random sampling, and volumes.
  2290. tetrahedron_test
  2291. tetrahedron_arbq_rule, an Octave code which returns quadrature rules, with exactness up to total degree 15, over the interior of a tetrahedron in 3D, by Hong Xiao and Zydrunas Gimbutas.
  2292. tetrahedron_arbq_rule_test
  2293. tetrahedron_exactness, an Octave code which tests the polynomial exactness of a quadrature rule over the interior of a tetrahedron in 3D.
  2294. tetrahedron_exactness_test
  2295. tetrahedron_felippa_rule, an Octave code which returns a Felippa quadrature rules for approximating integrals over the interior of a tetrahedron in 3D.
  2296. tetrahedron_felippa_rule_test
  2297. tetrahedron_grid, an Octave code which computes a grid of points over the interior of a tetrahedron in 3D.
  2298. tetrahedron_grid_test
  2299. tetrahedron_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit tetrahedron in 3D.
  2300. tetrahedron_integrals_test
  2301. tetrahedron_jaskowiec_rule, an Octave code which returns quadrature rules, with exactness up to total degree 20, over the interior of a tetrahedron in 3D, by Jan Jaskowiec, Natarajan Sukumar.
  2302. tetrahedron_jaskowiec_rule_test
  2303. tetrahedron_keast_rule, an Octave code which defines a Keast quadrature rule, of degree of exactness 0 through 8, over the interior of the tetrahedron in 3D.
  2304. tetrahedron_keast_rule_test
  2305. tetrahedron_monte_carlo, an Octave code which uses the Monte Carlo method to estimate an integral over the interior of a general tetrahedron in 3D.
  2306. tetrahedron_monte_carlo_test
  2307. tetrahedron_ncc_rule, an Octave code which defines Newton-Cotes closed (NCC) quadrature rules over the interior of a tetrahedron in 3D.
  2308. tetrahedron_ncc_rule_test
  2309. tetrahedron_nco_rule, an Octave code which defines Newton-Cotes open (NCO) quadrature rules over the interior of a tetrahedron in 3D.
  2310. tetrahedron_nco_rule_test
  2311. tetrahedron_slice_display, an Octave code which determines the intersection between a tetrahedron and a plane and displays the result.
  2312. tetrahedron_slice_display_test
  2313. tetrahedron_witherden_rule, an Octave code which returns a symmetric Witherden quadrature rule for the tetrahedron, with exactness up to total degree 10.
  2314. tetrahedron_witherden_rule_test
  2315. tetrahedron01_monte_carlo, an Octave code which uses the Monte Carlo method to estimate an integral over the interior of the unit tetrahedron in 3D.
  2316. tetrahedron01_monte_carlo_test
  2317. theta_method, an Octave code which solves one or more ordinary differential equations (ODE) using the theta method.
  2318. theta_method_test
  2319. three_body_ode, an Octave code which sets up and solves ordinary differential equations (ODE) that simulate the behavior of three planets, constrained to lie in a plane, and moving under the influence of gravity, by Walter Gander and Jiri Hrebicek.
  2320. three_body_ode_test
  2321. tictoc_test, an Octave code which calls tic() and toc(), which compute elapsed time.
  2322. timer_test, an Octave code which demonstrates and compares several ways of timing code execution.
  2323. timestamp, an Octave code which prints the current YMDHMS date as a timestamp;
  2324. timestamp_test
  2325. toeplitz_cholesky, an Octave code which computes the Cholesky factorization of a symmetric positive definite (SPD) Toeplitz matrix.
  2326. toeplitz_cholesky_test
  2327. toeplitz_inverse, an Octave code which computes the inverse of a Toeplitz matrix.
  2328. toeplitz_inverse_test
  2329. toms097, an Octave code which computes the distance between all pairs of nodes in a directed graph with weighted edges, using the Floyd algorithm. This is a version of ACM TOMS algorithm 97.
  2330. toms097_test
  2331. toms112, an Octave code which determines whether a point is contained in a polygon, by Moshe Shimrat. This is a version of ACM TOMS algorithm 112.
  2332. toms112_test
  2333. toms178, an Octave code which optimizes a scalar functional of multiple variables using the Hooke-Jeeves method, by Arthur Kaupe. This is a version of ACM TOMS algorithm 178.
  2334. toms178_test
  2335. toms179, an Octave code which evaluates the modified Beta function, by Oliver Ludwig. This is a version of ACM TOMS algorithm 179.
  2336. toms179_test
  2337. toms243, an Octave code which evaluates the logarithm of a complex value, by David Collens. This is a version of ACM TOMS algorithm 243.
  2338. toms243_test
  2339. toms291, an Octave code which evaluates the logarithm of the Gamma function. This is a version of ACM TOMS algorithm 291.
  2340. toms291_test
  2341. toms443, an Octave code which evaluates the Lambert W function, by Fritsch, Shafer and Crowley. This is a version of ACM TOMS algorithm 443.
  2342. toms443_test
  2343. toms446, an Octave code which manipulates Chebyshev series for interpolation and approximation; this is a version of ACM TOMS algorithm 446, by Roger Broucke.
  2344. toms446_test
  2345. toms462, an Octave code which evaluates the upper right tail of the bivariate normal Probability Density Function (PDF); that is, the probability that normal variables X and Y with correlation R will satisfy H <= X and K <= Y; this is a version of ACM TOMS algorithm 462.
  2346. toms462_test
  2347. toms515, an Octave code which selects subsets of size K from a set of size N. This is a version of ACM TOMS Algorithm 515, by Bill Buckles, Matthew Lybanon.
  2348. toms515_test
  2349. toms577, an Octave code which evaluates the Carlson elliptic integral functions RC, RD, RF and RJ. This is a version of ACM TOMS algorithm 577;
  2350. toms577_test
  2351. toms655, an Octave code which computes the weights for interpolatory quadrature rules; this is commonly called IQPACK, by Sylvan Elhay and Jaroslav Kautsky. This is a version of ACM TOMS algorithm 655.
  2352. toms655_test
  2353. toms743, an Octave code which evaluates the Lambert W function. This is a version of ACM TOMS algorithm 743, by Barry, Barry and Culligan-Hensley.
  2354. toms743_test
  2355. toms847, an Octave code which carries out piecewise linear (PWL) multidimensional hierarchical sparse grid interpolation; this is commonly called spinterp() (version 2.1); this is a version of ACM TOMS Algorithm 847, by Andreas Klimke;
  2356. toms847_test
  2357. toms866, an Octave code which is version 2.2 of the Incompressible Flow Iterative Solution Software (IFISS), for fluid flow governed by the Navier Stokes equations (NSE), by Howard Elman, Alison Ramage, David Silvester; this is a version of ACM TOMS algorithm 866.
  2358. toms886, an Octave code which defines the Padua points for interpolation in a 2D region, including the rectangle, triangle, and ellipse, by Marco Caliari, Stefano de Marchi, Marco Vianello. This is a version of ACM TOMS algorithm 886.
  2359. toms886_test
  2360. toms923, an Octave code which evaluates the Pfaffian for a dense or banded skew symmetric matrix, by Michael Wimmer.
  2361. toms923_test
  2362. tough_ode, an Octave code which sets up and solves a system of four ordinary differential equations (ODE) which is extremely difficult to solve accurately.
  2363. tough_ode_test
  2364. traffic_simulation, an Octave code which simulates the cars waiting to get through a traffic light.
  2365. traffic_simulation_test
  2366. trapezoidal, an Octave code which solves one or more ordinary differential equations (ODE) using the (implicit) trapezoidal method, and fsolve() for the implicit system.
  2367. trapezoidal_test
  2368. trapezoidal_explicit, an Octave code which solves one or more ordinary differential equations (ODE) using the (explicit) trapezoidal method.
  2369. trapezoidal_explicit_test
  2370. trapezoidal_fixed, an Octave code which solves one or more ordinary differential equations (ODE) using the (implicit) trapezoidal method, and a fixed point method for the implicit system.
  2371. trapezoidal_fixed_test
  2372. treepack, an Octave code which defines, analyzes, and manipulates trees, a simple kind of graph with no circuits. Special cases include rooted and binary trees. Representations include adjacency, arc, Pruefer code, and parent. Operations include center, diameter, eccentricity, enumeration, generation one at a time, random selection, traversal.
  2373. treepack_test
  2374. tri_surface_display, an Octave code which displays a TRI_SURFACE object representing a triangulated surface;
  2375. tri_surface_display_test
  2376. tri_surface_io, an Octave code which reads and writes the graphics information in a tri_surface file, describing a surface in 3D consisting of a collection of connected triangles;
  2377. tri_surface_io_test
  2378. tri_surface_to_obj, an Octave code which reads a TRI_SURFACE dataset and extracts the surface mesh data as an OBJ file.
  2379. tri_surface_to_obj_test
  2380. tri_surface_to_ply, an Octave code which reads a TRI_SURFACE dataset and extracts the surface mesh data as a PLY file.
  2381. tri_surface_to_ply_test
  2382. tri_surface_to_stla, an Octave code which reads a TRI_SURFACE dataset and extracts the surface mesh data as an ASCII stereolithography (STL) file.
  2383. tri_surface_to_stla_test
  2384. triangle, an Octave code which computes properties of a triangle, including angles, area, centroid, circumcircle, edge lengths, incircle, orientation, orthocenter, quality, Cartesian to barycentric coordinates, barycentric coordinates to Cartesian. A point is treated as a (1,2) array, a list of points as an (n,2) array, and a triangle as a (3,2) array.
  2385. triangle_test
  2386. triangle_analyze, an Octave code which reads a triangle defined in a file and computes angles, area, centroid, circumcircle, edge lengths, incircle, orientation, orthocenter, and quality.
  2387. triangle_analyze_test
  2388. triangle_display, an Octave code which displays the nodes and elements of a triangulation for which the data has been stored in NODE and ELE files by Jonathan Shewchuk's triangle() program.
  2389. triangle_display_test
  2390. triangle_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from the interior of a triangle in 2D.
  2391. triangle_distance_test
  2392. triangle_dunavant_rule, an Octave code which returns a Dunavant quadrature rule over the interior of a triangle in 2D.
  2393. triangle_dunavant_rule_test
  2394. triangle_exactness, an Octave code which tests the polynomial exactness of a quadrature rule over the interior of a triangle in 2D.
  2395. triangle_exactness_test
  2396. triangle_fekete_rule, an Octave code which returns a Fekete rule for interpolation or quadrature over the interior of a triangle in 2D.
  2397. triangle_fekete_rule_test
  2398. triangle_felippa_rule, an Octave code which returns a Felippa quadrature rule for approximating integrals over the interior of a triangle in 2D.
  2399. triangle_felippa_rule_test
  2400. triangle_grid, an Octave code which computes a grid of points over the interior of a triangle in 2D.
  2401. triangle_grid_test
  2402. triangle_histogram, an Octave code which computes histograms of data over the interior of a unit triangle in 2D.
  2403. triangle_histogram_test
  2404. triangle_integrals, an Octave code which returns the exact value of the integral of any polynomial over the interior of an arbitrary triangle in 2D.
  2405. triangle_integrals_test
  2406. triangle_integrands, an Octave code which defines integrands for testing quadrature rules over a triangle.
  2407. triangle_integrands_test
  2408. triangle_interpolate, an Octave code which shows how vertex data can be interpolated at any point in the interior of a triangle.
  2409. triangle_interpolate_test
  2410. triangle_io, an Octave code which reads or writes files created by Jonathan Shewchuk's triangle() program.
  2411. triangle_io_test
  2412. triangle_lyness_rule, an Octave code which returns Lyness-Jespersen quadrature rules over the interior of a triangle in 2D;
  2413. triangle_lyness_rule_test
  2414. triangle_monte_carlo, an Octave code which uses the Monte Carlo method to estimate an integral over the interior of a general triangle in 2D.
  2415. triangle_monte_carlo_test
  2416. triangle_ncc_rule, an Octave code which defines Newton-Cotes Closed (NCC) quadrature rules over the interior of a triangle in 2D.
  2417. triangle_ncc_rule_test
  2418. triangle_nco_rule, an Octave code which defines Newton-Cotes Open (NCO) quadrature rules over the interior of a triangle in 2D.
  2419. triangle_nco_rule_test
  2420. triangle_quadrature_symmetry, an Octave code which determines the symmetries of a quadrature rule for a triangle.
  2421. triangle_quadrature_symmetry_test
  2422. triangle_refine, an Octave code which divides a triangle into c^2 copies of itself, and implements a simple centroid-based quadrature scheme.
  2423. triangle_refine_test
  2424. triangle_svg, an Octave code which uses Scalable Vector graphics (SVG) to plot a triangle and any number of points, to illustrate quadrature rules and sampling techniques.
  2425. triangle_svg_test
  2426. triangle_symq_rule, an Octave code which returns efficient symmetric quadrature rules, with exactness up to total degree 50, over the interior of a triangle in 2D, by Hong Xiao and Zydrunas Gimbutas.
  2427. triangle_symq_rule_test
  2428. triangle_symq_rule_convert, an Octave code which takes quadrature rules defined for the equilateral triangle and converts them to the reference triangle (0,0), (1,0), (0,1).
  2429. triangle_symq_rule_convert_test
  2430. triangle_symq_rule_original, an Octave code which is based on the original Fortran77 code, which uses an equilateral triangle as the reference element, by Hong Xiao and Zydrunas Gimbutas.
  2431. triangle_symq_rule_original_test
  2432. triangle_symq_to_ref, an Octave code which creates quadrature rules defined on the half-unit square from symmetric quadrature rules defined on an equilateral triangle, defined by triangle_symq_rule(), by Hong Xiao and Zydrunas Gimbutas.
  2433. triangle_symq_to_ref_test
  2434. triangle_to_fem, an Octave code which reads the NODE and ELE files created by Jonathan Shewchuk's triangle() program to describe a triangular mesh, and writes a corresponding pair of node and element files in the 2D FEM format.
  2435. triangle_to_fem_test
  2436. triangle_to_medit, an Octave code which reads the NODE and ELE files created by Jonathan Shewchuk's triangle() program to describe a triangular mesh, and writes a corresponding medit() MESH file.
  2437. triangle_to_medit_test
  2438. triangle_to_xml, an Octave code which reads the NODE and ELE files created by Jonathan Shewchuk's triangle() program to describe a triangular mesh in 2D, and writes a corresponding XML mesh file for use by dolfin() or fenics().
  2439. triangle_to_xml_test
  2440. triangle_twb_rule, an Octave code which generates the points and weights of quadrature rules over the interior of a triangle in 2D, determined by Taylor, Wingate, and Bos.
  2441. triangle_twb_rule_test
  2442. triangle_wandzura_rule, an Octave code which returns a Wandzura quadrature rule of exactness 5, 10, 15, 20, 25 and 30 over the interior of the triangle in 2D.
  2443. triangle_wandzura_rule_test
  2444. triangle_witherden_rule, an Octave code which returns a symmetric Witherden quadrature rule for the triangle, with exactness up to total degree 20.
  2445. triangle_witherden_rule_test
  2446. triangle01_integrals, an Octave code which returns the integral of any monomial over the interior of the unit triangle in 2D.
  2447. triangle01_integrals_test
  2448. triangle01_monte_carlo, an Octave code which uses the Monte Carlo method to estimate an integral over the interior of the unit triangle in 2D.
  2449. triangle01_monte_carlo_test-
  2450. triangulate, an Octave code which triangulates a polygonal region, based on a C program by Joseph ORourke;
  2451. triangulate_test
  2452. triangulate_rectangle, an Octave code which sets up a grid of triangles in a rectangular region.
  2453. triangulate_rectangle_test
  2454. triangulation, an Octave code which computes the triangulation of a set of points in the plane, and performs various operations using a triangulation, including searching a Delaunay triangulation to find which triangle contains a given point.
  2455. triangulation_test
  2456. triangulation_boundary, an Octave code which starts with a triangulation of a simple shape, and determines the triangle edges that form the boundary, and a sequence of nodes that trace the boundary.
  2457. triangulation_boundary_test
  2458. triangulation_boundary_edges, an Octave code which reads data defining a triangulation, determines which edges lie on the boundary, organizes them into connected components, and writes this information to a file.
  2459. triangulation_boundary_edges_test
  2460. triangulation_boundary_nodes, an Octave code which reads data defining a triangulation, determines which nodes lie on the boundary, and writes their coordinates to a file;
  2461. triangulation_boundary_nodes_test
  2462. triangulation_corner, an Octave code which patches triangulations so that no triangle has two sides on the boundary.
  2463. triangulation_corner_test
  2464. triangulation_delaunay_discrepancy, an Octave code which measures the amount by which a triangulation fails the local Delaunay test;
  2465. triangulation_delaunay_discrepancy_test
  2466. triangulation_display, an Octave code which displays the nodes and elements of a triangulation;
  2467. triangulation_display_test
  2468. triangulation_histogram, an Octave code which computes histograms of data over a triangulation.
  2469. triangulation_histogram_test
  2470. triangulation_l2q, an Octave code which reads information about a 3-node linear triangulation and creates data defining a corresponding 6-node quadratic triangulation;
  2471. triangulation_l2q_test
  2472. triangulation_mask, an Octave code which reads a triangulation and calls a user-supplied routine to consider each triangle for deletion;
  2473. triangulation_mask_test
  2474. triangulation_node_to_element, an Octave code which reads files describing a set of nodes, their triangulation, and the value of one or more quantities at each node, and outputs a file that averages the quantities for each element. This operation in effect creates an order1 finite element model of the data.
  2475. triangulation_node_to_element_test
  2476. triangulation_order1_display, an Octave code which plots piecewise constant (PWC) data associated with a triangulation;
  2477. triangulation_order1_display_test
  2478. triangulation_order3_contour, an Octave code which plots color contours of a piecewise linear (PWL) scalar quantity evaluated at the nodes of a 3-node triangle triangulation.
  2479. triangulation_order3_contour_test
  2480. triangulation_order6_contour, an Octave code which plots color contours of a piecwise quadratic (PWQ) scalar quantity evaluated at the nodes of a 6-node triangle triangulation.
  2481. triangulation_order6_contour_test
  2482. triangulation_orient, an Octave code which ensures that the triangles in an order 3 or order 6 triangulation have positive orientation;
  2483. triangulation_orient_test
  2484. triangulation_plot, an Octave code which plots the nodes and elements of a triangulation as a PostScript file;
  2485. triangulation_plot_test
  2486. triangulation_q2l, an Octave code which reads information about a 6-node quadratic triangulation and creates data defining a corresponding 3-node linear triangulation;
  2487. triangulation_q2l_test
  2488. triangulation_quad, an Octave code which reads information about a triangulation and the value of a function at the nodes and estimates the integral of the function over the triangulated region.
  2489. triangulation_quad_test
  2490. triangulation_quality, an Octave code which reads information about a triangulation and computes various quality measures;
  2491. triangulation_quality_test
  2492. triangulation_rcm, an Octave code which reads files describing a triangulation of nodes in 2D, and applies the Reverse Cuthill McKee (RCM) algorithm to produce a renumbering of the triangulation with a reduced bandwidth.
  2493. triangulation_rcm_test
  2494. triangulation_refine, an Octave code which refines a triangulation;
  2495. triangulation_refine_test
  2496. triangulation_refine_local, an Octave code which refines a triangulation locally; a single triangular element is replaced by four smaller triangles, and neighboring information is updated.
  2497. triangulation_refine_local_test
  2498. triangulation_svg, an Octave code which creates a Scalable Vector graphics (SVG) image of a triangulation, which can be displayed by a web browser.
  2499. triangulation_svg_test
  2500. triangulation_t3_to_t4, an Octave code which reads information about a 3-node triangulation and creates data defining a corresponding 4-node triangulation (vertices + centroid);
  2501. triangulation_t3_to_t4_test
  2502. triangulation_triangle_neighbors, an Octave code which reads data defining a triangulation, finds the three neighbor triangles for each triangle, and writes them to a file;
  2503. triangulation_triangle_neighbors_test
  2504. tridiagonal_solver, an Octave code which solves a tridiagonal linear system.
  2505. tridiagonal_solver_test
  2506. trig_interp, an Octave code which uses trigonometric functions for interpolation.
  2507. trig_interp_test
  2508. trig_interp_basis, an Octave code which evaluates the cardinal basis functions for trigonometric interpolation of equally spaced data.
  2509. trig_interp_basis_test
  2510. trinity, an Octave code which considers the trinity puzzle, a smaller version of the eternity puzzle. The trinity puzzle specifies a region R composed of 144 30-60-90 triangles, and a set of 4 "tiles", T1, T2, T3 and T4, each consisting of 36 30-60-90 triangles, and seeks an arrangement of the four tiles that exactly covers the region.
  2511. trinity_test
  2512. truel_simulation, an Octave code which simulates N repetitions of a duel between three players, each of whom has a known firing accuracy.
  2513. truel_simulation_test
  2514. truncated_normal, an Octave code which works with the truncated normal distribution over [a,b], or [A,+oo) or (-oo,B], returning the probability density function (PDF), the cumulative density function (CDF), the inverse CDF, the mean, the variance, and sample values.
  2515. truncated_normal_test
  2516. truncated_normal_rule, an Octave code which computes a quadrature rule for a normal probability density function (PDF), sometimes called a Gaussian distribution, that has been truncated to [A,+oo), (-oo,B] or [a,b].
  2517. truncated_normal_rule_test
  2518. truncated_normal_sparse_grid, an Octave code which computes a sparse grid based on a normal probability density function (PDF), also called a Gaussian distribution, that has been truncated to [A,+oo), (-oo,B] or [A,B].
  2519. truncated_normal_sparse_grid_test
  2520. tsp_brute, an Octave code which reads a file of city-to-city distances and solves a (small!) traveling salesperson problem (TSP), using brute force.
  2521. tsp_brute_test
  2522. tsp_descent, an Octave code which reads a file of city-to-city distances, chooses an initial tour at random, and then tries some simple variations to quickly find a tour of lower length, to solve the traveling salesperson problem (TSP).
  2523. tsp_descent_test
  2524. tsp_greedy, an Octave code which reads a file of city-to-city distances, and solves a small traveling salesperson problem (TSP) using the greedy algorithm. It picks a starting city at random, and then successively visits the nearest unvisited city.
  2525. tsp_greedy_test
  2526. tsp_moler, an Octave code which tries to optimize the traveling salesperson problem (TSP), written by Cleve Moler.
  2527. tsp_moler_test
  2528. tsp_random, an Octave code which seeks a solution of the Traveling Salesperson Problem (TSP), by accepting a table of city-to-city distances, and randomly generating round trips that visit every city, returning the tour of shortest length.
  2529. tsp_random_test
  2530. two_body_ode, an Octave code which sets up and solves ordinary differential equations (ODE) which simulate the behavior of two bodies, constrained to lie in a plane, moving under the influence of gravity, with one body much more massive than the other.
  2531. two_body_ode_test
  2532. ubvec, an Octave code which demonstrates how nonnegative integers can be stored as unsigned binary vectors (UBVEC), and arithmetic can be performed on them.
  2533. ubvec_test
  2534. ulam_spiral, an Octave code which displays the integers as a spiral of grid cells, with the primes highlighted, so show that they tend to fall along diagonals, as discovered by Stanislaw Ulam.
  2535. ulam_spiral_test
  2536. unicycle, an Octave code which considers permutations containing a single cycle, sometimes called cyclic permutations.
  2537. unicycle_test
  2538. uniform, an Octave code which implements a uniform random number generator (RNG) for a variety of arithmetic types.
  2539. uniform_test
  2540. unstable_ode, an Octave code which sets up and solves an unstable ordinary differential equation (ODE) which the backward Euler method incorrectly drives to zero.
  2541. unstable_ode_test
  2542. upc, an Octave code which determines the check digit for a Uniform product Code (UPC) or reports whether a given UPC is valid.
  2543. upc_test
  2544. urn_simulation, an Octave code which simulates the experiment of sampling K balls from an urn containing N balls of various colors.
  2545. urn_simulation_test
  2546. usa_box_plot, an Octave code which creates simplified maps of the USA in which each state appears as a box, and the placement of the boxes only roughly corresponds to the relative locations of states on an accurate map.
  2547. usa_box_plot_test
  2548. usa_cvt_geo, an Octave code which explores the creation of a centroidal Voronoi Tessellation (CVT) of the continental United States, based solely on geometric considerations.
  2549. usa_cvt_geo_test
  2550. usa_matrix, an Octave code which defines the adjacency matrix for US states, using a variety of matrix formats.
  2551. usa_matrix_test
  2552. van_der_corput, an Octave code which computes elements of the van der Corput 1-dimensional Quasi Mont Carlo (QMC) sequence, using a simple interface.
  2553. van_der_corput_test
  2554. vandermonde, an Octave code which implements the Bjork-Pereyra algorithm for accurate solution of linear systems involving the Vandermonde matrix.
  2555. vandermonde_test
  2556. vandermonde_approx_1d, an Octave code which finds a polynomial approximant to data y(x) of a 1D argument by setting up and solving an overdetermined linear system for the polynomial coefficients involving the Vandermonde matrix.
  2557. vandermonde_approx_1d_test
  2558. vandermonde_approx_2d, an Octave code which finds a polynomial approximant p(x,y) to data z(x,y) of a 2D argument by setting up and solving an overdetermined linear system for the polynomial coefficients involving the Vandermonde matrix.
  2559. vandermonde_approx_2d_test
  2560. vandermonde_interp_1d, an Octave code which finds a polynomial interpolant to data y(x) of a 1D argument by solving a linear system for the polynomial coefficients involving the Vandermonde matrix.
  2561. vandermonde_interp_1d_test
  2562. vandermonde_interp_2d, an Octave code which finds a polynomial interpolant to data z(x,y) of a 2D argument by solving a linear system for the polynomial coefficients involving the Vandermonde matrix.
  2563. vandermonde_interp_2d_test
  2564. vanderpol_ode, an Octave code which sets up and solves the van der Pol system of ordinary differential equations (ODE).
  2565. vanderpol_ode_test
  2566. vanderpol_ode_period, an Octave code which sets up and solves the ordinary differential equations (ODE) defining the van der Pol oscillator in order to estimate the period of the limit cycle.
  2567. vanderpol_ode_period_test
  2568. variomino, an Octave code which considers variominoes, which are polyominoes in which each square has been assigned a positive label or "variety", and the determination of tilings of a region using a specific set of variominoes.
  2569. variomino_test
  2570. vector, an Octave code which considers a problem involving vectors, which can be considered to belong to equivalence classes, for which an arbitrary collection of coefficients must be gathered, averaged, and then scattered again.
  2571. vector_test
  2572. velocity_verlet, an Octave code which uses a version of the velocity Verlet method to solve a second order ordinary differential equation (ODE) of the form y''=f(t,y).
  2573. velocity_verlet_test
  2574. verlet_simulation, an Octave code which demonstates the use of Verlet integration to simulate simple problems in dynamics, involving changes in position and velocity.
  2575. verlet_simulation_test
  2576. vin, an Octave code which computes the check digit for a Vehicle Identification Number (VIN), or verifies that a given VIN is legitimate.
  2577. vin_test
  2578. voronoi_city, an Octave code which displays the steps involved in computing the Voronoi diagram of 3 points, which we think of as cities connected by roads.
  2579. voronoi_city_test
  2580. voronoi_display, an Octave code which computes and displays the Voronoi diagram of a set of points.
  2581. voronoi_display_test
  2582. voronoi_mountains, an Octave code which makes a mountain plot of a Voronoi diagram, that is, a surface plot of the distance from each point to its nearest Voronoi generator.
  2583. voronoi_mountains_test
  2584. voronoi_neighbors, an Octave code which is given a set of points in the plane and determines the Voronoi adjacency structure, that is, the points which share an edge of the Voronoi diagram.
  2585. voronoi_neighbors_test
  2586. voronoi_plot, an Octave code which estimates the Voronoi neighborhoods of points using sampling, and with a distance based on the L1, L2, LInfinity or arbitrary LP norms;
  2587. voronoi_plot_test
  2588. voronoi_test, an Octave code which calls the built-in voronoi() function, which computes the Voronoi diagram of a set of points.
  2589. vpa_test, an Octave code which uses the Symbolic package to compute arbitrary precision quantities.
  2590. walker_sample, an Octave code which efficiently samples a discrete probability vector using Walker sampling.
  2591. walker_sample_test
  2592. walsh_transform, an Octave code which implements the Walsh data transform.
  2593. walsh_transform_test
  2594. wathen_matrix, an Octave code which compares storage schemes (full, banded, sparse triplet, sparse) and solution strategies (A\x, Linpack, conjugate gradient) for linear systems involving the Wathen matrix, which arises when solving a problem using the finite element method (FEM).
  2595. wathen_matrix_test
  2596. wave_pde, an Octave code which uses the finite difference method (FDM) in space, and the method of lines in time, to set up and solve the partial differential equations (PDE) known as the wave equations, utt = c uxx.
  2597. wave_pde_test
  2598. wavelet, an Octave code which does some simple calculations with wavelet transforms;
  2599. wavelet_test
  2600. web_matrix, an Octave code which stores sample matrices describing a web page network. These matrices are typically very sparse, and the examples here are stored using the sparse triplet (ST) format. They can be used to demonstrate pagerank and other graph algorithms.
  2601. web_matrix_test
  2602. wedge_exactness, an Octave code which investigates the polynomial exactness of a quadrature rule over the interior of the unit wedge in 3D.
  2603. wedge_exactness_test
  2604. wedge_felippa_rule, an Octave code which returns quadrature rules for approximating integrals over the interior of the unit wedge in 3D.
  2605. wedge_felippa_rule_test
  2606. wedge_grid, an Octave code which computes a grid of points over the interior of the unit wedge in 3D.
  2607. wedge_grid_test
  2608. wedge_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of the unit wedge in 3D.
  2609. wedge_integrals_test
  2610. wedge_monte_carlo, an Octave code which uses the Monte Carlo method to estimate an integral over the interior of the unit wedge in 3D.
  2611. wedge_monte_carlo_test
  2612. weekday, an Octave code which determines the day of the week corresponding to a given date, such as 14 October 1066, Julian calendar, ... which was a Saturday.
  2613. weekday_test
  2614. weekday_zeller, an Octave code which uses the Zeller congruence to determine the day of the week corresponding to a given date, such as 13 July 1989, Gregorian calendar, ... which was a Thursday.
  2615. weekday_zeller_test
  2616. welzl, an Octave code which computes the minimal bounding circle or sphere for a set of points, using algorithms by Welzl or Ritter, by Anton Semechko.
  2617. welzl_test
  2618. will_you_be_alive, an Octave code which carries out the probability simulations described in "Will You Be Alive 10 Years From Now?" by Paul Nahin;
  2619. will_you_be_alive_test
  2620. wishart_matrix, an Octave code which produces sample matrices from the Wishart or Bartlett distributions, useful for sampling random covariance matrices.
  2621. wishart_matrix_test
  2622. wtime, an Octave code which returns a reading of the wall clock time in seconds.
  2623. wtime_test
  2624. xyz_display, an Octave code which displays a 3D plot from a file of point coordinates.
  2625. xyz_display_test
  2626. zero_brent, an Octave code which seeks a solution of a scalar nonlinear equation f(x)=0, by Richard Brent.
  2627. zero_brent_test
  2628. zero_chandrupatla, an Octave code which finds a zero of a scalar function of a scalar variable, starting from a change of sign interval, using the Chandrupatla method, which can converge faster than bisection, regula falsi, or Brent's method, by Tirupathi Chandrapatla.
  2629. zero_chandrupatla_test
  2630. zero_itp, an Octave code which finds a zero of a scalar function of a scalar variable, starting from a change of sign interval, using the Interpolate/Truncate/Project (ITP) method, which has faster convergence than the bisection method.
  2631. zero_itp_test
  2632. zero_laguerre, an Octave code which uses Laguerre's method to find the zero of a function. The method needs first and second derivative information. The method almost always works when the function is a polynomial.
  2633. zero_laguerre_test
  2634. zero_muller, an Octave code which seeks a root of a nonlinear equation using the Muller method, with complex arithmetic.
  2635. zero_muller_test
  2636. zero_rc, an Octave code which seeks a solution of a scalar nonlinear equation f(x)=0, using reverse communication (RC), by Richard Brent.
  2637. zero_rc_test
  2638. ziggurat, an Octave code which implements uniform, normal and exponential random number generators (RNG) using the ziggurat method, by Marsaglia and Tsang.
  2639. ziggurat_test
  2640. zombie_ode, an Octave code which sets up and solves a system of ordinary differential equations (ODE) for a generalized Susceptible-Infected-Recovered (SIR) disease model to simulate a zombie attack, developed by Philip Munz.
  2641. zombie_ode_test
  2642. zoomin, an Octave code which implements many procedures for finding the zero of a scalar nonlinear function.
  2643. zoomin_test


Last revised on 23 September 2024.