Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation
|
|
- Richard Fisher
- 7 years ago
- Views:
Transcription
1 Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation Conférence en Parallélisme, Architecture et Systèmes 2015 Hugues de Lassus Saint-Geniès David Defour Guillaume Revy DALI, Université de Perpignan Via Domitia LIRMM, Université de Montpellier 2 CNRS UMR 5506 July 1 st, 2015
2 Context, objectives and achievements Context and objectives Elementary function evaluation IEEE-754 floating-point arithmetic Trigonometric functions Table-based range reduction Remove sources of error Achievements Algorithm to tabulate exact values for the sine and cosine functions For correct-rounding in double precision: Precomputed table size reduced up to 45% Memory accesses and FLOPs reduced up to 45% during the reconstruction H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 2 / 25
3 1 Background on sine and cosine evaluation Additive range reduction Table-lookup range reduction Sources of error 2 Error-free table method for sine and cosine implementations Concentration of the error Pythagorean triples 3 Experimental results Exhaustive search Heuristic search Comparisons with other table-based methods 4 Conclusion and perspectives H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 3 / 25
4 1 Background on sine and cosine evaluation Additive range reduction Table-lookup range reduction Sources of error 2 Error-free table method for sine and cosine implementations Concentration of the error Pythagorean triples 3 Experimental results Exhaustive search Heuristic search Comparisons with other table-based methods 4 Conclusion and perspectives H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 3 / 25
5 Basic scheme for sine and cosine evaluation (1) Range reduction: use of trigonometric symmetries and periodicities 1 sin(x) π π 0 π 2π H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 4 / 25
6 Basic scheme for sine and cosine evaluation (1) Range reduction: use of trigonometric symmetries and periodicities 1 sin(x) π π 0 π 2π sin(x) = sin(x + 2π) H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 4 / 25
7 Basic scheme for sine and cosine evaluation (1) Range reduction: use of trigonometric symmetries and periodicities 1 sin(x) π π 0 π 2π sin( x) = sin(x) H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 4 / 25
8 Basic scheme for sine and cosine evaluation (1) Range reduction: use of trigonometric symmetries and periodicities 1 sin(x) π π 0 π 2π ( ) sin(x) = ±f k x k π 2 with f k {sin, cos} H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 4 / 25
9 Basic scheme for sine and cosine evaluation (1) Range reduction: use of trigonometric symmetries and periodicities 1 sin(x) π π 0 π 2π ( ) sin(x) = ±f k x k π 2 with f k {sin, cos} H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 4 / 25
10 Basic scheme for sine and cosine evaluation (1) Range reduction: use of trigonometric symmetries and periodicities 1 sin(x) π π 0 π 2π Range reduction F 64 [ 0, π 4 ] H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 4 / 25
11 Basic scheme for sine and cosine evaluation (2) Tang s method H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 5 / 25
12 Basic scheme for sine and cosine evaluation (2) Tang s method H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 5 / 25
13 Basic scheme for sine and cosine evaluation (2) Tang s method H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 5 / 25
14 Basic scheme for sine and cosine evaluation (2) Tang s method x H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 5 / 25
15 Basic scheme for sine and cosine evaluation (2) Tang s method sin h sin(x h ) x x l x h cos h cos(x h ) sin(x) = sin h cos(x l ) cos h sin(x l ) H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 5 / 25
16 Sources of error in the classical method x [0, π 4 ] Splitting x into (x h, x l ) x h x l Table lookup Polynomial approximations cos h sin h cos(x l ) sin(x l ) Reconstruction sin(x) = sin h cos(x l ) cos h sin(x l ) H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 6 / 25
17 Sources of error in the classical method Errors appear in: x [0, π 4 ] Splitting x into (x h, x l ) x, inherently by the range reduction x h x l Table lookup Polynomial approximations cos h sin h cos(x l ) sin(x l ) Reconstruction sin(x) = sin h cos(x l ) cos h sin(x l ) H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 6 / 25
18 Sources of error in the classical method Errors appear in: x [0, π 4 ] Splitting x into (x h, x l ) x, inherently by the range reduction Table lookup x h x l Polynomial approximations sin h and cos h, which are rounded approximations cos h sin h cos(x l ) sin(x l ) Reconstruction sin(x) = sin h cos(x l ) cos h sin(x l ) H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 6 / 25
19 Sources of error in the classical method Errors appear in: Table lookup x [0, π 4 ] Splitting x into (x h, x l ) x h Polynomial approximations cos h sin h cos(x l ) sin(x l ) Reconstruction sin(x) = sin h cos(x l ) cos h sin(x l ) x l x, inherently by the range reduction sin h and cos h, which are rounded approximations sin(x l ) and cos(x l ), which are computed by polynomial evaluation H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 6 / 25
20 Sources of error in the classical method Errors appear in: Table lookup x [0, π 4 ] Splitting x into (x h, x l ) x h Polynomial approximations cos h sin h cos(x l ) sin(x l ) Reconstruction sin(x) = sin h cos(x l ) cos h sin(x l ) x l x, inherently by the range reduction sin h and cos h, which are rounded approximations sin(x l ) and cos(x l ), which are computed by polynomial evaluation in the reconstruction process H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 6 / 25
21 Sources of error in the classical method Errors appear in: Table lookup x [0, π 4 ] Splitting x into (x h, x l ) x h Polynomial approximations cos h sin h cos(x l ) sin(x l ) Reconstruction sin(x) = sin h cos(x l ) cos h sin(x l ) x l x, inherently by the range reduction sin h and cos h, which are rounded approximations sin(x l ) and cos(x l ), which are computed by polynomial evaluation in the reconstruction process Drawback: additional bits in computation steps for accuracy purposes H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 6 / 25
22 Reducing the error on tabulated values x [0, π 4 ] Splitting x into (x h, x l ) Gal s accurate table method: Table lookup x h corr Polynomial approximations cos h sin h cos(x l corr) sin(x l corr) Reconstruction sin(x) = sin h cos(x l corr) cos h sin(x l corr) x l add small perturbations to the table inputs corr make sin h and cos h 10 to 21 bits closer to machine numbers H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 7 / 25
23 1 Background on sine and cosine evaluation Additive range reduction Table-lookup range reduction Sources of error 2 Error-free table method for sine and cosine implementations Concentration of the error Pythagorean triples 3 Experimental results Exhaustive search Heuristic search Comparisons with other table-based methods 4 Conclusion and perspectives H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 8 / 25
24 Key idea: remove the error on tabulated values x [0, π 4 ] Splitting x into (x h, x l ) Our method: Table lookup x h corr x l Polynomial approximations store exactly sin h and cos h on machine numbers cos h sin h cos(x l corr) sin(x l corr) Reconstruction sin(x) = sin h cos(x l corr) cos h sin(x l corr) concentrate the error on a small corrective term corr H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 9 / 25
25 Pythagorean Triples Let TP and TPP be the sets of pythagorean triples and prime pythagorean triples, respectively. TP = {(a, b, c) N 3 a 2 + b 2 = c 2 } TPP = {(a, b, c) TP a, b, c coprime} c a x b H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 10 / 25
26 Pythagorean Triples Let TP and TPP be the sets of pythagorean triples and prime pythagorean triples, respectively. TP = {(a, b, c) N 3 a 2 + b 2 = c 2 } TPP = {(a, b, c) TP a, b, c coprime} For each pythagorean triple (a, b, c): sin(x) = a c x c b a cos(x) = b c H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 10 / 25
27 How to use PPTs for function evaluation? a sin h x x l x h c cos h b sin(x) = (a cos(x l ) b sin(x l )) c H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 11 / 25
28 Primitive Pythagorean triples generation One easy way: ternary-trees with root (3, 4, 5) 3 linear relationships 3 children/node, e.g: , 2 1 2, H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 12 / 25
29 Primitive Pythagorean triples generation One easy way: ternary-trees with root (3, 4, 5) 3 linear relationships 3 children/node, e.g: , 2 1 2, , 4, 5 5, 12, 13 15, 8, 17 21, 20, 29 H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 12 / 25
30 Primitive Pythagorean triples with c H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 13 / 25
31 Primitive Pythagorean triples with c π/ H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 13 / 25
32 Primitive Pythagorean triples with c π/ H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 13 / 25
33 What are good PPTs? a 2 c 2 a c 1 1 c a 3 3 b 3 b 1 b 2 sin(x) = (a i cos(x l ) b i sin(x l )) c i H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 14 / 25
34 What are good PPTs? A 3 k A 2 k A 1 k B 3 B 2 B 1 sin(x) = A i [cos(x l )/k] B i [sin(x l )/k] H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 14 / 25
35 Actual use of primitive Pythagorean triples For each table entry store exactly A = a c k and B = b c k such that A, B N F 64 H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 15 / 25
36 Actual use of primitive Pythagorean triples For each table entry store exactly A = a c k and B = b c k such that A, B N F 64 Then, incorporate 1 k in polynomial coefficients k should be a small least common multiple (lcm) of any combination of one hypotenuse c per table entry H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 15 / 25
37 Actual use of primitive Pythagorean triples For each table entry store exactly A = a c k and B = b c k such that A, B N F 64 Then, incorporate 1 k in polynomial coefficients k should be a small least common multiple (lcm) of any combination of one hypotenuse c per table entry Reconstruction steps: 1 Table-lookup of A, B, corr 2 Polynomial approximations S l sin(x l corr) k 3 Result reconstruction: and C l cos(x l corr) k sin(x) = A C l B S l H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 15 / 25
38 1 Background on sine and cosine evaluation Additive range reduction Table-lookup range reduction Sources of error 2 Error-free table method for sine and cosine implementations Concentration of the error Pythagorean triples 3 Experimental results Exhaustive search Heuristic search Comparisons with other table-based methods 4 Conclusion and perspectives H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 16 / 25
39 Table generation algorithm Inputs p: table index size H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 17 / 25
40 Table generation algorithm Inputs p: table index size Algorithm steps 1: n 4 2: repeat 3: Generate all PPTs (a, b, c) such that c 2 n. 4: Search for the LCM k among all generated hypotenuses c. 5: n n + 1 6: until such a k is found 7: Build tabulated values (A, B, corr) for every entry. Outputs table with entries of the form table[i] = {A i, B i, corr i } polynomial approximants of sin(x l corr) k and cos(x l corr) k H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 17 / 25
41 Exhaustive search Intel(R) Xeon(R) CPU E GHz (32 cores) 125 GB RAM p k min n Time (s) , , ,676, ,846, e+11 1e+10 1e+09 1e+08 1e+07 1e Triples stored Hypotenuses stored p H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 18 / 25
42 Exhaustive search Intel(R) Xeon(R) CPU E GHz (32 cores) 125 GB RAM p k min n Time (s) , , ,676, ,846, e+11 1e+10 1e+09 1e+08 1e+07 1e Triples stored Hypotenuses stored Tendency for Triples+Hypotenuses p Bottlenecks = searching the lcm and memory Finding k for a 10-bit addressed table is desperate with this exhaustive technique our estimations show that n = log 2 (k min ) 37 H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 18 / 25
43 Heuristic search p k min Prime Factorization Triples 5 130, , ,676, , ,846, ,365,290 Observation: k is always a product of small Pythagorean primes Pythagorean primes less than 70: p = {5, 13, 17, 29, 37, 41, 53, 61} H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 19 / 25
44 Heuristic search p k min Prime Factorization Triples 5 130, , ,676, , ,846, ,365,290 Observation: k is always a product of small Pythagorean primes Pythagorean primes less than 70: p = {5, 13, 17, 29, 37, 41, 53, 61} During the generation, only keep triples with hypotenuse c = i p[i] r i with { r i = 0 or 1 if p[i] 5 r i N if p[i] = 5 H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 19 / 25
45 Heuristic search results Triples stored Hypotenuses stored p k min n Time (s) ,676, ,846, ,061, ,882,250, ,668,520, p Same results as the exhaustive search for 2 p 7 Exponential speedup Exponential memory reduction H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 20 / 25
46 Heuristic gains 1e+07 1e+06 Speedup Memory gain p H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 21 / 25
47 1 Background on sine and cosine evaluation Additive range reduction Table-lookup range reduction Sources of error 2 Error-free table method for sine and cosine implementations Concentration of the error Pythagorean triples 3 Experimental results Exhaustive search Heuristic search Comparisons with other table-based methods 4 Conclusion and perspectives H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 22 / 25
48 Comparisons with other table-based methods Context Correct rounding in double precision 2-step Ziv strategy: Quick phase accurate to 2 66 Accurate phase accurate to Table index size p = 10 bits Method Quick phase Accurate phase Table size (B) Tang 4 MA + 64 FLOP 6 MA FLOP 38,640 Gal 3 MA + 53 FLOP 9 MA FLOP 57,960 Proposed 3 MA + 53 FLOP 5 MA FLOP 32,200 Table-size 45% lower than Gal s Accurate phase 45% more efficient than Gal s H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 23 / 25
49 1 Background on sine and cosine evaluation Additive range reduction Table-lookup range reduction Sources of error 2 Error-free table method for sine and cosine implementations Concentration of the error Pythagorean triples 3 Experimental results Exhaustive search Heuristic search Comparisons with other table-based methods 4 Conclusion and perspectives H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 24 / 25
50 Conclusion and Perspectives In short, we propose: A new algorithm for table-based range reductions: removing the error on two tabulated terms concentrating the error on half the terms in the reconstruction A prototype able to precompute tables up to 10 indexing bits Perspectives: Evaluation of the actual accuracy and performance of sine and cosine implementations (single/double/4096 bit precisions) Apply this technique to other functions Integration in a full code-generation chain (MetaLibm) H. de Lassus Saint-Geniès Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation 25 / 25
51 Range Reduction Based on Pythagorean Triples for Trigonometric Function Evaluation Conférence en Parallélisme, Architecture et Systèmes 2015 Hugues de Lassus Saint-Geniès David Defour Guillaume Revy DALI, Université de Perpignan Via Domitia LIRMM, Université de Montpellier 2 CNRS UMR 5506 July 1 st, 2015
Introduction to Complex Fourier Series
Introduction to Complex Fourier Series Nathan Pflueger 1 December 2014 Fourier series come in two flavors. What we have studied so far are called real Fourier series: these decompose a given periodic function
More informationA new binary floating-point division algorithm and its software implementation on the ST231 processor
19th IEEE Symposium on Computer Arithmetic (ARITH 19) Portland, Oregon, USA, June 8-10, 2009 A new binary floating-point division algorithm and its software implementation on the ST231 processor Claude-Pierre
More informationa cos x + b sin x = R cos(x α)
a cos x + b sin x = R cos(x α) In this unit we explore how the sum of two trigonometric functions, e.g. cos x + 4 sin x, can be expressed as a single trigonometric function. Having the ability to do this
More informationFast Exponential Computation on SIMD Architectures
, HiPEAC15 - WAPCO, Amsterdam (NL) Fast Exponential Computation on SIMD Architectures A. Cristiano I. MALOSSI, Yves INEICHEN, Costas BEKAS and Alessandro CURIONI @ IBM Research Zurich, Switzerland Motivations
More informationMathematics Pre-Test Sample Questions A. { 11, 7} B. { 7,0,7} C. { 7, 7} D. { 11, 11}
Mathematics Pre-Test Sample Questions 1. Which of the following sets is closed under division? I. {½, 1,, 4} II. {-1, 1} III. {-1, 0, 1} A. I only B. II only C. III only D. I and II. Which of the following
More informationExact Values of the Sine and Cosine Functions in Increments of 3 degrees
Exact Values of the Sine and Cosine Functions in Increments of 3 degrees The sine and cosine values for all angle measurements in multiples of 3 degrees can be determined exactly, represented in terms
More information4.3 & 4.8 Right Triangle Trigonometry. Anatomy of Right Triangles
4.3 & 4.8 Right Triangle Trigonometry Anatomy of Right Triangles The right triangle shown at the right uses lower case a, b and c for its sides with c being the hypotenuse. The sides a and b are referred
More informationFFT Algorithms. Chapter 6. Contents 6.1
Chapter 6 FFT Algorithms Contents Efficient computation of the DFT............................................ 6.2 Applications of FFT................................................... 6.6 Computing DFT
More informationGRE Prep: Precalculus
GRE Prep: Precalculus Franklin H.J. Kenter 1 Introduction These are the notes for the Precalculus section for the GRE Prep session held at UCSD in August 2011. These notes are in no way intended to teach
More informationA numerically adaptive implementation of the simplex method
A numerically adaptive implementation of the simplex method József Smidla, Péter Tar, István Maros Department of Computer Science and Systems Technology University of Pannonia 17th of December 2014. 1
More informationTrigonometric Functions: The Unit Circle
Trigonometric Functions: The Unit Circle This chapter deals with the subject of trigonometry, which likely had its origins in the study of distances and angles by the ancient Greeks. The word trigonometry
More informationFMA Implementations of the Compensated Horner Scheme
Reliable Implementation of Real Number Algorithms: Theory and Practice Dagstuhl Seminar 06021 January 08-13, 2006 FMA Implementations of the Compensated Horner Scheme Stef GRAILLAT, Philippe LANGLOIS and
More informationPYTHAGOREAN TRIPLES KEITH CONRAD
PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient
More informationTechniques of Integration
CHPTER 7 Techniques of Integration 7.. Substitution Integration, unlike differentiation, is more of an art-form than a collection of algorithms. Many problems in applied mathematics involve the integration
More informationBig Ideas in Mathematics
Big Ideas in Mathematics which are important to all mathematics learning. (Adapted from the NCTM Curriculum Focal Points, 2006) The Mathematics Big Ideas are organized using the PA Mathematics Standards
More informationFriday, January 29, 2016 9:15 a.m. to 12:15 p.m., only
ALGEBRA /TRIGONOMETRY The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION ALGEBRA /TRIGONOMETRY Friday, January 9, 016 9:15 a.m. to 1:15 p.m., only Student Name: School Name: The possession
More informationMATH BOOK OF PROBLEMS SERIES. New from Pearson Custom Publishing!
MATH BOOK OF PROBLEMS SERIES New from Pearson Custom Publishing! The Math Book of Problems Series is a database of math problems for the following courses: Pre-algebra Algebra Pre-calculus Calculus Statistics
More informationGeometry Notes RIGHT TRIANGLE TRIGONOMETRY
Right Triangle Trigonometry Page 1 of 15 RIGHT TRIANGLE TRIGONOMETRY Objectives: After completing this section, you should be able to do the following: Calculate the lengths of sides and angles of a right
More informationAngles and Quadrants. Angle Relationships and Degree Measurement. Chapter 7: Trigonometry
Chapter 7: Trigonometry Trigonometry is the study of angles and how they can be used as a means of indirect measurement, that is, the measurement of a distance where it is not practical or even possible
More informationPRE-CALCULUS GRADE 12
PRE-CALCULUS GRADE 12 [C] Communication Trigonometry General Outcome: Develop trigonometric reasoning. A1. Demonstrate an understanding of angles in standard position, expressed in degrees and radians.
More informationCHAPTER 5 Round-off errors
CHAPTER 5 Round-off errors In the two previous chapters we have seen how numbers can be represented in the binary numeral system and how this is the basis for representing numbers in computers. Since any
More informationFaster polynomial multiplication via multipoint Kronecker substitution
Faster polynomial multiplication via multipoint Kronecker substitution 5th February 2009 Kronecker substitution KS = an algorithm for multiplying polynomials in Z[x]. Example: f = 41x 3 + 49x 2 + 38x +
More informationAlgebra 2: Themes for the Big Final Exam
Algebra : Themes for the Big Final Exam Final will cover the whole year, focusing on the big main ideas. Graphing: Overall: x and y intercepts, fct vs relation, fct vs inverse, x, y and origin symmetries,
More informationOperation Count; Numerical Linear Algebra
10 Operation Count; Numerical Linear Algebra 10.1 Introduction Many computations are limited simply by the sheer number of required additions, multiplications, or function evaluations. If floating-point
More informationChapter 5 Functions. Introducing Functions
Chapter 5 Functions 1 Introducing Functions A function is a collection of statements that are grouped together to perform an operation Define a function Invoke a funciton return value type method name
More informationSeparable First Order Differential Equations
Separable First Order Differential Equations Form of Separable Equations which take the form = gx hy or These are differential equations = gxĥy, where gx is a continuous function of x and hy is a continuously
More informationExpression. Variable Equation Polynomial Monomial Add. Area. Volume Surface Space Length Width. Probability. Chance Random Likely Possibility Odds
Isosceles Triangle Congruent Leg Side Expression Equation Polynomial Monomial Radical Square Root Check Times Itself Function Relation One Domain Range Area Volume Surface Space Length Width Quantitative
More informationIndexing Properties of Primitive Pythagorean Triples for Cryptography Applications
Indexing Properties of Primitive Pythagorean Triples for Cryptography Applications Yashwanth Kothapalli Oklahoma State University, Stillwater, OK-74078 yashwanth.kothapalli@okstate.edu Abstract: This paper
More information1 TRIGONOMETRY. 1.0 Introduction. 1.1 Sum and product formulae. Objectives
TRIGONOMETRY Chapter Trigonometry Objectives After studying this chapter you should be able to handle with confidence a wide range of trigonometric identities; be able to express linear combinations of
More informationA Direct Method To Generate Pythagorean Triples And Its Generalization To Pythagorean Quadruples And n-tuples
A Direct Method To Generate Pythagorean Triples And Its Generalization To Pythagorean Quadruples And n-tuples Tanay Roy $ Farjana Jaishmin Sonia Department of Physics Jadavpur University Kolkata 700032,
More informationHomework # 3 Solutions
Homework # 3 Solutions February, 200 Solution (2.3.5). Noting that and ( + 3 x) x 8 = + 3 x) by Equation (2.3.) x 8 x 8 = + 3 8 by Equations (2.3.7) and (2.3.0) =3 x 8 6x2 + x 3 ) = 2 + 6x 2 + x 3 x 8
More informationALGEBRA 2/TRIGONOMETRY
ALGEBRA /TRIGONOMETRY The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION ALGEBRA /TRIGONOMETRY Thursday, January 9, 015 9:15 a.m to 1:15 p.m., only Student Name: School Name: The possession
More informationTrigonometry. An easy way to remember trigonometric properties is:
Trigonometry It is possible to solve many force and velocity problems by drawing vector diagrams. However, the degree of accuracy is dependent upon the exactness of the person doing the drawing and measuring.
More informationDifferentiation and Integration
This material is a supplement to Appendix G of Stewart. You should read the appendix, except the last section on complex exponentials, before this material. Differentiation and Integration Suppose we have
More informationTrigonometric Functions and Triangles
Trigonometric Functions and Triangles Dr. Philippe B. Laval Kennesaw STate University August 27, 2010 Abstract This handout defines the trigonometric function of angles and discusses the relationship between
More informationTrigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus
Trigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus Objectives: This is your review of trigonometry: angles, six trig. functions, identities and formulas, graphs:
More informationThe BBP Algorithm for Pi
The BBP Algorithm for Pi David H. Bailey September 17, 2006 1. Introduction The Bailey-Borwein-Plouffe (BBP) algorithm for π is based on the BBP formula for π, which was discovered in 1995 and published
More informationNew Higher-Proposed Order-Combined Approach. Block 1. Lines 1.1 App. Vectors 1.4 EF. Quadratics 1.1 RC. Polynomials 1.1 RC
New Higher-Proposed Order-Combined Approach Block 1 Lines 1.1 App Vectors 1.4 EF Quadratics 1.1 RC Polynomials 1.1 RC Differentiation-but not optimisation 1.3 RC Block 2 Functions and graphs 1.3 EF Logs
More informationSecond Order Linear Differential Equations
CHAPTER 2 Second Order Linear Differential Equations 2.. Homogeneous Equations A differential equation is a relation involving variables x y y y. A solution is a function f x such that the substitution
More informationWith the Tan function, you can calculate the angle of a triangle with one corner of 90 degrees, when the smallest sides of the triangle are given:
Page 1 In game development, there are a lot of situations where you need to use the trigonometric functions. The functions are used to calculate an angle of a triangle with one corner of 90 degrees. By
More informationSAT Subject Math Level 2 Facts & Formulas
Numbers, Sequences, Factors Integers:..., -3, -2, -1, 0, 1, 2, 3,... Reals: integers plus fractions, decimals, and irrationals ( 2, 3, π, etc.) Order Of Operations: Arithmetic Sequences: PEMDAS (Parentheses
More informationSolving Equations and Inequalities
Solving Equations and Inequalities Akram Kalantari Department of Mathematics Yazd University Akram Kalantari Solving Equations and Inequalities 1 / 22 1 Solving for x 2 Declaring Variables 3 Solving Equations
More informationS 2 -RAID: A New RAID Architecture for Fast Data Recovery
S 2 -RAID: A New RAID Architecture for Fast Data Recovery Jiguang Wan*, Jibin Wang*, Qing Yang+, and Changsheng Xie* *Huazhong University of Science and Technology, China +University of Rhode Island,USA
More information4.3 Lagrange Approximation
206 CHAP. 4 INTERPOLATION AND POLYNOMIAL APPROXIMATION Lagrange Polynomial Approximation 4.3 Lagrange Approximation Interpolation means to estimate a missing function value by taking a weighted average
More informationInverse Trig Functions
Inverse Trig Functions c A Math Support Center Capsule February, 009 Introuction Just as trig functions arise in many applications, so o the inverse trig functions. What may be most surprising is that
More informationSouth Carolina College- and Career-Ready (SCCCR) Pre-Calculus
South Carolina College- and Career-Ready (SCCCR) Pre-Calculus Key Concepts Arithmetic with Polynomials and Rational Expressions PC.AAPR.2 PC.AAPR.3 PC.AAPR.4 PC.AAPR.5 PC.AAPR.6 PC.AAPR.7 Standards Know
More informationNIFA NATIONAL SAFECON
NIFA NATIONAL SAFECON 2007 Manual Flight Computer Accuracy Explanations Note to competitor: This will offer some basic help in solving the problems on the test. There is often more than one way to correctly
More informationTHE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0
THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0 RICHARD J. MATHAR Abstract. We count solutions to the Ramanujan-Nagell equation 2 y +n = x 2 for fixed positive n. The computational
More informationCongruent Number Problem
University of Waterloo October 28th, 2015 Number Theory Number theory, can be described as the mathematics of discovering and explaining patterns in numbers. There is nothing in the world which pleases
More informationCS321. Introduction to Numerical Methods
CS3 Introduction to Numerical Methods Lecture Number Representations and Errors Professor Jun Zhang Department of Computer Science University of Kentucky Lexington, KY 40506-0633 August 7, 05 Number in
More informationCryptographic Algorithms and Key Size Issues. Çetin Kaya Koç Oregon State University, Professor http://islab.oregonstate.edu/koc koc@ece.orst.
Cryptographic Algorithms and Key Size Issues Çetin Kaya Koç Oregon State University, Professor http://islab.oregonstate.edu/koc koc@ece.orst.edu Overview Cryptanalysis Challenge Encryption: DES AES Message
More informationRight Triangle Trigonometry
Section 6.4 OBJECTIVE : Right Triangle Trigonometry Understanding the Right Triangle Definitions of the Trigonometric Functions otenuse osite side otenuse acent side acent side osite side We will be concerned
More informationCalculus 1: Sample Questions, Final Exam, Solutions
Calculus : Sample Questions, Final Exam, Solutions. Short answer. Put your answer in the blank. NO PARTIAL CREDIT! (a) (b) (c) (d) (e) e 3 e Evaluate dx. Your answer should be in the x form of an integer.
More informationHow To Test On The Dsms Application
Performance Test Summary Report Skills Development Management System December 2014 Performance Test report submitted to National Skill Development Corporation Version Date Name Summary of Changes 1.0 22/12/2014
More informationTrigonometry for AC circuits
Trigonometry for AC circuits This worksheet and all related files are licensed under the Creative Commons Attribution License, version 1.0. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/,
More informationSecond Order Linear Nonhomogeneous Differential Equations; Method of Undetermined Coefficients. y + p(t) y + q(t) y = g(t), g(t) 0.
Second Order Linear Nonhomogeneous Differential Equations; Method of Undetermined Coefficients We will now turn our attention to nonhomogeneous second order linear equations, equations with the standard
More informationBinary Search Trees. Data in each node. Larger than the data in its left child Smaller than the data in its right child
Binary Search Trees Data in each node Larger than the data in its left child Smaller than the data in its right child FIGURE 11-6 Arbitrary binary tree FIGURE 11-7 Binary search tree Data Structures Using
More informationSolution to Exercise 2.2. Both m and n are divisible by d, som = dk and n = dk. Thus m ± n = dk ± dk = d(k ± k ),som + n and m n are divisible by d.
[Chap. ] Pythagorean Triples 6 (b) The table suggests that in every primitive Pythagorean triple, exactly one of a, b,orc is a multiple of 5. To verify this, we use the Pythagorean Triples Theorem to write
More informationFind the length of the arc on a circle of radius r intercepted by a central angle θ. Round to two decimal places.
SECTION.1 Simplify. 1. 7π π. 5π 6 + π Find the measure of the angle in degrees between the hour hand and the minute hand of a clock at the time shown. Measure the angle in the clockwise direction.. 1:0.
More informationGeneral Certificate of Secondary Education November 2012. Mathematics (Linear) B 4365 Paper 2 Higher Tier. Final. Mark Scheme
General Certificate of Secondary Education November 2012 Mathematics (Linear) B 4365 Paper 2 Higher Tier Final Mark Scheme Mark schemes are prepared by the Principal Examiner and considered, together with
More informationSOLVING TRIGONOMETRIC EQUATIONS
Mathematics Revision Guides Solving Trigonometric Equations Page 1 of 17 M.K. HOME TUITION Mathematics Revision Guides Level: AS / A Level AQA : C2 Edexcel: C2 OCR: C2 OCR MEI: C2 SOLVING TRIGONOMETRIC
More informationWeek 13 Trigonometric Form of Complex Numbers
Week Trigonometric Form of Complex Numbers Overview In this week of the course, which is the last week if you are not going to take calculus, we will look at how Trigonometry can sometimes help in working
More informationLies My Calculator and Computer Told Me
Lies My Calculator and Computer Told Me 2 LIES MY CALCULATOR AND COMPUTER TOLD ME Lies My Calculator and Computer Told Me See Section.4 for a discussion of graphing calculators and computers with graphing
More informationIntroduction Assignment
PRE-CALCULUS 11 Introduction Assignment Welcome to PREC 11! This assignment will help you review some topics from a previous math course and introduce you to some of the topics that you ll be studying
More informationCourse outline, MA 113, Spring 2014 Part A, Functions and limits. 1.1 1.2 Functions, domain and ranges, A1.1-1.2-Review (9 problems)
Course outline, MA 113, Spring 2014 Part A, Functions and limits 1.1 1.2 Functions, domain and ranges, A1.1-1.2-Review (9 problems) Functions, domain and range Domain and range of rational and algebraic
More informationPrecision & Performance: Floating Point and IEEE 754 Compliance for NVIDIA GPUs
Precision & Performance: Floating Point and IEEE 754 Compliance for NVIDIA GPUs Nathan Whitehead Alex Fit-Florea ABSTRACT A number of issues related to floating point accuracy and compliance are a frequent
More informationCR-LIBM A library of correctly rounded elementary functions in double-precision
CR-LIBM A library of correctly rounded elementary functions in double-precision Catherine Daramy-Loirat, David Defour, Florent de Dinechin, Matthieu Gallet, Nicolas Gast, Jean-Michel Muller September 16,
More informationEuler s Formula Math 220
Euler s Formula Math 0 last change: Sept 3, 05 Complex numbers A complex number is an expression of the form x+iy where x and y are real numbers and i is the imaginary square root of. For example, + 3i
More informationCHAPTER 7 TRAVERSE Section I. SELECTION OF TRAVERSE DEFINITION
CHAPTER 7 TRAVERSE Section I. SELECTION OF TRAVERSE DEFINITION A traverse is a series of straight lines called traverse legs. The surveyor uses them to connect a series of selected points called traverse
More informationSimple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language
Simple C++ Programs Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input and Output Basic Functions from
More informationWho Wants to Be a Mathematician: Beginner's Guide for Students
Who Wants to Be a Mathematician: Beginner's Guide for Students Copyright Maplesoft, a division of Waterloo Maple Inc. 2013 Contents Preface... v 1 Who Wants to Be a Mathematician: Beginner's Guide for
More informationLabStats 5 System Requirements
LabStats Tel: 877-299-6241 255 B St, Suite 201 Fax: 208-473-2989 Idaho Falls, ID 83402 LabStats 5 System Requirements Server Component Virtual Servers: There is a limit to the resources available to virtual
More informationALGEBRA 2/TRIGONOMETRY
ALGEBRA /TRIGONOMETRY The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION ALGEBRA /TRIGONOMETRY Tuesday, June 1, 011 1:15 to 4:15 p.m., only Student Name: School Name: Print your name
More informationSPARC64 VIIIfx: CPU for the K computer
SPARC64 VIIIfx: CPU for the K computer Toshio Yoshida Mikio Hondo Ryuji Kan Go Sugizaki SPARC64 VIIIfx, which was developed as a processor for the K computer, uses Fujitsu Semiconductor Ltd. s 45-nm CMOS
More informationCORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA
We Can Early Learning Curriculum PreK Grades 8 12 INSIDE ALGEBRA, GRADES 8 12 CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA April 2016 www.voyagersopris.com Mathematical
More informationAdaptive Stable Additive Methods for Linear Algebraic Calculations
Adaptive Stable Additive Methods for Linear Algebraic Calculations József Smidla, Péter Tar, István Maros University of Pannonia Veszprém, Hungary 4 th of July 204. / 2 József Smidla, Péter Tar, István
More informationMEMORANDUM. All students taking the CLC Math Placement Exam PLACEMENT INTO CALCULUS AND ANALYTIC GEOMETRY I, MTH 145:
MEMORANDUM To: All students taking the CLC Math Placement Eam From: CLC Mathematics Department Subject: What to epect on the Placement Eam Date: April 0 Placement into MTH 45 Solutions This memo is an
More informationReturn of the hardware floating-point elementary function
Return of the hardware floating-point elementary function Jérémie Detrey Florent de Dinechin Xavier Pujol LIP, École Normale Supérieure de Lyon 46 allée d Italie 69364 Lyon cedex 07, France {Jeremie.Detrey,
More informationFinal Exam Review: VBA
Engineering Fundamentals ENG1100 - Session 14B Final Exam Review: VBA 1 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi Final Programming Exam Topics Flowcharts Assigning Variables
More informationBinary search tree with SIMD bandwidth optimization using SSE
Binary search tree with SIMD bandwidth optimization using SSE Bowen Zhang, Xinwei Li 1.ABSTRACT In-memory tree structured index search is a fundamental database operation. Modern processors provide tremendous
More information1 Review of Least Squares Solutions to Overdetermined Systems
cs4: introduction to numerical analysis /9/0 Lecture 7: Rectangular Systems and Numerical Integration Instructor: Professor Amos Ron Scribes: Mark Cowlishaw, Nathanael Fillmore Review of Least Squares
More informationFX 260 Training guide. FX 260 Solar Scientific Calculator Overhead OH 260. Applicable activities
Tools Handouts FX 260 Solar Scientific Calculator Overhead OH 260 Applicable activities Key Points/ Overview Basic scientific calculator Solar powered Ability to fix decimal places Backspace key to fix
More informationThe Green Index: A Metric for Evaluating System-Wide Energy Efficiency in HPC Systems
202 IEEE 202 26th IEEE International 26th International Parallel Parallel and Distributed and Distributed Processing Processing Symposium Symposium Workshops Workshops & PhD Forum The Green Index: A Metric
More informationRight Triangles A right triangle, as the one shown in Figure 5, is a triangle that has one angle measuring
Page 1 9 Trigonometry of Right Triangles Right Triangles A right triangle, as the one shown in Figure 5, is a triangle that has one angle measuring 90. The side opposite to the right angle is the longest
More informationx 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1
Implicit Functions Defining Implicit Functions Up until now in this course, we have only talked about functions, which assign to every real number x in their domain exactly one real number f(x). The graphs
More information1. Introduction circular definition Remark 1 inverse trigonometric functions
1. Introduction In Lesson 2 the six trigonometric functions were defined using angles determined by points on the unit circle. This is frequently referred to as the circular definition of the trigonometric
More informationData Structures and Algorithms
Data Structures and Algorithms Computational Complexity Escola Politècnica Superior d Alcoi Universitat Politècnica de València Contents Introduction Resources consumptions: spatial and temporal cost Costs
More informationApproximating functions by Taylor Polynomials.
Chapter 4 Approximating functions by Taylor Polynomials. 4.1 Linear Approximations We have already seen how to approximate a function using its tangent line. This was the key idea in Euler s method. If
More informationGeorgia Department of Education Kathy Cox, State Superintendent of Schools 7/19/2005 All Rights Reserved 1
Accelerated Mathematics 3 This is a course in precalculus and statistics, designed to prepare students to take AB or BC Advanced Placement Calculus. It includes rational, circular trigonometric, and inverse
More informationC. Complex Numbers. 1. Complex arithmetic.
C. Complex Numbers. Complex arithmetic. Most people think that complex numbers arose from attempts to solve quadratic equations, but actually it was in connection with cubic equations they first appeared.
More informationNumerical Analysis I
Numerical Analysis I M.R. O Donohoe References: S.D. Conte & C. de Boor, Elementary Numerical Analysis: An Algorithmic Approach, Third edition, 1981. McGraw-Hill. L.F. Shampine, R.C. Allen, Jr & S. Pruess,
More informationINVERSE TRIGONOMETRIC FUNCTIONS. Colin Cox
INVERSE TRIGONOMETRIC FUNCTIONS Colin Cox WHAT IS AN INVERSE TRIG FUNCTION? Used to solve for the angle when you know two sides of a right triangle. For example if a ramp is resting against a trailer,
More informationMath Placement Test Practice Problems
Math Placement Test Practice Problems The following problems cover material that is used on the math placement test to place students into Math 1111 College Algebra, Math 1113 Precalculus, and Math 2211
More informationHigh School Geometry Test Sampler Math Common Core Sampler Test
High School Geometry Test Sampler Math Common Core Sampler Test Our High School Geometry sampler covers the twenty most common questions that we see targeted for this level. For complete tests and break
More informationREVIEW EXERCISES DAVID J LOWRY
REVIEW EXERCISES DAVID J LOWRY Contents 1. Introduction 1 2. Elementary Functions 1 2.1. Factoring and Solving Quadratics 1 2.2. Polynomial Inequalities 3 2.3. Rational Functions 4 2.4. Exponentials and
More informationANALYSIS OF RSA ALGORITHM USING GPU PROGRAMMING
ANALYSIS OF RSA ALGORITHM USING GPU PROGRAMMING Sonam Mahajan 1 and Maninder Singh 2 1 Department of Computer Science Engineering, Thapar University, Patiala, India 2 Department of Computer Science Engineering,
More informationBiggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress
Biggar High School Mathematics Department National 5 Learning Intentions & Success Criteria: Assessing My Progress Expressions & Formulae Topic Learning Intention Success Criteria I understand this Approximation
More informationCORDIC: How Hand Calculators Calculate
Integre Technical Publishing Co., Inc. College Mathematics Journal 40: December 7, 008 :49 p.m. sultan.tex page 87 CORDIC: How Hand Calculators Calculate Alan Sultan Alan Sultan is a professor of mathematics
More informationMapReduce and Distributed Data Analysis. Sergei Vassilvitskii Google Research
MapReduce and Distributed Data Analysis Google Research 1 Dealing With Massive Data 2 2 Dealing With Massive Data Polynomial Memory Sublinear RAM Sketches External Memory Property Testing 3 3 Dealing With
More informationSolutions to Exercises, Section 5.1
Instructor s Solutions Manual, Section 5.1 Exercise 1 Solutions to Exercises, Section 5.1 1. Find all numbers t such that ( 1 3,t) is a point on the unit circle. For ( 1 3,t)to be a point on the unit circle
More information