1. Trang chủ
  2. » Luận Văn - Báo Cáo

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

31 239 0
Tài liệu đã được kiểm tra trùng lặp

Đ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

Thông tin cơ bản

Tiêu đề Taylor Models: Proof That Arithmetic Operations Performed With Floating-Point Arithmetic Provide Guaranteed Results
Tác giả Nathalie Revol
Trường học École Normale Supérieure de Lyon
Chuyên ngành Mathematics
Thể loại Bài báo
Năm xuất bản 2002
Thành phố Miami Beach
Định dạng
Số trang 31
Dung lượng 136,51 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Taylor models: proof that arithmetic operations performed with floating-point arithmetic provide guaranteed resultsNathalie.Revol@ens-lyon.fr Taylor models mini-workshop, Miami Beach, De

Trang 1

Taylor models: proof that arithmetic operations performed with floating-point arithmetic provide guaranteed results

Nathalie.Revol@ens-lyon.fr

Taylor models mini-workshop, Miami Beach, December 16-20, 2002

Trang 2

Taylor models: introduction

• Taylor models: definition

• Taylor models and floating-point arithmetic

Arithmetic operations in Taylor models using FP arithmetic

Trang 3

Taylor models: definition

f : [−1, 1]v → IR

(x1, · · · , xv) 7→ f (x1, · · · , xv)

is represented by

To(x1, · · · , xv) + ILwhere

To is a polynomial of order o

IL is an interval enclosing the Lagrange remainder,

IL = (o+1)!1 kf(o+1)k∞ × [−1, 1]

Trang 4

Taylor models: principle on a graphic

0

Trang 5

Taylor models: principle on a graphic

0

F([−1,1])

f

Trang 6

Taylor models: principle on a graphic

0

F([−1,1])

f

Trang 7

Taylor models: principle on a graphic

0

F([−1,1])

f

Trang 8

Taylor models and floating-point arithmetic

f : [−1, 1]v → IR

(x1, · · · , xv) 7→ f (x1, · · · , xv)

is represented by

To(x1, · · · , xv) + IF P

To is a polynomial with floating-point coefficients of order o

IF P is an interval enclosing the Lagrange remainder

and an enclosure of the rounding errors

Trang 9

Taylor models, FP arithmetic and sparse

To is a polynomial with not too small floating-point coefficients

IF P is an interval enclosing the Lagrange remainder,

an enclosure of the rounding errors and

an enclosure of the terms corresponding to small coefficients

Trang 10

Question: are the results guaranteed 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’tthese 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?

Trang 11

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

Trang 12

Taylor models: introduction

• Taylor model: definition

• Taylor models and floating-point arithmetic

Arithmetic operations in Taylor models using FP arithmetic

Trang 13

Taylor models: notations

coefficients of the polynomial: ai, 1 ≤ i ≤ p (floating-point numbers)

I interval containing the Lagrange remainder, the bound on roundingerrors and the swept terms

εm : machine precision, i.e for every operation the relative roundingerror is ≤ εm/2

εu: machine underflow threshold

εc: logical underflow threshold: every number < εc is replaced by 0

or swept (hyp: ε2c > εu)

t : tallying variable (for rounding errors)

s : sweeping variable (to get rid of small coefficients)

Trang 14

Taylor models: operations using an ideal arithmetic

Trang 15

Taylor models: operations using an ideal arithmetic

Trang 16

Taylor models: operations using floating-point arithmetic

Notations: ideal operations: usual symbols,

floating-point or interval operations: circled symbols

Trang 17

Taylor models: operations using floating-point arithmetic

Trang 18

Taylor models: operations using FP arithmetic

Trang 19

Taylor models: introduction

• Taylor model: definition

• Taylor models and floating-point arithmetic

Arithmetic operations in Taylor models using FP arithmetic

Trang 20

Taylor models: estimating floating-point errors

using floating-point arithmetic

Problem (paradox): rounding errors are due to floating-pointarithmetic: 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|

Trang 21

Taylor models: estimating floating-point errors

using floating-point arithmetic

Trang 22

Taylor models: estimating floating-point errors

using floating-point arithmetic

Goal: either prove that is provides guaranteed results or propose analgorithm 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 intot);

2 prove that the swept terms (put into s) and the errors for thecomputation of s are correctly taken into account;

3 the last operation is an interval one, thus rounding errors are takeninto account properly

Notations: ideal operations: usual symbols,

floating-point or interval operations: circled symbols

Trang 23

Taylor models: multiplication by a scala

proof for the computation of t

Trang 24

• Relation between Pk |bk| and L

Trang 25

proof for the computation of s

• Let K denote {k/|bk| < εc}, let us prove that

2 ⊗ s = 2 M

k∈K

|bk| ≥ X

k∈K

|bk| + error on this sum

• error on this sum ≤ 1 − ]Kεm

Trang 26

Taylor models: proof for the addition

Trang 27

Taylor models: proof for the addition

Goal: either prove that is provides guaranteed results or propose analgorithm that provides guaranteed results

1 prove that the t variable really takes into account rounding errors(i.e the errors for a(1)k ⊕ a(2)k and the errors for the accumulationinto t): cf proof for the multiplication by a scalar;

2 prove that the swept terms (put into s) and the errors for thecomputation of s are correctly taken into account: cf proof forthe multiplication by a scalar;

3 the last operation is an interval one, thus rounding errors are takeninto account properly

Trang 28

Taylor models: proof for the multiplication

Trang 29

J ⊕ = 2⊗Lj

([−1, 1] ⊗ Lk>o−j |a(1)k |) ⊕ I(1)⊗[−|a(2)j |, |a(2)j |]

J = J ⊕ 2 ⊗ [− Lk |a(1)k |, L

k |a(1)k |] ⊗ I(2)

J = J ⊕ 2 ⊗ εm ⊗ [−t, t] ⊕ 2 ⊗ [−s, s]

Trang 30

Taylor models: proof for the multiplication

Goal: either prove that is provides guaranteed results or propose analgorithm 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 errors for thecomputation of s are correctly taken into account: cf proof forthe multiplication by a scalar;

3 in the last line, rounding errors are taken into account thanks tointerval arithmetic and to the factor “2” for the sums

Remark: this is different from Cosy, where interval operations areperformed at each step ⇒ no need for this factor “2” (?)

Trang 31

Conclusion and future work

• Almost done: check that the algorithms given here are the onesimplemented in Cosy

• Done: prove that the rounding errors are correctly taken intoaccount, 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)

• To do: same work on the intrinsics: /, √

and elementaryfunctions (with some reasonable assumptions on the quality of FPelementary functions)

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

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm