Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 31 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
31
Dung lượng
136,51 KB
Nội dung
Taylor models: proofthatarithmetic operations performed with floating-point arithmeticprovideguaranteedresults Nathalie Revol INRIA, projet Ar´enaire, LIP, ENS Lyon Nathalie.Revol@ens-lyon.fr Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 Outline Taylor models: introduction • Taylor models: definition • Taylormodels and floating-point arithmeticArithmetic operations in Taylormodels using FP arithmetic • Multiplication by a scalar • Addition • Multiplication Proofthatarithmetic operations are correct • Multiplication by a scalar • Addition • Multiplication Conclusion and “TODO” list Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 1 N. RevolTaylor 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] Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 2 N. RevolTaylor models: principle on a graphic −1 1 0 Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 3 N. RevolTaylor models: principle on a graphic −1 1 0 F([−1,1]) f Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 4 N. RevolTaylor models: principle on a graphic −1 1 0 F([−1,1]) f Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 5 N. RevolTaylor models: principle on a graphic −1 1 0 F([−1,1]) f Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 6 N. RevolTaylormodels 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 Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 7 N. RevolTaylor 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 Taylormodels 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 Taylormodels 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? Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 9 N. Revol [...]... mini-workshop, Miami Beach, December 16-20, 2002 - 10 NRevol Outline Taylor models: introduction • Taylor model: definition • Taylormodels and floating -point arithmeticArithmetic operations in Taylormodels using FP arithmetic • Multiplication by a scalar • Addition • Multiplication Proof that arithmetic operations are correct • Multiplication by a scalar • Addition • Multiplication Conclusion and... arithmeticArithmetic operations in Taylormodels 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 Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 18 NRevolTaylor models: estimating floating -point errors using floating -point arithmetic Problem... list Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 11 NRevolTaylor 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 NRevol 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 guaranteedresults or propose an algorithm that provides guaranteedresults 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) Taylormodels (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] Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 28 NRevolTaylor models: proof for the multiplication Goal: either prove that is provides guaranteedresults or propose an algorithm that provides guaranteedresults 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| Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 19 NRevolTaylor 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 Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 26 NRevolTaylor 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 Taylormodels mini-workshop, Miami Beach, December 16-20, 2002 - 17 NRevol Outline Taylor models: introduction • Taylor model: definition • Taylormodels and floating -point arithmeticArithmetic