Hidden WordScanner
Private scans · No account required

DuckieDai Vertical Asymptote Checker

Classify a factored rational-function zero as a vertical asymptote, hole, or canceled factor by comparing numerator and denominator multiplicities.

rational functions · MIT License

Overview

Classify a factored rational-function zero as a vertical asymptote, hole, or canceled factor by comparing numerator and denominator multiplicities.

  • Tested on a TI calculator
  • Downloaded 45 times
  • Version 1.0.0
  • 2310 bytes
  • No imports

Before you run it

  • TI-84 Plus CE Python · tested on OS 5.8.3, Python App 5.8.3.0048
  • TI Connect CE .py conversion to a Python AppVar in RAM; physically tested one program at a time
  • The rational function is already in factored form.
  • This program does not factor a polynomial automatically.
  • Negative factor-copy counts are rejected.

Try the DuckieDai calculator screen

Follow the reviewed program prompts and calculation 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 vertical asymptotes and holes work

The idea

A rational function misbehaves wherever its bottom is zero. Whether that spot is a vertical asymptote or a hole depends on whether the same factor also appears on top.

If the factor cancels completely, the graph has a hole. If copies remain on the bottom, it has a vertical asymptote.

The formula

more copies on the bottom: vertical asymptote at x = c

equal copies: hole at x = c

more copies on top: the factor cancels and leaves a zero

c
the value that makes the factor (x - c) zero
copies
the power on that factor, top and bottom

Using the program

Worked example

In (x - 2)/((x - 2)(x + 1)) the factor (x - 2) appears once on top and once on the bottom. Enter 2, 1, and 1.

The program shows HOLE at x = 2, because the factor cancels fully.

Tips and common mistakes

Where this comes up

Vertical asymptotes and holes are part of the rational functions unit of algebra 2, precalculus, and college algebra, and calculus revisits them as infinite limits and removable discontinuities.

Exact reviewed bytes

Source code

Download .py

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

  1. """DuckieDai Vertical Asymptote Checker for TI-84 Plus CE Python."""
  2. def duckiedai_intro(program_name):
  3. title = program_name[:16]
  4. empty = 16 - len(title)
  5. left = empty // 2
  6. right = empty - left
  7. print("+----------------------+")
  8. print("| " + " " * left + title + " " * right + " |")
  9. print("| |")
  10. print("| __ |")
  11. print("| ___(o )> quack! |")
  12. print("| \\ <_. ) |")
  13. print("| `---' |")
  14. print("| by DuckieDai |")
  15. print("+----------------------+")
  16. print("Loading...")
  17. input("Press enter to start ")
  18. print("\n" * 8)
  19. def clear_screen():
  20. print("\n" * 8)
  21. def number(prompt):
  22. while True:
  23. try:
  24. return float(input(prompt))
  25. except ValueError:
  26. print("Enter a number")
  27. def clean_num(value):
  28. if abs(value - round(value)) < 0.0000001:
  29. return str(int(round(value)))
  30. return str(round(value, 6))
  31. def run_checker():
  32. clear_screen()
  33. print("VERTICAL ASYMPTOTE")
  34. print("------------------")
  35. print("Use factored form.")
  36. print("Example: (x-2)^2")
  37. print("")
  38. zero = number("Factor zero c: ")
  39. top_count = int(number("Top copies: "))
  40. bottom_count = int(number("Bottom copies: "))
  41. if top_count < 0 or bottom_count < 0:
  42. print("Counts cannot be negative")
  43. return
  44. clear_screen()
  45. print("RESULT")
  46. print("------")
  47. print("Factor: x - (" + clean_num(zero) + ")")
  48. print("")
  49. if bottom_count == 0:
  50. print("Not a denominator")
  51. print("factor.")
  52. elif bottom_count > top_count:
  53. print("VERTICAL ASYMPTOTE")
  54. print("x =", clean_num(zero))
  55. print("")
  56. print("Remaining bottom")
  57. print("power:", bottom_count - top_count)
  58. elif bottom_count == top_count:
  59. print("HOLE")
  60. print("x =", clean_num(zero))
  61. print("")
  62. print("Factor cancels fully.")
  63. else:
  64. print("NO VERTICAL")
  65. print("ASYMPTOTE")
  66. print("")
  67. print("Top factor cancels")
  68. print("the denominator.")
  69. duckiedai_intro("Vert Asymptote")
  70. while True:
  71. run_checker()
  72. print("")
  73. if input("Again? y/n: ").lower() != "y":
  74. break
  75. clear_screen()
  76. print("DuckieDai says: done!")
Filename
VASYM.py
Size
2310 bytes
SHA-256
dff6c1252d45cc5c10e390d7d9f4539b2f78f1ee3dfee7707a1a57d5f7740438

Usage

Inputs

  • Zero c from factor x minus c
  • Numerator factor copies
  • Denominator factor copies

Outputs

  • Vertical asymptote, hole, or no vertical asymptote
  • Remaining denominator multiplicity when applicable

Units: Factor roots and multiplicities; no physical units.

Assumptions and limitations

Assumptions

  • The rational function is already in factored form.

Constraints

  • This program does not factor a polynomial automatically.

Known failures

  • Negative factor-copy counts are rejected.

Compatibility and review

Review status
Tested on a TI calculator
Tested on
Creator-owned TI-84 Plus CE Python calculator; exact .py transferred and launched individually
What happened
Passed: creator personally tested the corrected exact program on a TI 84 Plus CE Python calculator.
Dependencies
No imports
Suggested calculator name
VASYM — 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 VASYM or another name, then open the Python App and try the worked example on this page first.

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.