Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Generator-Exponential/J/generator-exponential-1.j
Normal file
10
Task/Generator-Exponential/J/generator-exponential-1.j
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
coclass 'mthPower'
|
||||
N=: 0
|
||||
create=: 3 :0
|
||||
M=: y
|
||||
)
|
||||
next=: 3 :0
|
||||
n=. N
|
||||
N=: N+1
|
||||
n^M
|
||||
)
|
||||
2
Task/Generator-Exponential/J/generator-exponential-2.j
Normal file
2
Task/Generator-Exponential/J/generator-exponential-2.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
stateySquare=: 2 conew 'mthPower'
|
||||
stateyCube=: 3 conew 'mthPower'
|
||||
6
Task/Generator-Exponential/J/generator-exponential-3.j
Normal file
6
Task/Generator-Exponential/J/generator-exponential-3.j
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
coclass 'uncubicalSquares'
|
||||
N=: 0
|
||||
next=: 3 :0"0
|
||||
while. (-: <.) 3 %: *: n=. N do. N=: N+1 end. N=: N+1
|
||||
*: n
|
||||
)
|
||||
2
Task/Generator-Exponential/J/generator-exponential-4.j
Normal file
2
Task/Generator-Exponential/J/generator-exponential-4.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
next__g i.10 [ next__g i.20 [ g=: conew 'uncubicalSquares'
|
||||
529 576 625 676 784 841 900 961 1024 1089
|
||||
4
Task/Generator-Exponential/J/generator-exponential-5.j
Normal file
4
Task/Generator-Exponential/J/generator-exponential-5.j
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
mthPower=: 1 :'^&m@i.'
|
||||
squares=: 2 mthPower
|
||||
cubes=: 3 mthPower
|
||||
uncubicalSquares=: squares -. cubes
|
||||
1
Task/Generator-Exponential/J/generator-exponential-6.j
Normal file
1
Task/Generator-Exponential/J/generator-exponential-6.j
Normal file
|
|
@ -0,0 +1 @@
|
|||
uncubicalSquares=: {. squares@<.@p.~&3 1.1 -. cubes
|
||||
2
Task/Generator-Exponential/J/generator-exponential-7.j
Normal file
2
Task/Generator-Exponential/J/generator-exponential-7.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
20 }. uncubicalSquares 30 NB. the 21st through 30th uncubical square
|
||||
529 576 625 676 784 841 900 961 1024 1089
|
||||
Loading…
Add table
Add a link
Reference in a new issue