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 (alternative) — 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 (2) — 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.
- Scramble a String — Scrambles a string.
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
- Set Up Friendly Graph — Sets a Friendly Graph (small)
- 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.
- Linear Regression Standard Error — Computes the standard error of linear regression coefficients.
- 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.
- Polynomial Division — Divides polynomials of any degree
- Sierpinski Triangle — Displays the Sierpinski triangle fractal.
- Pascal's Triangle — Gets a row of Pascal's triangle
- Modular Arithmetic Solver — Solves modular arithmetic problems, also usable for finding a remainder
Miscellaneous Routines
- Deck of Cards — Manipulates a deck of standard playing cards.
- Day of Week — Substitute for the dayOfWk( command for pre-84+ calculators.
- Day, Date & Time — displays Day, Month, Year, Day of week and Time with no user input.
- Key Code Retriever — Displays the key code for any key that you press.
- Key Code to Letter — Outputs the letter corresponding to the key press
- Number Pad Reader — Output the number pressed (0-9) or any other key
.