FORTRAN SOFTWARE CATALOG

Repository owner: scivision

rpn-calculator-fortran

Numerical functions from an RPN calculator, including special functions, rational arithmetic and conversions.

Repository · Pinned source (7708e4949f17) · Try in playground · Checked package example

GAMS classifications

About this package

Category
Special functions
License
MIT

Topics: bessel-functions, gamma-function, modern-fortran, rational-arithmetic, reverse-polish-calculator, rpn-calculator, special-functions

Classification scope and review notes

Numerical routines from the RPN calculator, called directly without its interactive interface. The checked main verifies a negative cube root, sinc and sech at zero, beta(2,3), modified Bessel I0 at zero, and integer gcd/lcm against known results. A checksum-guarded manifest correction sets source-form=default so .f and .f90 files use their respective forms. No numerical sources are changed. The tests do not establish accuracy over full argument ranges or validate the complete calculator.

Package dependencies

Resolved GitHub repositories used by the verified playground build, combining direct and indirect dependencies. This list does not describe internal module dependencies or native system libraries.

Required by this build

No additional GitHub package dependencies were recorded for this verified build.

Build record verified 2026-10-29.

Used by (0 selected packages)

No other selected build records this repository as a dependency. This is not a measure of usage outside the catalog.

Reviewed procedures

These mappings have pinned source evidence. A checked package example may exercise only some of them; source review is not a numerical benchmark.

cuberoot / sinc / sech

Module: funcs / hyper

C2 C4

C2: source-supported; C4: verified

Derivatives / callbacks: not applicable

Numerical routines from the RPN calculator, called directly without its interactive interface. The checked main verifies a negative cube root, sinc and sech at zero, beta(2,3), modified Bessel I0 at zero, and integer gcd/lcm against known results. A checksum-guarded manifest correction sets source-form=default so .f and .f90 files use their respective forms. No numerical sources are changed. The tests do not establish accuracy over full argument ranges or validate the complete calculator. Dedicated C4 consumer verifies real sinc against a 64-term independent series and sech against a stable exponential formula for 133 real arguments, including zero and signed near-zero values. Finite values, symmetry, range and scalar/array agreement are checked. This driver does not verify the separate C2 cube-root mapping or complex overloads.

Pinned source: src/funcs.f90 · src/hyper.f90

Author examples/tests: test/test.f90

Load checked GAMS driver: gams-rpn-sinc-sech-reference

beta / besi0

Module: fgamma / i0

C7 C10

C7: verified; C10: source-supported

Derivatives / callbacks: not applicable

Numerical routines from the RPN calculator, called directly without its interactive interface. The checked main verifies a negative cube root, sinc and sech at zero, beta(2,3), modified Bessel I0 at zero, and integer gcd/lcm against known results. A checksum-guarded manifest correction sets source-form=default so .f and .f90 files use their respective forms. No numerical sources are changed. The tests do not establish accuracy over full argument ranges or validate the complete calculator. Dedicated C7 consumer verifies 128 positive integer/half-integer beta pairs with independent factorial identities, plus symmetry and both one-step recurrences (512 evaluations). Finite positive values and relative error within 2e-13 are required. C10 Bessel functions, complex beta, poles, large arguments and overflow handling are outside this driver.

Pinned source: src/specfun/gamma.f90 · src/specfun/i0.f

Load checked GAMS driver: gams-rpn-beta-reference

gcd / lcm

Module: rat

B

B: verified

Derivatives / callbacks: not applicable

Numerical routines from the RPN calculator, called directly without its interactive interface. The checked main verifies a negative cube root, sinc and sech at zero, beta(2,3), modified Bessel I0 at zero, and integer gcd/lcm against known results. A checksum-guarded manifest correction sets source-form=default so .f and .f90 files use their respective forms. No numerical sources are changed. The tests do not establish accuracy over full argument ranges or validate the complete calculator. Dedicated GAMS B driver: GCD and LCM checked over nonnegative operands 0..64 against independent divisor/multiple searches. LCM(0,0) divides by zero at this pin and is excluded; signed conventions and overflow are not verified.

Pinned source: src/rat.f90

Load checked GAMS driver: gams-rpn-gcd-lcm-reference