Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,3 @@
create or replace function factorial(n) as (
list_reduce( list_transform(range(1,n+1), x -> x::HUGEINT), (prod,n) -> prod * n)
);

View file

@ -0,0 +1,3 @@
create or replace function double_precision_factorial(n) as (
list_product( range(1, n+1) )
);

View file

@ -0,0 +1,2 @@
select n, n!, factorial(n), double_precision_factorial(n)
from values (4), (30), (33) t(n);