Extended xor to Tetrion space
#3
(08/02/2018, 04:29 AM)11Keith22 Wrote: What does the term "n-twise" mean? The terms would seem to be montwise, ditwise, tritwise, quitwise, etc., which I don't fully understand the meaning of in relation to the mod operator, which is always binary. I am probably missing something obvious here, but oh well.

n-twise means n-ary digit-wise. For instance:

utwise digits can be only: 1. (This is an ut.)
bitwise digits can be: 0, 1. (These are bits.)
tritwise digits can be: 0, 1, 2. (These are trits.)
tetratwise digits can be: 0, 1, 2, 3. (These are tetrats.)
pentatwise digits can be: 0, ..., 4. (These are pentats.)
and so on...
(Somewhy I prefer to the expression u- to mono-. It means one. The expression a- means zero. But I cannot find atwise digits (ats) senseful.)

So if I talk about an n-twise operator, then it means I convert its arguments to n-ary number system and then do the operator.
Let us see how it works in code pari-gp:

Code:
mod(x,y)=x-y*floor(x/y);
bttest(x,n,b)=if(x==0,0,digits(floor(x*b^50),b)[n]);
blength(x,b)=if(x==0,1,floor(real(log(x)/log(b)))+1);

h=50;
xorter(x,y)=sum(k=1,h+blength(max(x,y),3),3^(h+blength(max(x,y),3)-k)*mod(if(x==0,0,iferr(digits(floor(x*3^h),3)[k],err,0))+if(y==0,0,iferr(digits(floor(y*3^h),3)[k],err,0)),3))/3.0^h;
xorb(x,y,b)=sum(k=1,h+blength(max(x,y),b),b^(h+blength(max(x,y),b)-k)*mod(if(x==0,0,iferr(digits(floor(x*b^h),b)[k],err,0))+if(y==0,0,iferr(digits(floor(y*b^h),b)[k],err,0)),b))/b^h*1.0;

You can try it, or just plot it. E. g. ploth(x=0,10,xorter(x,3*x)) returns with a nice fractal-function.
Hope it helped to understand. Be brave to ask me.
Xorter Unizo
Reply


Messages In This Thread
Extended xor to Tetrion space - by Xorter - 07/31/2018, 01:08 PM
RE: Extended xor to Tetrion space - by 11Keith22 - 08/02/2018, 04:29 AM
RE: Extended xor to Tetrion space - by Xorter - 08/02/2018, 09:33 AM
RE: Extended xor to Tetrion space - by 11Keith22 - 08/05/2018, 02:10 AM
RE: Extended xor to Tetrion space - by Xorter - 08/05/2018, 09:45 AM
RE: Extended xor to Tetrion space - by 11Keith22 - 08/05/2018, 06:19 PM
RE: Extended xor to Tetrion space - by Xorter - 08/07/2018, 01:28 PM
RE: Extended xor to Tetrion space - by 11Keith22 - 08/07/2018, 10:43 PM
RE: Extended xor to Tetrion space - by Xorter - 08/08/2018, 07:53 PM
RE: Extended xor to Tetrion space - by Xorter - 08/17/2018, 06:39 PM
RE: Extended xor to Tetrion space - by 11Keith22 - 08/18/2018, 02:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extended Schroeder equation Shanghai46 2 5,923 03/23/2025, 11:24 PM
Last Post: MphLee
  Is there a function space for tetration? Chenjesu 0 4,565 06/23/2019, 08:24 PM
Last Post: Chenjesu
  Uniqueness of Ansus' extended sum superfunction bo198214 4 17,998 10/25/2013, 11:27 PM
Last Post: tommy1729
  number theory EPNT : extended prime number theorem tommy1729 0 5,863 08/23/2012, 02:44 PM
Last Post: tommy1729



Users browsing this thread: 17 Guest(s)