06-15-2022, 11:13 AM

Hi All.

I wrote a small program to record my favorite electronics equations and formulas and fill in the E1-E0.

For completenes there is a simple equation for the OPAmps that is like this:

[attachment=10806]

So if V1 is greater than V2 then Vout = V+.

I know how to do this with programming using IF statements, but I wanted to reproduce this in one of the E1-E9 variables. Is this possible?

I know its a very simple equation but I really wanted to have it there for completeness.

Thank you!

I wrote a small program to record my favorite electronics equations and formulas and fill in the E1-E0.

For completenes there is a simple equation for the OPAmps that is like this:

[attachment=10806]

So if V1 is greater than V2 then Vout = V+.

I know how to do this with programming using IF statements, but I wanted to reproduce this in one of the E1-E9 variables. Is this possible?

I know its a very simple equation but I really wanted to have it there for completeness.

Thank you!