Skip to content

Takes a .txt file with specific formatting, and converts it to TI-BASIC for use on calculator.

Notifications You must be signed in to change notification settings

rsachdev19/CalculatorNotes

 
 

Repository files navigation

CalculatorNotes

Takes a .txt file with specific formatting, and converts it to TI-BASIC for use on calculator.

Creating A Program Outline

The tool I have made relies fundamentally on an outline to create a program. An outline consists of an organized list of what one desires to be in the program, denoting menus/subheadings with '~'. See the example below.

CALC2

~Series

~~Sin(x)

~~~x - (x^3)/(3!) + (x^5)/(5!) + ... + (x^(2n-1)) / (2n-1!)

~~Cos(x)

~~~1 - (x^2)/(2!) + (x^4)/(4!) + ... + (x^(2n)) / (2n!)

~~e^x

~~~1 + x + (x^2)/(2!) + (x^3)/(3!) + ... + (x^n)/(n!)

~~1/(1-x)

~~~1 + x + x^2 + x^3 + x^4 + ... + x^n

~Reimann Sums

~~LRAM

~~~Sum y(deltax) using the y of the left point for each value. Underapprox when function is decreasing, Overapprox when funciton is increasing.

~~RRAM

~~~Sum y(deltax) using the y of the right point for each value. Overapprox when function is decreasing, Underapprox when funciton is increasing.

~~MRAM

~~~Sum y(deltax) using the y of the midpoint of the two values. Approximation is inconclusive.

~~TAM

~~~(LRAM+RRAM)/2 Underapprox when function is concave down, Overapprox when funciton is concave up.

  • The Outline must always start with a title. Do not place any ~ before your title.
  • To denote a main menu option, begin with one ~ before the title of that heading. In this case, I wanted "Series" and "Reimann Sums" to be visible upon first opening the program, so those sections have one ~
  • To denote a subheading, place one more ~ than the heading it is under. In this case, I wanted the option "Sin(x)" to be under "Series" so "Sin(x)" has two ~~, because "Series" had one.
  • To denote the final piece of information, simply perform the previous step, and put no subheadings underneath it. In this case, "x - (x^3)/(3!) + (x^5)/(5!) + ... + (x^(2n-1)) / (2n-1!)" has three ~, and there is nothing below it with four ~, meaning it must be the last possible option. So, when "Sin(x)" is clicked, "x - (x^3)/(3!) + (x^5)/(5!) + ... + (x^(2n-1)) / (2n-1!)" will display, and the program will end.
  • **Check further down for important notes on what kinds of characters/sentences will and will not work in the calculator.**

Things NOT to do

  • Do NOT use any special characters other than the following
    • . , ^ ( ) { } [] ! + - * / < > = :
  • Do NOT write any formulas that are greater than 15 characters. This will not fit on the calculator screen, and will give an error in the tool. If you need to place any long formulas or words in the calculator, add a space between some of the terms to prevent there from being any 16-character long chain.
  • Do NOT write invalid links into your program. For example, see the Program below.

Reimann Sums

~LRAM

~~Sum y(deltax) using the y of the left point for each value.

~~~Underapprox when function is decreasing, Overapprox when funciton is increasing.

~RRAM

~~Sum y(deltax) using the y of the right point for each value. Overapprox when function is decreasing, Underapprox when funciton is increasing.

  • This program can not logically run, as the "LRAM" section is attempting to make a menu of one item, which is unnecessary. One would first click on "Reimann sums" , then on "LRAM" , at which point we can see the problem. Since there is no other item with three ~, there is no menu, so the subheading underneath "Sum y(deltax) using the y of the left point for each value." is unnecessary and will not run, causing the tool not to work.
  • Similarly, do NOT make empty menu options. For example, see the program below.

Reimann Sums

~LRAM

~RRAM

  • The tool cannot create this program, as there is nothing to create. Upon clicking either option ("LRAM" or "RRAM"), there is no text to be displayed / menu to go to. This results in an uncompilable program. In order to avoid this, write out what menus you would like on paper first to ensure you know what should display what.
  • Finally, do NOT make a menu with more than 7 options. The calculator screen can only fit 7 options into one menu, so either make two outlines or move some items around to account for this.

Things TO do

  • DO use // in place of an integral symbol
  • DO use 0 in place of a theta symbol
  • DO use ( ) in formulas. It is difficult to read thing in the calculator at times, so ( ) help to keep everything clear.
  • DO organize your information. Keep everything where it should be, don't just lazily throw the info out there. You will be timed and the ability to quickly and easily get to the information you need is essential.
  • DO keep things concise. The less you have to say to get the point across, the better. Again, you will be timed, and using abbreviations and keeping definitions simple will help to ensure that your program use is quick and efficient.
  • DO HAVE A TITLE!!! Without a title, your program will not Compile. This title should be short, no more than 16 characters as stated before, but is entirely necessary. The first line of your outline should be this title with no ~ prior.
  • DO USE NOTEPAD TO MAKE YOUR OUTLINE!!!** The tool uses .txt files, not .doc or .docx. Use notepad to create a simple .txt outline.

About

Takes a .txt file with specific formatting, and converts it to TI-BASIC for use on calculator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%