Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the product of TaylorModels #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/arithmetic.jl
Expand Up @@ -126,9 +126,12 @@ end
function remainder_product(a, b, aux, Δnegl)
Δa = a.pol(aux)
Δb = b.pol(aux)
Δ = Δnegl + Δb * a.rem + Δa * b.rem + a.rem * b.rem
Δ₁ = Δa * b.rem + a.rem * (Δb + b.rem)
Δ₂ = Δb * a.rem + b.rem * (Δa + a.rem)
Δ = Δnegl + (Δ₁ ∩ Δ₂)
lbenet marked this conversation as resolved.
Show resolved Hide resolved
return Δ
end

function remainder_product(a::TaylorModel1{TaylorModelN{N,T,S},S},
b::TaylorModel1{TaylorModelN{N,T,S},S}, aux, Δnegl) where {N,T,S}
Δa = a.pol(aux)
Expand Down