06.09.2021 Views

College Algebra & Trigonometry, 2018a

College Algebra & Trigonometry, 2018a

College Algebra & Trigonometry, 2018a

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

34 CHAPTER 1. ALGEBRA REVIEW<br />

PROGRAM: Name (whatever name you’ve chosen should show here)<br />

:Prompt A, B, C<br />

On the next line of the program, we will take the values of A, B and C and use<br />

them to calculate the values of the roots of the equation. Type in the following:<br />

PROGRAM: Name<br />

:Prompt A, B, C<br />

:(−B + √ (B 2 − 4AC))/(2A) → R<br />

:(−B − √ (B 2 − 4AC))/(2A) → S<br />

In typing these two lines it’s important that when you type −B, you use the negative<br />

key next to the decimal point, rather than the subtraction key. The calculator<br />

is very picky about this. When you’re typing the B 2 − 4AC, you’ll need to use the<br />

subtraction key on the far right of the keypad.<br />

Also notice the double parentheses - one set for the numerator of the fraction<br />

and one set for the square root. If you don’t type this in correctly it will produce<br />

wrong answers. The arrow in the formula stores the values of the answer in the<br />

variables R and S, and the arrow is produced by the ”sto→” key just above the<br />

ON button in the lower left of the keyboard.<br />

Now that we’ve given the calculator the values for A, B and C and then had<br />

the calculator find the roots of the eqatiuon, we need to display the answers. If<br />

you press the prgm key and arrow over to the I/O menu again, you can choose<br />

3:Disp. This will Display the answers that we’ve stored as R and S.<br />

PROGRAM: Name<br />

:Prompt A, B, C<br />

:(−B + √ B 2 − 4AC))/(2A) → R<br />

:(−B − √ B 2 − 4AC))/(2A) → S<br />

:Disp R,S<br />

Now we can test the program with some simple equations. To run the program,<br />

press the program key and choose the program you’ve created either by selecting<br />

it and pressing enter, or by pressing the number for the program in the list. This<br />

should bring you back to the calculation screen, where you can run the program<br />

by pressing enter. The calculator should then ask you for the values of A, B and<br />

C.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!