It's set to pause on the final output so you can read the results, simply press to clear the screen. If the discriminant (B²-4*A*C) is negative, then it'll do the Quadratic Formula and display the solutions rounded to two decimal places (the rounding is just for formatting purposes, if you have the TI84 Plus CE you can let it round to a higher value). Enjoy! = Comments will be denoted with "//.", make sure you don't type those parts into your program, they're just there to help you understand what everything means = // This first block of code lays out the general setup (basically preparing the output to look pretty) ClrHome AxesOff PlotsOff GridOff FnOff ClrDraw // This block prompts the user for input and saves the variables Disp " Quadratic"," Solver","" Disp "AX²+BX+C=0","" Input "A = ",A Input "B = ",B Input "C = ",C ClrHome // This block is checking to see if the solutions will be imaginary/complex. If you try to copy/paste it, you might get some errors, but if you simply retype it line for line it should work out fine :). I'll post the code here in case it's helpful for anyone. For those who're curious, I typed the program using the TI Connect CE Software, and I transferred it to my calculator w/ the USB cord. I've added scripts to account for complex solutions, unfactorable quadratics, and solving differences of squares problems (which for some reason the original code didn't seem to do for me). I've taken what you've done and (I think?) perfected it. I'm just dropping by to say thanks to the original poster for giving me the framework to create an awesome program.
0 Comments
Leave a Reply. |