Law of Sine
- Nathaniel Hillert
- Oct 15, 2018
- 2 min read
Updated: Oct 22, 2018
So, one of the big things you will be using in any math class is "Law of Sine". For anyone that doesn't know what Law of Sine is: Sin(A)/a = Sin(B)/b = Sin(C)/c. The sides are always inversely proportional to the Sine of the opposite angle, and vice versa. So let's begin.
Create a new program and name it "LOS" (For Law Of Sine)
Press "prgm", go to the "I/O" tab, and press "enter" on "ClrHome". Hit "enter" to start a new line
Press "prgm", go to the "I/O" tab, and press "enter" on "Input"
Next, type ""SIDE OR ANGLE? (S/A)"", then press comma
Press "vars", hit "enter" on "String...", then hit "enter" on "Str1". Start a new line
Press "prgm" and hit "enter" on "If"
Grab the "Str1" again, press "2nd" then "math" and hit "enter" on "="
Input ""S"" directly after "=", then start a new line
Press "prgm", then hit "enter" on "Then". Start a new line
Press "prgm", go to the "I/O" tab, and press "enter" on "Disp"
Type ""B IS THE SIDE YOU ARE","FINDING"" then start a new line
Press "prgm", go to the "I/O" tab, and hit "enter" on "Input"
Type ""SIDE A: ",A" and start a new line.
Repeat step 12. Type ""ANGLE A: ",B" and start a new line
Repeat step 12. Type ""ANGLE B: ",C" and start a new line
Now type "((sin(C)*A)/sin(B))→D". Start a new line
Insert "Disp" and type ""SIDE B: ",D" Start a new line
Press "prgm", go down to "End" and hit "enter", start a new line
Grab "If" again, then get "Str1" again
Get "=" and type ""A"", start a new line
Grab "Then" again and start a new line
Get "Disp" and type ""B IS THE ANGLE YOU ARE","FINDING"". Start a new line
Repeat step 11. Type ""SIDE A: ",A" and start a new line
Repeat step 11. Type ""ANGLE A: ",B" and start a new line
Repeat step 11. Type ""SIDE B: ",C" and start a new line
Type "(sin−1((sin(B)*C)/A))→D" ("sin-1" is gotten by hitting "2nd" "sin") then start a new line
Get "Disp" and type ""ANGLE B: ",D"
Repeat step 17 without starting a new line
It should look like this:
:Input "SIDE OR ANGLE? (S/A)",Str1
:If Str1="S"
:Then
:Disp "B IS THE ANGLE YOU ARE","FINDING"
:Input "SIDE A: ",A
:Input "ANGLE A: ",B
:Input "ANGLE B: ",C
:((sin(C)*A)/sin(B))→D
:Disp "SIDE B: ",D
:End
:If Str1="A"
:Then
:Disp "B IS THE ANGLE YOU ARE","FINDING"
:Input "SIDE A: ",A
:Input "ANGLE A: ",A
:Input "SIDE B: ",C
:(sin-1((sin(B)*C)/A))→D
:Disp "ANGLE B: ",D
:End
Have fun using your program! Like the post if it was helpful. Drop a comment if you have any questions or need help. Thanks for reading!
-Nate
Comments