Frink Sample Programs

Documentation * FAQ * What's New * Download * Frink Applet * Web Interface * Frink Server Pages * Donate

Below is a collection of sample Frink programs.

You can also download all of these sample programs in a single zipfile, FrinkSamples.zip

baseball Calculates trajectory of a baseball.
bert Calculates the probability of two first names appearing in the same movie.
ChineseNumbers Formats integers into their Chinese equivalents (formal and casual)
classtest A sample of object-oriented programming; demonstrates writing and using a class specification.
CoordinateConversions Converts latitude and longitude to and from UTM coordinates.
Datum A data structure used to represent the ellipsoidal shape of the earth, used in various navigation routines.
daylight Calculates duration of daylight over the course of a year.
elements A basic periodic table of the elements.
erf Functions for statistics including the forward and inverse error function, the normal distribution, etc.
Fourier Routines for discrete and fast Fourier transforms (FFT) of data.
hints Provides hints and help for common errors in Frink calculations.
holeearthfullgradient Calculates time to fall through a hole in the center of the earth with realistic model of densities.
holeearthgradient Calculates time to fall through a hole in the center of the earth with overly-simplistic model of densities.
holeearthuniform Calculates time to fall through a hole in the center of the earth with naïve uniform density model.
homonyms Finds homophones of words.
HTMLUtils Utilities for processing HTML.
JacobiSymbol Functions for calculating the Jacobi symbol and Legendre symbol.
JVMinfo Displays the properties of your Java Virtual Machine. Demonstrates use of Java Introspection.
LucasLehmer Implements the Lucas-Lehmer test for proving primality of Mersenne primes.
mandelbrot Draws a Mandelbrot set in plain text.
mithengecorridor Data for the Infinite Corridor at MIT.
mithengemoon Calculates moon alignments with MIT's Infinite Corridor.
mithengesun Calculates sun alignments in MIT's Infinite Corridor.
navigation A library of high-precision calculations for navigating on the earth.
palindromicNumbers Finds palindromic numbers by the "reverse and add" method.
planets A library to calculate the positions of the the planets to high accuracy using the VSOP87 theory.
pollardP-1 An implementation of the Pollard p-1 factoring algorithm.
RiemannZeta Calculates values of the Riemann Zeta function.
siderealtime Calculates Greenwich Mean Sidereal Time.
sieve Sieve of Eratosthenes to find prime numbers.
simplegraph An simple but interesting program that uses interval arithmetic to plot equations.
StandardAtmosphere A class which implements the U.S. Standard Atmosphere of 1976. This allows calculation of pressure, temperature, air density, speed of sound, etc. at varying altitudes.
StandardAtmosphereTest Contains examples of doing standard atmosphere calculations.
stock Fetches stock prices from the internet.
sun A massive library of astronomical calculations to find positions of the sun, moon, and other calculations.
sunplot Creates data to plot the location of the sun for an entire year.
sunrise Calculates times of sunrise, sunset, and twilights.
trigram Program to find the most frequent n-letter patterns in words.
webspider Simple program to find all of the links in an HTML page.
wheelgame3 Simulator to find optimum play for the big-wheel-spinnin' "Showcase Showdown" game on The Price Is Right
WilliamsPPlus1 Factorization using the Williams p+1 factorization method.
xmldump Demonstrates dumping units in an XML format.
ziplocator Locates latitude and longitude of U.S. zip codes (requires data file)

Descriptions of the following programs will be added later:

99bottles AgencyInitiation allFactors AMT
anagramchallenge anagramQuandary anonymousFunction AudreysQuilt
BallBearing ballgame baseconv basetiming
BBP benchmark1 billionPrimes binarySearch
bitwiseXOR BoulderArtsAndMaths27 BourisPrimeTest breaktest
CacheFreeGDMII cambridgetemp CarTalkPuzzle CarTalkPuzzle2
ChineseMarch classcrashtest classRedefinitionTest closestFraction
commonTransformations compound constraintTest consttest
continuedFraction convergatron coriolis crystalradio
DeadDrop decipherbible decipherrabbit decode
decrypt deltat dollarConvert DurinsDay
e e2 earthdisttest EarthTemperature
eBinarySplitting ECM encoding erf2
error factor factor2 factorialTest
fetchweather forensicSeismology fortest fortest2
fortest3 fouriertest frinklog geometry
GoogleEarth guitoolstest harvest harvest2
hinttest iau1980 iftest IndianAstronomy
inputtest interfacetest intervalgraph intervaltest
KevinDecrypt lambda LatLongToUTM lefthand
LiarLiar LiarLiarII lights LogIntegral
longestWord lottery Maidenhead MD5crack
meeus33a meeus47a meeus47b mersenne
mersennetest mersennetiming mithengefoner mithengeplanets
mithengereverse mithengereverse2 mithengereverse3 mithengereverse4
modinverse modtimetest modtimetest2 MonthWithoutAFullMoon
mooncomparison mooreslaw multiline musicalscale
namefreq NancyDrewDogsPuzzle nextLargestPrime nonterm
note NovaCrypt outputtest perfect
perihelion permutations pi piBinarySplitting
piChudnovsky planetDistance planetLocations primebits
primechain primeContest primecss primelist
primeprog primeQuadruples primeratio primeregex
primetest primetest2 primetest3 proctest
pushclasstest pushtest quadraticPrimes quadtree
RainbowCache randomprime regression repeatingDigits
Richter RightStuff rollForIntelligence root
rot13 roulette Rump secant
simulatedOverload sizesort Sneaky1 Sneaky2
SolarCooker stocktest Sudoku SudokuSmooth
sumdigits suntest suntimetest T9
TAK temperatureFrequency TierraEstella timefunc
TLE tns toStringTest TravellersDilemma
trueProbability unittable universeNote use
usehttp useparent UTMtest venus
venus2 vsop87 wheelgame WoodhengeCache
wordTransform WWIICache wynnhenge wynnhengemoon
YourDatumOrMine ZehnGray

Alan Eliasen was born 14219 days, 16 hours, 24 minutes ago.

Back to Frink Documentation