E-Code

Op-amp stages: gain and output — a TI-84 Plus CE program

By E-Code · updated

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.

StepValue
You enter
Menuoption 1
Input 115
Input 210000
Input 31000
Input 40.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

Related programs

All TI-84 Plus CE engineering programs · All TI-84 Plus CE programs