JuliaMath / JuliaMath/Polynomials.jl

Code paths for *

Open
#433 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
320
Forks
80
Avg merge
8h 46m
Merged PRs (30d)
3

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.