Page 1 of 1

each * each = each

Posted: Fri Nov 27, 2020 3:45 am
by kanvil
TL;DR
Allow arithmetic combinators to have Each as both operands.
What ?
If both operands for an arithmetic combinators are set to Each, the output should be the result of the operand being applied to each input signal with itself.

i.e. If the input is { 5 plastic, 3 stone } and the operand is *, the output should be { 25 plastic, 9 stone }.
Why ?
This would give some interesting new capabilities to circuit networks. For example:

You could use a vector B where select signals = 1 to filter the specified signals from the vector A by computing:
output = ((A+B)^2 - A^2 - B^2) / 2

Re: each * each = each

Posted: Fri Nov 27, 2020 2:20 pm
by Nidan
Arithmetic combinators can do exponentiation, so for the case of each*each you can use each^2 instead.

Re: each * each = each

Posted: Sat Nov 28, 2020 12:02 am
by ssilk
Me also sees no other use case.