All elementary functions from a single binary operator
121–130 of 317 posts
Re: All elementary functions from a single binary operator
#122Earlier quoted context omitted.
> Hypergeometric functions are functions with 4 parameters. Granted, but the claim in the abstract says: >> computing elementary functions such as sin, cos, sqrt, and log has always required multiple distinct operations And I don't see how this is true as to hypergeometric functions in a way that isn't shared by the approach in the paper. > Finding a binary operation that can do this, like in TFA, is far more difficu…
There is an essential difference between binary functions and unary functions. With binary functions you can compose them using a very complex composition graph. With unary functions you can compose them only linearly, so in general it is impossible to make a binary function with unary functions. You can make binary functions from unary functions only by using at least one other binary function. For instance, you can…
Re: All elementary functions from a single binary operator
#123Earlier quoted context omitted.
There is an essential difference between binary functions and unary functions. With binary functions you can compose them using a very complex composition graph. With unary functions you can compose them only linearly, so in general it is impossible to make a binary function with unary functions. You can make binary functions from unary functions only by using at least one other binary function. For instance, you can…
What are you responding to?
I have replied to your last statement:
> "you can use the second parameter of a binary function to identify a unary function just as you can use the fourth parameter of a quaternary function to identify a trinary one."
As I have explained above, what you propose does not work. It works in functions with 3 or more parameters, but it does not work in binary functions, because you cannot make binary functions from unary functions (without using some auxiliary binary functions).
Re: All elementary functions from a single binary operator
#124Earlier quoted context omitted.
Don't know adding, but multiplication has diagram on the last page of the PDF. xy = eml(eml(1, eml(eml(eml(eml(1, eml(eml(1, eml(1, x)), 1)), eml(1, eml(eml(1, eml(y, 1)), 1))), 1), 1)), 1) From Table 4, I think addition is slightly more complicated?
x+y = ln(exp(x) * exp(y)) exp(a) = eml(a, 1) ln(a)=eml(1,eml(eml(1,a),1)) Plugging those in is an excercise to the reader
Because of how exp and log turn addition into multiplication and vice versa, once you have the one, you get the other easily.
Re: All elementary functions from a single binary operator
#125So, like brainf*ck (the esoteric programming language), but for maths?
But even tighter. With eml and 1 you could encode a funtion in rpn as bits. Although you also need to encode where to put the input. The real question is what emoji to use for eml when written out.
Re: All elementary functions from a single binary operator
#126Re: All elementary functions from a single binary operator
#127Earlier quoted context omitted.
eml(1,eml(x,1)) = e + x and eml(eml(1,x),1) = e^e * x
Okay, I’m tired. Not quite inverse but per the title , must be a way.
eml(1,eml(x,1)) = e - x
Which then if you iterate gives x (ie is inverse of itself).
eml(1,eml(eml(1,eml(x,1)),1)) = x
Re: All elementary functions from a single binary operator
#128For completeness, there is also Peirce’s arrow aka NOR operation which is functionally complete. Fun applications iirc VMProtect copy protection system has an internal VM based on NOR. Quick google seach brings up https://github.com/pr701/nor_vm_core , which has a basic idea
Re: All elementary functions from a single binary operator
#129This makes a good benchmark LLMs: ``` look at this paper: https://arxiv.org/pdf/2603.21852 now please produce 2x+y as a composition on EMLs ``` Opus(paid) - claimed that "2" is circular. Once I told it that ChatGPT have already done this, finished successfully. ChatGPT(free) - did it from the first try. Grok - produced estimation of the depth of the formula. Gemini - success Deepseek - Assumed some pre-existing knowl…
> Once I told it that ChatGPT have already done this, finished successfully. TIL you can taunt LLMs. I guess they exhibit more competitive spirit than I thought.
Re: All elementary functions from a single binary operator
#130This is amazing! I love seeing FRACTRAN-shaped things on the homepage :) This reminds me of how 1-bit stacks are encoded in binary: A stack of zeros and ones can be encoded in a single number by keeping with bit-shifting and incrementing. Pushing a 0 onto the stack is equivalent to doubling the number. Pushing a 1 is equivalent to doubling and adding 1. Popping is equivalent to dividing by 2, where the remainder is t…