8000 problem with `norm(f::PolyRingElem{AbsSimpleNumFieldElem})` · Issue #1878 · thofma/Hecke.jl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
problem with norm(f::PolyRingElem{AbsSimpleNumFieldElem}) #1878
Closed
@ThomasBreuer

Description

@ThomasBreuer
julia> using Hecke
 _    _           _        
| |  | |         | |         |  Software package for
| |__| | ___  ___| | _____   |  algorithmic algebraic number theory
|  __  |/ _ \/ __| |/ / _ \  |  
| |  | |  __/ (__|   <  __/  |  Manual: https://thofma.github.io/Hecke.jl
|_|  |_|\___|\___|_|\_\___|  |  Version 0.36.0

julia> _, x = polynomial_ring(QQ, "x");

julia> F, _ = number_field(x^2-2);

julia> R, x = polynomial_ring(F, "x");

julia> f = x^10 + x^9;

julia> norm( f )
x^20 + 2*x^19 + x^18

julia> norm( f*x)
ERROR: Requires nonzero constant coefficient
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] polynomial_to_power_sums(f::AbstractAlgebra.Generic.Poly{AbsSimpleNumFieldElem}, n::Int64)
[...]

The code for polynomial_to_power_sums gets called if the argument f of norm has degree larger than 10.
Should we switch to the code for smaller degrees (base on resultants) if the constant coefficient of f is zero?
Or perhaps shift f such that it has nonzero constant coefficient?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0