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.
exectest Demonstrates starting external processes using Frink's ability to call Java code.
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 aldrich1 allFactors
AMT anagramchallenge anagramQuandary anonymousFunction
ArbitraryPrecision ArcTest AudreysQuilt BallBearing
ballgame baseconv basetiming BBP
benchmark1 billionPrimes binarySearch bitwiseXOR
Boggle BoulderArtsAndMaths27 BourisPrimeTest breaktest
CacheFreeGDMII cambridgetemp CarTalkPuzzle CarTalkPuzzle2
ChineseMarch circleTest classcrashtest classRedefinitionTest
closestFraction colorboxes commonTransformations compound
constraintTest consttest continuedFraction convergatron
coriolis crystalradio DeadDrop decipherbible
decipherrabbit decode decrypt definedUnicode
deltat dollarConvert drawSolarSystem DurinsDay
e e2 earthdisttest EarthTemperature
eBinarySplitting ECM encoding erf2
error exactDivideTest factor factor2
factorialTest fetchweather flag FloydSteinbergDither
fontDetails fontList forensicSeismology fortest
fortest2 fortest3 fourierTemp fouriertest
frinklog GeneralPathExample GeneralPathExamples GeneralPathTest
geometry GoogleEarth goosePuzzle goosePuzzle1
graphicalSieve graphpaper gravtest guitoolstest
harvest harvest2 hinttest iau1980
iftest IndianAstronomy inputtest interfacetest
intervalgraph intervaltest KevinDecrypt lambda
LatLongToUTM lefthand lettergrid LiarLiar
LiarLiarII lights listFonts LogIntegral
longestWord lottery Maidenhead MD5crack
meeus33a meeus47a meeus47b mersenne
mersennesimple mersennetest mersennetiming mithengefoner
mithengeplanets mithengereverse mithengereverse2 mithengereverse3
mithengereverse4 mnemonics modinverse modtimetest
modtimetest2 MonthWithoutAFullMoon moonangle mooncomparison
moonDrawingTest mooreslaw multiline musicalscale
namefreq NancyDrewDogsPuzzle nextLargestPrime nextPrimeTest
nonterm normalCurve normalCurve2 note
NovaCrypt numberCheckerboard outputtest perfect
perihelion permutations pi piBinarySplitting
piChudnovsky pixelAveragingTest planetDistance planetLocations
polygonTest primebits primechain primeContest
primecss primelist primeprog primeQuadruples
primeratio primeregex primetest primetest2
primetest3 proctest pushclasstest pushtest
quadraticPrimes quadtree RainbowCache randomDistribution
randomprime regression repeatingDigits rewriteImage
Richter RightStuff rollForIntelligence root
rot13 roulette Rump secant
simplegraph2 simplegraph3 simulatedOverload singularics
sizesort Sneaky1 Sneaky2 SolarCooker
SolarCooker2 spiral stocktest Sudoku
SudokuSmooth sumdigits suntest suntimetest
T9 TAIMinusUTC TAK temperatureFrequency
textAlignTest textcenter textcenter3 textcenterfixed
TierraEstella timefunc timezonediff TLE
tns toStringTest TravellersDilemma trs80ify
trueProbability Tupper unicodeGraphics unicodeGraphics2
unittable universeNote use usehttp
useparent UTMtest venus venus2
vsop87 wheelgame WoodhengeCache wordTransform
WWIICache wynnhenge wynnhengemoon XtotheX
XtotheXbetter YourDatumOrMine ZehnGray

Alan Eliasen was born 14562 days, 23 hours, 11 minutes ago.

Back to Frink Documentation