Op-amp stages: gain and output — a TI-84 Plus CE program
OPAMP is a TI-BASIC program for the TI-84 Plus CE. Ideal op-amp inverting, non-inverting, summing, difference (matched pairs: R1 into each input, R2 as feedback and to ground, Vout = R2/R1·(V2 − V1)) and integrator stages: the gain and the output voltage, clipped at the supply rails with a SATURATED warning (the integrator for a sine input: amplitude and +90° phase).
What it asks for and what it shows
It asks for 4 values at its prompts, after you pick option 1 from its menu. In the example below it shows GAIN, VOUT, CLIPPED.
Example run
One of its oracle test cases: “inverting x-10”. The inputs are typed in order, and the results are the values the case expects on the screen.
| Step | Value |
|---|---|
| You enter | |
| Menu | option 1 |
| Input 1 | 15 |
| Input 2 | 10000 |
| Input 3 | 1000 |
| Input 4 | 0.5 |
| The screen shows | |
GAIN= | -10 |
VOUT= | -5 |
CLIPPED= | -5 |
How it's checked
7 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 35 checks.
How E-Code checks every program
Run it or put it on your calculator
- Open the library in the TI-84 Plus CE calculator and pick “Op-amp stages: gain and output” (OPAMP).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
- RC circuit charging transient
- Three-loop circuit (mesh currents)
- RC, RL and RLC transient response
- Series-parallel resistor network reducer
- AC circuit: series or parallel RLC phasors
All TI-84 Plus CE engineering programs · All TI-84 Plus CE programs