09 taylor models proof that arithmetic operation perforrmed with floatin point arithmetic provide guaranteed results n revol

31 238 0
09  taylor models proof that arithmetic operation perforrmed with floatin point arithmetic provide guaranteed results n revol

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Taylor models: proof that arithmetic operations performed with floating-point arithmetic provide guaranteed results Nathalie Revol INRIA, projet Ar´enaire, LIP, ENS Lyon Nathalie.Revol@ens-lyon.fr Taylor models mini-workshop, Miami Beach, December 16-20, 2002 Outline Taylor models: introduction • Taylor models: definition • Taylor models and floating-point arithmetic Arithmetic operations in Taylor models using FP arithmetic • Multiplication by a scalar • Addition • Multiplication Proof that arithmetic operations are correct • Multiplication by a scalar • Addition • Multiplication Conclusion and “TODO” list Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 1 N. Revol Taylor models: definition f : [−1, 1] v → IR (x 1 , ··· , x v ) → f(x 1 , ··· , x v ) is represented by T o (x 1 , ··· , x v ) + I L where T o is a polynomial of order o I L is an interval enclosing the Lagrange remainder, I L = 1 (o+1)! f (o+1)  ∞ × [−1, 1] Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 2 N. Revol Taylor models: principle on a graphic −1 1 0 Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 3 N. Revol Taylor models: principle on a graphic −1 1 0 F([−1,1]) f Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 4 N. Revol Taylor models: principle on a graphic −1 1 0 F([−1,1]) f Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 5 N. Revol Taylor models: principle on a graphic −1 1 0 F([−1,1]) f Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 6 N. Revol Taylor models and floating-point arithmetic f : [−1, 1] v → IR (x 1 , ··· , x v ) → f(x 1 , ··· , x v ) is represented by T o (x 1 , ··· , x v ) + I F P T o is a polynomial with floating-point co efficients of order o I F P is an interval enclosing the Lagrange remainder and an enclosure of the rounding errors Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 7 N. Revol Taylor models, FP arithmetic and sparse representation f : [−1, 1] v → IR (x 1 , ··· , x v ) → f(x 1 , ··· , x v ) is represented by T o (x 1 , ··· , x v ) + I T o is a polynomial with not too small floating-point coefficients I F P is an interval enclosing the Lagrange remainder, an enclosure of the rounding errors and an enclosure of the terms corresponding to small coefficients Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 8 N. Revol Question: are the results guarant eed enclosures? Recollection [A. Benedetti ] (message from March 2002) In the works of Berz the coefficients of the polynomial part are always represented by floating point numbers. Shouldn’t these be intervals? Since the coefficients are manipulated every time the Taylor models are combined in arithmetic operations or used as arguments in elementary functions, how can I get verified result if intervals are not used for the coefficients? Question: what is the approximation order? Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 9 N. Revol [...]... mini-workshop, Miami Beach, December 16-20, 2002 - 10 N Revol Outline Taylor models: introduction • Taylor model: definition • Taylor models and floating -point arithmetic Arithmetic operations in Taylor models using FP arithmetic • Multiplication by a scalar • Addition • Multiplication Proof that arithmetic operations are correct • Multiplication by a scalar • Addition • Multiplication Conclusion and... arithmetic Arithmetic operations in Taylor models using FP arithmetic • Multiplication by a scalar • Addition • Multiplication Proof that arithmetic operations are correct • Multiplication by a scalar • Addition • Multiplication Conclusion and “TODO” list Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 18 N Revol Taylor models: estimating floating -point errors using floating -point arithmetic Problem... list Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 11 N Revol Taylor models: notations coefficients of the polynomial: ai, 1 ≤ i ≤ p (floating -point numbers) I interval containing the Lagrange remainder, the bound on rounding errors and the swept terms εm : machine precision, i.e for every operation the relative rounding error is ≤ εm/2 εu: machine underflow threshold εc: logical underflow... - 29 N Revol Conclusion and future work • Almost done: check that the algorithms given here are the ones implemented in Cosy • Done: prove that the rounding errors are correctly taken into account, i.e that even with FP arithmetic, results are guaranteed Multiplication to be discussed • To do: proof that translations-homotheties are also correct with FP arithmetic (from any domain to [−1, 1] and reciprocally)... that is provides guaranteed results or propose an algorithm that provides guaranteed results 1 prove that the t variable really takes into account rounding errors (i.e the errors for c ⊗ ak and the errors for the accumulation into t); 2 prove that the swept terms (put into s) and the errors for the computation of s are correctly taken into account; 3 the last operation is an interval one, thus rounding...Definition of the approximation order Usual analysis: x being a point, T is of order o iff ∀x ∈ X, |T (x) − f (x)| = O(xo) Taylor models (using exact arithmetic) are of order o What happens with floating -point coefficients? Notion of approximate order? Interval analysis: X being an interval, F is of order o iff w(F (X)) = O(w(X)o) Order > 2: NP-hard Cocnlusion: same vocabulary but not same meaning Taylor models. .. [−s, s] Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 28 N Revol Taylor models: proof for the multiplication Goal: either prove that is provides guaranteed results or propose an algorithm that provides guaranteed results 1 prove that the t variable really takes into account rounding errors: cf proof for the multiplication by a scalar; 2 prove that the swept terms (put into s) and the... (paradox): rounding errors are due to floating -point arithmetic: how to estimate them using floating -point arithmetic? Starting point: (assumption) nb op × εm ≤ 1/2 and |(a ⊕ b) − (a + b)| ≤ εm ⊗ (|a| ⊕ |b|) and even |(a ⊕ b) − (a + b)| ≤ εm ⊗ max(|a|, |b|) |(a ⊗ b) − (a × b)| ≤ εm ⊗ |a ⊗ b| Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 19 N Revol Taylor models: estimating floating -point errors... multiplication by a scalar; 2 prove that the swept terms (put into s) and the errors for the computation of s are correctly taken into account: cf proof for the multiplication by a scalar; 3 the last operation is an interval one, thus rounding errors are taken into account properly Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 26 N Revol Taylor models: proof for the multiplication (1) (2)... o then bl = bl ⊕ p εm/2 × (|bl| + |p|) else J = J ⊕ [−|p|, |p|] interval operation (1) (1) interval operations J = J + [− i |ai |, i |ai |] × I (2) (2) (2) J = J + I (1) × [− i |ai |, i |ai |] except on the sums Taylor models mini-workshop, Miami Beach, December 16-20, 2002 - 17 N Revol Outline Taylor models: introduction • Taylor model: definition • Taylor models and floating -point arithmetic Arithmetic

Ngày đăng: 12/01/2014, 21:47

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan