I did briefly before I asked but I only found things referring to linear and non-linear equations, I couldnāt find reference to nonlinear terms. Now googling ānonlinear term mathā returns more about equations. I found some things about the concept of multiplication being bilinear when googling āis multiplication linearā but most things were over my skill level and I couldnāt make sense of them. Iām still confused.
Oh, Iāve found some info relating to linear terms:
A linear term has a degree of 1. For example, 5x, -2x and x are all linear terms. These terms are x to the first degree (X^1), where the ā1ā isnāt written (because any number to the first power is just that number).
Terms that are not linear are called non-linear terms. The most common one youāll come across in calculus is the quadratic term.
So I can see why xx is not a linear term: it is x to the second degree or x^2. Iām not sure why xy would be a non-linear term. Unless x and y are the same value! If x = 1 and y = 1 then xy is 1^2?
The sum of the exponents of the variables x and y in the term xy is 2. So if a linear term has a degree of one, then xy is non-linear. So the answer to my question:
is no. It is the degree of a term not being 1 that makes something non-linear, not the fact that there is multiplication happening.
No luck so far finding a solution that meets this criteria. Iāve been trying to apply the things about number lines to it, but Iāve got no good ideas. I think Iāve spent too long on this though I havenāt kept track of the time.
In that mapping, all numbers that arenāt 0 map to 1. All positive numbers map to 1. The solution x + y > 0 conceptually does this. It makes all positive numbers map to 1. How do we do something similar, but just with basic arithmetic?
1 is the multiplicative identity. Any number divided by itself equals one (except zero). But we canāt use fractions.
anything to the power of zero is 1. But then 0 maps to 1.
how can we check if something is positive using only addition and multiplication?
Iāve scrolled down to see further discussion.
Okay, I hadnāt considered integer division. I donāt have practise thinking about integer division so Iām gunna practise some more see if I notice anything.
Okay so using ā% 2ā can check if something is even or odd. That means you could use it for xor.
xor(x, y) = (x + y) % 2
Okay, so I am conceptually trying to do the same thing as with division. Mapping 0 to 0, and 1 and 2 to 1. The hint was to try n/10. That made me see that anything under 10 output 0 and anything above output 1. So I want a way that I can use remainder do the same thing. Can I use remainder to check primes? I know that 1 and 2 are both primes. if there was a prime check function called āprimeā that output true when prime, i could do:
0 prime 0
1 prime 1
2 prime 1
When is something a prime? When it has no factors except 1 and itself. I think I would maybe need to recursively check that each number below the input wasnāt a factor though. What other things maps 0, 1, 2 to 0, 1, 1?
A remainder function subtracts the second number from the first number until it cant and then returns the remainder.
If i could multiply 0, 1, 2 by something, that would spread them out across the number line, keeping 0 at 0. But theyāre then all scaled by the same amount.
This is like the remainder xor expression, but it makes the case where both inputs are 1 sum to an odd number by adding xy (which equals 1 only when the inputs are both 1)
I watched this computerphile video on xor and the half-adder:
I liked idea of the inputs of the two different gates of the half adder being in parallel and so being fed the same inputs. I like electronics, and have some experience with basic analogue circuits. I think for now though Iād like to move on to something different.
I skimmed the first couple pages of the introduction of the Feynman Lectures on Computation and I think Iād like to read it.