File: initfunc.gp

package info (click to toggle)
gp2c 0.0.14pl1-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,180 kB
  • sloc: ansic: 8,608; sh: 1,630; lex: 347; yacc: 227; makefile: 107
file content (24 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
global(y:var='y,n:small=0,m:small,k=2,L:vec,T2)
T=clone([4,3,2,2,1,1,1,1,0,0,0,0,0,0,0,0])
T2=clone([4,3,2,2,1,1,1,1,0,0,0,0,0,0,0,0])
L=[]~;
mybfffo(x:small)=
{
  local(sc:small=28);
  if (x > 65535, sc -= 16; x >>= 16);
  if (x > 255, sc -= 8; x >>= 8);
  if (x > 15, sc -= 4; x >>= 4);
  sc + T[x];
}
count()=n++;y+1;m=mybfffo(n)
aff()=print(n," ",m);
M=[1,2;3,4]
print(x^4+k);
pow_M(k)=M^k
global(x1:int,x2:int);
global(y1,y2):int;
global(z1,z2);
f1(x)=my(z=x^2+1);if(z==1,x1=x,x2=x);z
f2(x)=my(z=x^2+1);if(z==1,y1=x,y2=x);z
f3(x)=my(z=x^2+1);if(z==1,z1=x,z2=x);z
global(t1);t1=0