Routines
When contributing routines, please follow these guidelines:
- A routine should be self-contained, and relatively short in length.
- Exclude the input and output, unless the routine is specifically meant to do that.
- A routine should be thoroughly tested to make sure it works correctly.
- Use the Routine Template as the starting point for routine pages.
- When the routine page is finished, link to it from here.
Conversion Routines
- Number to String (2) — Converts a real number to a string.
- Matrix to String — Converts a matrix of encoded letters to a string.
- List to String — Converts a list of encoded letters to a string.
- String to List — Converts a string to a list of encoded letters.
- Decimal to Fraction — Converts a decimal number to a fraction.
Number Routines
- Number Concatenation — Concatenates two whole numbers together.
- Number Subset — Returns a subset of a number.
- Sum of Digits — Returns the sum of digits of a number.
List & Matrix Routines
- Sum of Matrix Elements — Sums the elements of a matrix.
- List Frequency — Finds the frequency of values in a list.
- RLE Compression — Compresses a list of numbers.
- RLE Decompression — Reverses the above routine.
String Routines
- Reverse a String — Reverses a string.
- Pad a String — Pads a string with spaces.
- Strip a String — Strips a string of its outside spaces.
- Repeat a String — Makes a string that is a copy of itself.
Text Manipulation
- Highlighting Text — Invert text to white on a black background.
- Wordwrapping Text — Split text between several lines on the graph screen.
- Marquee — Scroll a one-line string, like a marquee.
- Blinking Text — Creates a blinking effect on the home screen.
- Typewriter — Makes text appear letter by letter.
Graphics Routines
- Shading Circles — Draws a shaded circle.
- Draw Ellipse — Draws an ellipse at the selected coordinates.
Math Routines
- Goodness-of-Fit Test — Performs a chi-square goodness-of-fit test.
- Quadratic Formula — Finds the roots of a quadratic equation.
- Simplify Radicals — Simplifies a square root radical.
- Pythagorean Triples — Displays the Pythagorean theorem triples.
- Number Factorization — Finds the factors of a number.
- Sierpinski Triangle — Displays the Sierpinski triangle fractal.
- Pascal's Triangle — Gets a row of Pascal's triangle
Miscellaneous Routines
- Deck of Cards — Manipulates a deck of standard playing cards.
- Day of Week — Substitute for the dayOfWk( command for pre-84+ calculators.