geometry · MIT License
Overview
Solve arc length, sector area, radius, or angle from the radian forms of the arc and sector formulas.
- Tested on a TI calculator
- Downloaded 69 times
- Version 1.0.0
- 6247 bytes
- Uses math
Tried it? Did this program work on your calculator?
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; owner physically verified the supplied program.
- The angle is measured in radians.
- Radius and divisor angles must be positive; arc length and sector area may be zero.
- Entering degrees instead of radians produces an incorrect result.
Try the DuckieDai calculator screen
This browser preview calculates arc length and sector area from radius and radians. The TI program also solves the inverse modes.
TI-84 Plus CE Python · screen preview
Learn the math
How arc length and sector area work
The idea
An arc is a piece of a circle's edge and a sector is the pie slice beneath it. Both are simple fractions of the whole circle, and the formulas are shortest when the angle is measured in radians.
The formula
s = r*theta
A = 0.5*r^2*theta
s- arc length
A- sector area
r- radius
theta- central angle in radians
Using the program
- 1 finds arc length and 2 finds sector area.
- 3 and 4 find the radius from an arc length or an area.
- 5 and 6 find the angle from an arc length or an area.
Worked example
A circle of radius 4 has a central angle of 1.5 radians. Choose 1 and enter 4 and 1.5.
s = 4.0 x 1.5
The program shows s = 6.0 units.
Tips and common mistakes
- The angle must be in radians. Multiply degrees by pi/180 first: 90 degrees is about 1.5708.
- Arc length is a length; sector area is in square units.
- A full circle is 2*pi radians, about 6.2832.
Where this comes up
Arc length and sector area appear in the circles unit of geometry and in precalculus when radians are introduced. Physics uses the same relation to connect angle turned with distance traveled.
Exact reviewed bytes
Source code
"""DuckieDai Arc & Sector for TI-84 Plus CE Python."""from math import sqrtdef duckiedai_intro(program_name, wait=True):"""Show the reusable DuckieDai program opening."""title = program_name[:16]empty = 16 - len(title)left = empty // 2right = empty - leftprint("+----------------------+")print("| " + " " * left + title + " " * right + " |")print("| |")print("| __ |")print("| ___(o )> quack! |")print("| \\ <_. ) |")print("| `---' |")print("| by DuckieDai |")print("+----------------------+")print("Loading...")if wait:input("Press enter to start ")print("\n" * 6)def positive_number(prompt):"""Require a positive finite number."""while True:try:value = float(input(prompt))if value > 0 and value < 1e100:return valueexcept ValueError:passprint("Enter a number above 0.")def nonnegative_number(prompt):"""Allow zero or positive finite numbers."""while True:try:value = float(input(prompt))if value >= 0 and value < 1e100:return valueexcept ValueError:passprint("Enter 0 or greater.")def show_answer(name, value, unit):print()print("ANSWER")print(name + " = " + str(value))print(unit)def main():duckiedai_intro("ARC & SECTOR")print("ARC & SECTOR")print()print("s = r*theta")print("A = 0.5*r^2*theta")print()print("IMPORTANT:")print("theta is RADIANS")print()print("What do you need?")print()print("1. Arc length")print("2. Sector area")print("3. Radius from arc")print("4. Radius from area")print("5. Angle from arc")print("6. Angle from area")print()choice = input("Choose 1-6: ")print()# ==========================================# 1. ARC LENGTH## s = r*theta# ==========================================if choice == "1":radius = positive_number("Radius: ")theta = nonnegative_number("Angle (radians): ")arc = radius * thetaprint()print("Using:")print("s = r*theta")print()print("s = " + str(radius))print("x " + str(theta))show_answer("s",arc,"units")# ==========================================# 2. SECTOR AREA## A = 0.5*r^2*theta# ==========================================elif choice == "2":radius = positive_number("Radius: ")theta = nonnegative_number("Angle (radians): ")area = (0.5 *radius ** 2 *theta)print()print("Using:")print("A = 0.5*r^2*theta")print()print("A = 0.5 x")print(str(radius) + "^2")print("x " + str(theta))show_answer("A",area,"square units")# ==========================================# 3. RADIUS FROM ARC LENGTH## r = s/theta# ==========================================elif choice == "3":arc = nonnegative_number("Arc length: ")theta = positive_number("Angle (radians): ")radius = arc / thetaprint()print("Using:")print("s = r*theta")print()print("Rearranged:")print("r = s/theta")show_answer("r",radius,"units")# ==========================================# 4. RADIUS FROM SECTOR AREA## r = sqrt(2A/theta)# ==========================================elif choice == "4":area = nonnegative_number("Sector area: ")theta = positive_number("Angle (radians): ")radius = sqrt((2 * area) /theta)print()print("Using:")print("A = 0.5*r^2*theta")print()print("Rearranged:")print("r = sqrt(2A/theta)")show_answer("r",radius,"units")# ==========================================# 5. ANGLE FROM ARC LENGTH## theta = s/r# ==========================================elif choice == "5":arc = nonnegative_number("Arc length: ")radius = positive_number("Radius: ")theta = arc / radiusprint()print("Using:")print("s = r*theta")print()print("Rearranged:")print("theta = s/r")show_answer("theta",theta,"radians")# ==========================================# 6. ANGLE FROM SECTOR AREA## theta = 2A/r^2# ==========================================elif choice == "6":area = nonnegative_number("Sector area: ")radius = positive_number("Radius: ")theta = (2 * area /(radius ** 2))print()print("Using:")print("A = 0.5*r^2*theta")print()print("Rearranged:")print("theta = 2A/r^2")show_answer("theta",theta,"radians")else:print("Invalid choice.")print()print("DuckieDai says: done!")# TI-Python imports the selected AppVar rather than# setting __name__ to main.main()
- Filename
ARCSECTR.py- Size
- 6247 bytes
- SHA-256
5f9e97ec66f6e40785ab7d95e731ccf20532171354adb2dd98ca18a156ade831
Usage
Inputs
- Requested unknown and known radius, arc length, sector area, or angle
- Angle values are radians
Outputs
- Requested arc or sector quantity with formula and units
Units: Radius and arc length use one length unit; sector area uses that unit squared; angles use radians.
Assumptions and limitations
Assumptions
- The angle is measured in radians.
Constraints
- Radius and divisor angles must be positive; arc length and sector area may be zero.
Known failures
- Entering degrees instead of radians produces an incorrect result.
Compatibility and review
- Review status
- Tested on a TI calculator
- Tested on
- TI-84 Plus CE Python; OS 5.8.3; Python App 5.8.3.0048; exact source owner-tested through TI Connect CE
- What happened
- Owner confirmed the supplied arc and sector program runs on the physical calculator.
- Dependencies
- math
- Suggested calculator name
ARCSECTR— 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 ARCSECTR 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
- 1.0.0 — current version, published . Download this reviewed version
Related learning
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.