Hidden WordScanner
Private scans · No account required

DuckieDai Arrhenius Equation

Calculate an Arrhenius rate constant, a second-temperature rate constant, activation energy, or pre-exponential factor and show the rearrangement used.

chemistry · MIT License

Overview

Calculate an Arrhenius rate constant, a second-temperature rate constant, activation energy, or pre-exponential factor and show the rearrangement used.

  • Not calculator tested
  • Downloaded 37 times
  • Version 1.0.0
  • 1837 bytes
  • Uses math

Before you run it

  • TI-84 Plus CE Python · No calculator OS or Python App version has been verified.
  • TI Connect CE .py transfer is the intended path; calculator OS, Python App, transfer, and execution have not yet been tested for this release
  • The Arrhenius model and a temperature-independent A and Ea are suitable over the interval.
  • The two-temperature form compares the same reaction mechanism.
  • Temperatures, rate constants, and A must be positive; entered Ea is nonnegative except a solved Ea may expose inconsistent data.

Try the DuckieDai calculator screen

Follow the same opening, solve menu, prompts, validation, and result flow as the downloadable program.

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 the Arrhenius equation works

The idea

Reactions go faster when it is hotter, because more molecules have enough energy to get over the activation barrier. The Arrhenius equation puts numbers on that.

A higher activation energy means a slower reaction and one that is more sensitive to temperature.

The formula

k = A*e^(-Ea/(R*T))

ln(k2/k1) = (Ea/R)*(1/T1 - 1/T2)

k
rate constant
A
pre-exponential (frequency) factor, same units as k
Ea
activation energy (kJ/mol)
R
8.314 J/mol K, built in
T
temperature in kelvin

Using the program

Worked example

A reaction has A = 1 x 10^13 and Ea = 75 kJ/mol. At 298 K, choose 1 and enter 1e13, 75, and 298.

k = 1e13 x e^(-75000/(8.314 x 298))

The program shows k = 0.713 (it prints more decimal places).

Tips and common mistakes

Where this comes up

It belongs to the chemical kinetics unit of general chemistry and physical chemistry. Lab reports often use the two-temperature form to find an activation energy from measured rates.

Exact reviewed bytes

Source code

Download .py

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

  1. from math import exp,log
  2. R=8.314
  3. def duckiedai_intro(program_name,wait=True):
  4. title=program_name[:16]
  5. empty=16-len(title)
  6. left=empty//2
  7. right=empty-left
  8. print("+----------------------+")
  9. print("| "+" "*left+title+" "*right+" |")
  10. print("| |")
  11. print("| __ |")
  12. print("| ___(o )> quack! |")
  13. print("| \\ <_. ) |")
  14. print("| `---' |")
  15. print("| by DuckieDai |")
  16. print("+----------------------+")
  17. print("Loading...")
  18. if wait:
  19. input("Press enter to start ")
  20. print("\n"*6)
  21. duckiedai_intro("ARRHENIUS")
  22. def pos(s):
  23. while 1:
  24. try:
  25. x=float(input(s))
  26. if x>0:return x
  27. except:pass
  28. print("Enter a positive #")
  29. def ea():
  30. while 1:
  31. try:
  32. x=float(input("Ea kJ/mol: "))
  33. if x>=0:return x
  34. except:pass
  35. print("Enter 0 or more")
  36. print("ARRHENIUS EQ")
  37. print("1 Find k")
  38. print("2 Find k2")
  39. print("3 Find Ea")
  40. print("4 Find A")
  41. c=""
  42. while c not in ("1","2","3","4"):
  43. c=input("Choose 1-4: ")
  44. if c=="1":
  45. a=pos("A: ")
  46. e=ea()*1000
  47. t=pos("Temp K: ")
  48. try:
  49. k=a*exp(-e/(R*t))
  50. print("k =",k)
  51. except OverflowError:print("k too large")
  52. elif c=="2":
  53. k1=pos("k1: ")
  54. e=ea()*1000
  55. t1=pos("T1 K: ")
  56. t2=pos("T2 K: ")
  57. try:
  58. k2=k1*exp((-e/R)*(1/t2-1/t1))
  59. print("k2 =",k2)
  60. except OverflowError:print("k2 too large")
  61. elif c=="3":
  62. k1=pos("k1: ")
  63. k2=pos("k2: ")
  64. t1=pos("T1 K: ")
  65. t2=pos("T2 K: ")
  66. if t1==t2:print("T1 and T2 differ")
  67. else:print("Ea kJ/mol =",-R*log(k2/k1)/(1/t2-1/t1)/1000)
  68. else:
  69. k=pos("k: ")
  70. e=ea()*1000
  71. t=pos("Temp K: ")
  72. try:
  73. print("A =",k*exp(e/(R*t)))
  74. except OverflowError:print("A too large")
  75. input("ENTER for guide: ")
  76. print("QUICK GUIDE")
  77. print("Higher T: larger k")
  78. print("Higher Ea: smaller k")
  79. print("Catalyst lowers Ea")
  80. print("R=8.314 J/mol K")
  81. print("DuckieDai: done!")
  82. input("ENTER to exit: ")
Filename
arrhEQ.py
Size
1837 bytes
SHA-256
6ab61f3be9266dd9123bc38a0f3309fcb6150a5b8a36391c5307b6cffa24a245

Usage

Inputs

  • Solve mode: k, k2, Ea, or A
  • Positive rate constants and absolute temperatures as required
  • Activation energy in kJ/mol; pre-exponential factor in the same rate units as k

Outputs

  • Requested rate quantity, activation energy, or pre-exponential factor
  • Exponent or rate ratio where the interactive mode provides it

Units: Temperature is kelvin, activation energy is kJ/mol, R is 8.314 J/(mol*K), and A and k use matching rate units.

Assumptions and limitations

Assumptions

  • The Arrhenius model and a temperature-independent A and Ea are suitable over the interval.
  • The two-temperature form compares the same reaction mechanism.

Constraints

  • Temperatures, rate constants, and A must be positive; entered Ea is nonnegative except a solved Ea may expose inconsistent data.

Known failures

  • Extreme exponents can overflow or underflow floating-point display.
  • A mechanism change or non-Arrhenius behavior can make the model misleading.

Compatibility and review

Review status
Not calculator tested
Tested on
The owner reports personally testing the supplied archive programs on a calculator; exact model, OS, and Python App versions were not recorded
What happened
Owner reported interactive testing is disclosed, but the published bytes are not labeled independently calculator tested because the environment is unrecorded and Arrhenius received a narrow intake correction
Dependencies
math
Suggested calculator name
ARRHEQ — 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 ARRHEQ 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.