julia> using Singular, GB
Welcome to Nemo version 0.16.1
Nemo comes with absolutely no warranty whatsoever
[ Info: Recompiling stale cache file /Users/sascha/.julia/compiled/v1.2/Singular/9fz0y.ji for Singular [bcd08a7b-43d2-5ff7-b6d4-c458787f915c]
Welcome to Nemo version 0.16.1
Nemo comes with absolutely no warranty whatsoever
[ Info: Precompiling GB [e39c9192-ea4d-5e15-9584-a488c6d614bd]
Welcome to Nemo version 0.16.1
Nemo comes with absolutely no warranty whatsoever
julia> vars = ["x$i" for i in 1:5]
5-element Array{String,1}:
"x1"
"x2"
"x3"
"x4"
"x5"
julia> R, (x1, x2, x3, x4, x5) = Singular.PolynomialRing(
Singular.QQ, vars, ordering = :degrevlex)
(Singular Polynomial Ring (QQ),(x1,x2,x3,x4,x5),(dp(5),C,L(1048575)), spoly{n_Q}[x1, x2, x3, x4, x5])
julia> gens = [
x1+2*x2+2*x3+2*x4+2*x5-1,
x1^2+2*x2^2+2*x3^2+2*x4^2+2*x5^2-x1,
2*x1*x2+2*x2*x3+2*x3*x4+2*x4*x5-x2,
x2^2+2*x1*x3+2*x2*x4+2*x3*x5-x3,
2*x2*x3+2*x1*x4+2*x2*x5-x4
]
5-element Array{spoly{n_Q},1}:
x1+2*x2+2*x3+2*x4+2*x5-1
x1^2+2*x2^2+2*x3^2+2*x4^2+2*x5^2-x1
2*x1*x2+2*x2*x3+2*x3*x4+2*x4*x5-x2
x2^2+2*x1*x3+2*x2*x4+2*x3*x5-x3
2*x2*x3+2*x1*x4+2*x2*x5-x4
julia> id = Singular.Ideal(R, gens)
Singular Ideal over Singular Polynomial Ring (QQ),(x1,x2,x3,x4,x5),(dp(5),C,L(1048575)) with generators (x1+2*x2+2*x3+2*x4+2*x5-1, x1^2+2*x2^2+2*x3^2+2*x4^2+2*x5^2-x1, 2*x1*x2+2*x2*x3+2*x3*x4+2*x4*x5-x2, x2^2+2*x1*x3+2*x2*x4+2*x3*x5-x3, 2*x2*x3+2*x1*x4+2*x2*x5-x4)
julia> GB.f4(id)
dyld: lazy symbol binding failed: Symbol not found: _omp_get_thread_num
Referenced from: /Users/sascha/.julia/packages/GB/KXk9r/deps/usr/lib/libgb.dylib
Expected in: flat namespace
dyld: Symbol not found: _omp_get_thread_num
Referenced from: /Users/sascha/.julia/packages/GB/KXk9r/deps/usr/lib/libgb.dylib
Expected in: flat namespace
signal (6): Abort trap: 6
in expression starting at REPL[9]:1
signal (6): Abort trap: 6
in expression starting at REPL[9]:1
unknown function (ip: 0x10f46a245)
Allocations: 39745802 (Pool: 39737179; Big: 8623); GC: 87
zsh: abort julia-1.2
julia> using Singular, GB
Welcome to Nemo version 0.16.1
Nemo comes with absolutely no warranty whatsoever
julia> using Libdl
julia> Libdl.dlopen("/usr/local/lib/libomp.dylib")
Ptr{Nothing} @0x00007fe542acd610
julia> vars = ["x$i" for i in 1:5]
5-element Array{String,1}:
"x1"
"x2"
"x3"
"x4"
"x5"
julia> R, (x1, x2, x3, x4, x5) = Singular.PolynomialRing(
Singular.QQ, vars, ordering = :degrevlex)
(Singular Polynomial Ring (QQ),(x1,x2,x3,x4,x5),(dp(5),C,L(1048575)), spoly{n_Q}[x1, x2, x3, x4, x5])
julia> gens2 = [
x1+2*x2+2*x3+2*x4+2*x5-1,
x1^2+2*x2^2+2*x3^2+2*x4^2+2*x5^2-x1,
2*x1*x2+2*x2*x3+2*x3*x4+2*x4*x5-x2,
x2^2+2*x1*x3+2*x2*x4+2*x3*x5-x3,
2*x2*x3+2*x1*x4+2*x2*x5-x4
]
5-element Array{spoly{n_Q},1}:
x1+2*x2+2*x3+2*x4+2*x5-1
x1^2+2*x2^2+2*x3^2+2*x4^2+2*x5^2-x1
2*x1*x2+2*x2*x3+2*x3*x4+2*x4*x5-x2
x2^2+2*x1*x3+2*x2*x4+2*x3*x5-x3
2*x2*x3+2*x1*x4+2*x2*x5-x4
julia> id = Singular.Ideal(R, gens2)
Singular Ideal over Singular Polynomial Ring (QQ),(x1,x2,x3,x4,x5),(dp(5),C,L(1048575)) with generators (x1+2*x2+2*x3+2*x4+2*x5-1, x1^2+2*x2^2+2*x3^2+2*x4^2+2*x5^2-x1, 2*x1*x2+2*x2*x3+2*x3*x4+2*x4*x5-x2, x2^2+2*x1*x3+2*x2*x4+2*x3*x5-x3, 2*x2*x3+2*x1*x4+2*x2*x5-x4)
julia> GB.f4(id)
Singular Ideal over Singular Polynomial Ring (QQ),(x1,x2,x3,x4,x5),(dp(5),C,L(1048575)) with generators (x1+2*x2+2*x3+2*x4+2*x5-1, x2^2+2*x1*x3+2*x2*x4+2*x3*x5-x3, 2*x2*x3+2*x1*x4+2*x2*x5-x4, 18*x3*x4+20*x4^2+18*x2*x5+40*x3*x5+66*x4*x5+48*x5^2-x2-4*x3-9*x4-16*x5, 9*x3^2+18*x2*x4-11*x4^2-36*x2*x5-58*x3*x5-84*x4*x5-75*x5^2+x2+4*x3+9*x4+25*x5, 132*x4^2*x5+264*x3*x5^2+576*x4*x5^2+468*x5^3+x4^2-12*x2*x5-46*x3*x5-102*x4*x5-186*x5^2+4*x2+7*x3+9*x4+10*x5, 3960*x2*x4*x5-2880*x2*x5^2-3060*x3*x5^2-2664*x4*x5^2-3672*x5^3-315*x2*x4+115*x4^2-126*x2*x5+356*x3*x5+366*x4*x5+1284*x5^2+19*x2-5*x3-20*x5, 5940*x4^3-11880*x2*x5^2-51840*x3*x5^2-63072*x4*x5^2-60696*x5^3-540*x2*x4-2450*x4^2+3402*x2*x5+9788*x3*x5+10518*x4*x5+25692*x5^2-323*x2-410*x3-990*x4-1820*x5, 5940*x2*x4^2+4320*x2*x5^2+8100*x3*x5^2+11448*x4*x5^2+12744*x5^3-945*x2*x4-175*x4^2-648*x2*x5-1052*x3*x5-1482*x4*x5-4668*x5^2+2*x2+125*x3+315*x4+140*x5, 267696*x4*x5^3+288288*x5^4-10296*x2*x5^2-38544*x3*x5^2-83736*x4*x5^2-153192*x5^3-3300*x2*x4-1310*x4^2+9186*x2*x5+26468*x3*x5+29538*x4*x5+34572*x5^2-323*x2-1250*x3-2880*x4-5180*x5, 24092640*x3*x5^3-7413120*x5^4-645840*x2*x5^2-4397220*x3*x5^2-992952*x4*x5^2+1314144*x5^3+301725*x2*x4+83225*x4^2-603558*x2*x5-2197832*x3*x5-2129262*x4*x5-1023288*x5^2-6193*x2+107645*x3+277470*x4+469640*x5, 12046320*x2*x5^3+4324320*x5^4-1745640*x2*x5^2+704160*x3*x5^2+1054944*x4*x5^2-405288*x5^3+217260*x2*x4-105710*x4^2-380754*x2*x5-375076*x3*x5-695496*x4*x5-900084*x5^2+44971*x2+57430*x3+48645*x4+184900*x5, 13154581440*x5^5-5665168080*x5^4+1297146240*x2*x5^2+3240457380*x3*x5^2+4317438672*x4*x5^2+3524076036*x5^3+16132995*x2*x4+150670610*x4^2-126613962*x2*x5-416572598*x3*x5-531245148*x4*x5-1154748822*x5^2+2569523*x2+1390160*x3+9049545*x4+40771070*x5)