Skip to content

Code paths for * #433

@jverzani

Description

@jverzani

This polynomial shows that multiplication for different polynomial types can vary significantly:

julia> rts = [1.0, sqrt(2), sqrt(3)];

julia> ls = [2, 3, 4];

julia> x, xx = variable(Polynomial{Float64}), variable(ImmutablePolynomial{Float64});

julia> pp = prod((xx-z)^l for (z,l) in zip(rts, ls));

julia> p = prod((x-z)^l for (z,l) in zip(rts, ls));

julia> maximum(abs, coeffs(pp*pp) .- coeffs(p*p))
2.3283064365386963e-10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions