Hidden WordScanner
Private scans · No account required

DuckieDai Quadrant from Trig Signs

Find which quadrant an angle is in from the signs of two of its trig functions, such as sin positive and tan negative, with a sign chart and the All Students Take Calc rule.

trigonometry · MIT License

Overview

Find which quadrant an angle is in from the signs of two of its trig functions, such as sin positive and tan negative, with a sign chart and the All Students Take Calc rule.

  • Owner-tested on a TI calculator
  • Version 1.0.0
  • 1999 bytes
  • No imports

Before you run it

  • TI-84 Plus CE Python · No calculator OS or Python App version has been verified.
  • TI Connect CE .py transfer to the Python App; the owner's transfer details were not recorded
  • csc has the same sign as sin, sec as cos, and cot as tan.
  • An angle on an axis is not in any quadrant.
  • Each sign is typed as 1 or + for positive and 2 or - for negative.

Try the DuckieDai calculator screen

Follow the program's prompts and result flow before downloading.

JavaScript is required for the optional browser simulation. Source viewing and downloading remain available without it.

Simulation boundary: This preview uses a reviewed browser adapter. It does not execute the downloaded Python and does not prove TI-Python or calculator compatibility.

Learn the math

How to find the quadrant from the signs of two trig functions

The idea

Each trig function is positive in two quadrants and negative in the other two. Knowing one sign leaves two possible quadrants; a second sign from a different pair usually narrows it to one.

Sine follows the y-coordinate and cosine follows the x-coordinate, so sine is positive above the x-axis and cosine is positive to the right of the y-axis. Tangent is sine over cosine, so it is positive where the two agree.

The formula

All Students Take Calc: Q I all, Q II sin, Q III tan, Q IV cos

csc has the sign of sin, sec the sign of cos, cot the sign of tan

Q I to Q IV
the four quadrants, numbered counterclockwise from the top right
positive, > 0
typed as 1 or +
negative, < 0
typed as 2 or -

Using the program

Worked example

An angle has sin > 0 and tan < 0. Where does it end? Choose 1, then 1 for sin and 1 for positive, then 3 for tan and 2 for negative.

sin > 0: Q I or Q II; tan < 0: Q II or Q IV; both: Q II

The program shows sin > 0, tan < 0, and ANSWER: QUADRANT II.

With sin > 0 and csc > 0, both signs say the same thing, so the program shows POSSIBLE QUADRANTS: I, II and Need another sign.

Tips and common mistakes

Where this comes up

Deciding the quadrant from signs is an early step in the trigonometric functions unit of precalculus, usually just before finding all six values from one.

Exact reviewed bytes

Source code

Download .py

View source below, copy it when JavaScript is available, or download the exact .py bytes.

  1. # DuckieDai(TM) QUADSIGN
  2. # TI-84 Plus CE Python Edition
  3. # Find quadrants from TWO trig signs.
  4. NAMES=('sin','cos','tan','csc','sec','cot')
  5. IDX=(0,1,2,0,1,2)
  6. SIGNS=((1,1,1),(1,-1,-1),(-1,-1,1),(-1,1,-1))
  7. ROMAN=('I','II','III','IV')
  8. PAD=('I ','II ','III','IV ')
  9. def clear():
  10. print('\n'*11)
  11. def pause():
  12. input('Press enter ')
  13. clear()
  14. def func():
  15. while True:
  16. print('1 sin 2 cos 3 tan')
  17. print('4 csc 5 sec 6 cot')
  18. try:
  19. n=int(input('Function? '))
  20. if 1<=n<=6:return n-1
  21. except ValueError:pass
  22. print('Choose 1-6')
  23. def sign():
  24. while True:
  25. s=input('Sign? 1 + 2 - : ').strip().lower()
  26. if s in ('1','+','pos','positive','>0'):return 1
  27. if s in ('2','-','neg','negative','<0'):return -1
  28. print('Choose 1 or 2')
  29. def label(f,s):
  30. return NAMES[f]+(' > 0' if s==1 else ' < 0')
  31. def solve():
  32. clear()
  33. print('FIRST TRIG SIGN')
  34. a=func();sa=sign()
  35. clear()
  36. print('SECOND TRIG SIGN')
  37. b=func();sb=sign()
  38. hits=[]
  39. for q in range(4):
  40. if SIGNS[q][IDX[a]]==sa and SIGNS[q][IDX[b]]==sb:
  41. hits.append(ROMAN[q])
  42. clear()
  43. print(label(a,sa))
  44. print(label(b,sb))
  45. print('----------------')
  46. if len(hits)==1:
  47. print('ANSWER: QUADRANT '+hits[0])
  48. elif hits:
  49. print('POSSIBLE QUADRANTS:')
  50. print(', '.join(hits))
  51. print('Need another sign')
  52. else:
  53. print('NO QUADRANT MATCHES')
  54. print('Check the signs')
  55. pause()
  56. def chart():
  57. clear()
  58. print(' sin cos tan')
  59. for q in range(4):
  60. signs=['+' if v==1 else '-' for v in SIGNS[q]]
  61. print(PAD[q]+': '+' '.join(signs))
  62. print('csc,sec,cot = sin,cos,tan')
  63. print('All Students Take Calc')
  64. print('I:All II:Sin III:Tan')
  65. print('IV:Cos')
  66. pause()
  67. print('DuckieDai(TM)')
  68. print(' QUADSIGN')
  69. print(' __(o )>')
  70. print(' \\ <_. ) QUACK!')
  71. print(" `---'")
  72. print('hiddenwordscanner.com')
  73. pause()
  74. while True:
  75. print('1 Find quadrant')
  76. print('2 Trig sign chart')
  77. print('3 Exit')
  78. c=input('Choice? ').strip()
  79. if c=='1':solve()
  80. elif c=='2':chart()
  81. elif c=='3':break
  82. else:print('Choose 1-3')
  83. print('DuckieDai says: done!')
Filename
QUADSIGN.py
Size
1999 bytes
SHA-256
5732159e45c6e7e40ab9ddfaad7a65c02e34a9974a343c5681a0cbfc88c3e9cc

Usage

Inputs

  • A menu choice: 1 find quadrant, 2 sign chart, 3 exit
  • Two trig functions, 1 sin to 6 cot, each with a sign

Outputs

  • ANSWER: QUADRANT and the quadrant, or the possible quadrants, or NO QUADRANT MATCHES
  • A chart of the signs of sin, cos, and tan in each quadrant

Units: Signs; no units.

Assumptions and limitations

Assumptions

  • csc has the same sign as sin, sec as cos, and cot as tan.
  • An angle on an axis is not in any quadrant.

Constraints

  • Each sign is typed as 1 or + for positive and 2 or - for negative.
  • Two signs of the same function, such as sin positive and csc positive, may leave two quadrants.

Known failures

  • Signs that cannot happen together, such as sin positive and csc negative, show NO QUADRANT MATCHES.

Compatibility and review

Review status
Owner-tested on a TI calculator
Tested on
Owner reports personally running this program on a TI-84 Plus CE Python calculator; the test date, OS version, and Python App version were not recorded
What happened
Owner reported pass on the calculator for the owner's original. For publication the sign chart's last lines were shortened so the chart fits on one calculator screen; nothing else changed. This exact file has not yet been rerun on a calculator.
Dependencies
No imports
Suggested calculator name
QUADSIGN — you can give it another valid, unique name when you transfer it
Desktop test cases
Not available for this interactive-only source

This exact source auto-launches an interactive calculator session, so compatibility evidence comes from the recorded physical-device review rather than an importable desktop fixture.

Transfer and launch

Download the .py file, send it to your calculator with TI Connect CE as QUADSIGN or another name, then open the Python App and try the worked example on this page first. This release has no verified calculator OS or Python App version; treat transfer and execution as unverified until independently tested.

Full installation and troubleshooting guide. Check your teacher's or exam's rules before using any program.

Version history

Did a DuckieDai program help with your homework? Every program here is free. If you would like to say thanks, you can leave a tip on Cash App ($duckiedai214) or read what tips pay for.

Independent compatibility resource: Hidden Word Scanner is independent and is not affiliated with or endorsed by Texas Instruments. TI product names describe compatibility only.

Action-count privacy: Successful downloads, preview starts, and preview completions increment same-origin aggregate counters, and so does a Yes or No answer about whether the program worked. Your browser notes that you answered; that note is never sent to the site. No entered values, source text, IP address, account, cookie, device identifier, or fingerprint is stored with these counts.