Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 77: |
Line 77: |
| | | |
| === Using Subtraction === | | === Using Subtraction === |
− |
| |
− | [[File:MathUnit.png|thumb]]
| |
− |
| |
− | If you do not use 0 and 1 as the two possible input values of the inverter, you can use subtraction for implementation. In this case, you need a constant that is exactly the mean of the two input values, i.e.
| |
− |
| |
− | <pre>y = (m - x)</pre>
| |
− |
| |
− | where m = (a + b)/2 is the mean of the two allowed input values, (called ''a'' and ''b'' here).
| |
− |
| |
− | {| class="wikitable"
| |
− | |+ Circuit setup
| |
− | |-
| |
− | ! unit || unit type || connector/setting || source/value
| |
− | |-
| |
− | | math 1 || [[Kit (Logic Processor)#Math Unit|Math Unit]] || Input 1 || x '''(input)'''
| |
− | |-
| |
− | | || || Input 2 || m (constant, see above)
| |
− | |-
| |
− | | || || Operation || Subtract
| |
− | |-
| |
− | | || || Output || y '''(output)'''
| |
− | |}
| |