SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 991
Parallelization of Definite Integration
Yash Bhojwani1, Rishab Singh2
1,2Student, SCOPE, Vellore Institute of Technology, Vellore, Tamil Nadu, India
--------------------------------------------------------------------------------***------------------------------------------------------------------------------
Abstract - Many areas of science and technology has shown a fast increase in many areas with the help of computational science.
Efficient collaboration in interdisciplinary groups performed by computational scientists and engineers is in a growing demand.
Courses on numerical analysis and parallel computing requires training such specialists includes. Definite integration is a method
to find the area under the curve and to find definite integrals is very important in many fields. Sometimes finding definite integral
can take a lot of time as the task is compute intensive and finding accurate and fast numeric result is very important. Hence, the
role of parallelization comes in. Using PDC will divide the problem into sub-problems such that every sub-problem is independent
of each other, hence increasing the computational speed till a great extent. In this research paper we present Parallel Numerical
Methods which bridges the gap between theoretical aspects of numerical methods and issues of implementation for modern
multicore and manycore systems. This research paper helps in the process of calculating the time difference between parallel and
serial computing.
Keyword — Parallelization; Definite Integrals; Distributed computing; Numerical Analysis; Parallel algorithms;
Definite Calculus; Integrals; Integration
1. INTRODUCTION
Basic difficulties in the field of computer science and engineering majorly includes numerical computation of a definite
integral of a function. Therefore, to increase the efficiency of algorithm, substantial efforts have been made to find different
methods to exploit the power of advanced computer architectures like multi-core computer. The motivation for parallelizing
the integration formula originates from the fact that the evaluation of an integral over an interval can be obtained by dividing
the interval into smaller subintervals, and then summing up the individual evaluations of the integral over the subintervals.
This is equivalent to the evaluation of the integral over different subintervals on different processors, and later summing the
results obtained from all of processors. Evaluation of numerical integrals in engineering problems can take a considerable
amount of time.
Theoretically, we found that parallel algorithm can provides solution of numerical integration better and efficiently when the
evaluation of function is time consuming. With the availability of parallel technologies and resources, it becomes essential to
develop a parallel algorithm for numerical integration and to test the results and performance of algorithms.
In this paper following techniques will be used to calculate numerical integration:
• Gaussian Quadrature
• Simpsons 1/3 rule
2. ALGORITHM
Simpsons Rule:
Using the midpoint rule, we approximated regions of area under curves by taking rectangles. In simple words, we estimated
the curve with piecewise constant functions. Using the trapezoidal rule, we estimate the area under the curve using piecewise
linear functions. Using Simpson’s rule, we estimate = ∫( ) a curve using piecewise linear functions. We divided the interval
into an even number of sub intervals, each of them having equal width.
Over the first pair of subintervals we approximate ∫ ( ) ( ) with ∫ ( ) ( ) , where
p(x)=Ax2+Bx+Cp(x)=Ax2+Bx+C is the quadratic function passing through (x0,f(x0)),(x1,f(x1)),(x0,f(x0)),(x1,f(x1)) and
(x2,f(x2))(x2,f(x2)) (Figure 1).
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 992
Over the next pair of subintervals, we approximate x4x2f(x)dx x2x4f(x)dx with the integral of another quadratic function
passing through (x2,f(x2)),(x3,f(x3)),(x2,f(x2)),(x3,f(x3)), and (x4,f(x4)).(x4,f(x4)). This process is continued with each
upcoming pair of subintervals
Figure 1 Defining area under curve
To understand the formula that we obtain for Simpson’s rule, we begin by deriving a formula for this approximation over the
first two subintervals. As we go through the derivation, we need to keep in mind the following relationships:
f (x0) = p(x0) = Ax20 + Bx0 + C
f (x1) = p(x1) = Ax21 + Bx1 + C
f (x2) = p(x2) = Ax22 + Bx2 + C
x2−x0=2∆x, where ∆x is the length of a subinterval.
x2+x0=2x1 since x1=(x2+x0)/2
Thus, x2x0f (x)dx
≈ ∫ ( )
= ∫ ( )
=(A3x3 + B2x2 + Cx) ||| x2x0
= A3(x32 − x30) + B2(x22 − x20) + C (x2 − x0)
= A3(x2 − x0) (x22 + x2x0 + x20) + B2(x2 − x0) (x2 + x0) + C (x2 − x0)
= x2 − x06(2A (x22 + x2x0 + x20) + 3B (x2 + x0) + 6C)
=∆x3((Ax22 + Bx2 + C) + (Ax20 + Bx0 + C) + A (x22 + 2x2x0 + x20)
=∆x3(f (x2) + f (x0) + A (x2 + x0)2 + 2B (x2 + x0) + 4C)
=∆x3(f (x2) + f (x0) + A(2x1)2 + 2B(2x1) + 4C)
=∆x3(f (x2) + 4f (x1) + f (x0)) x2x0f (x)dx
=∫ ( )
=∫ ( )
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 993
= (A3x3 + B2x2 + Cx) ||| x2x0 = A3(x32 − x30) + B2(x22 − x20) + C
= A3(x2 − x0) (x22 + x2x0 + x20) + B2(x2 − x0) (x2 + x0) + C (x2 − x0
= x2 − x06(2A (x22 + x2x0 + x20) + 3B (x2 + x0) + 6C)
=∆x3((Ax22 + Bx2 + C) + (Ax20 + Bx0 + C) + A (x22 + 2x2x0 + x20)
=∆x3(f (x2) + f (x0) + A (x2 + x0)2 + 2B (x2 + x0) + 4C) = ∆x3(f (x2)
=∆x3(f (x2) + 4f (x1) + f (x0))
Assume that f(x)f(x) is continuous over
[a,b][a,b]. Let nn be a positive even integer and ∆x=b−an∆x=b−an. Let [a,b][a,b] be divided into nn subintervals, each of length
∆x∆x, with endpoints at-
P={x0,x1,x2,...,xn}.P={x0,x1,x2,...,xn}. Set then we will get the following algorithm:
1. Given a function f(x):
2.(Get user inputs)
Input
a,b=endpoints of interval n=number of intervals
(Do the integration)
3.Set h= (b-a)/n.
4.Set sum=0.
5.Start For i= 1 to n -1
Apply x =a + h*i.
If i%2=0
Next Change sum=sum+2*f(x)
Else
Set sum=sum+4*f(x) End For
6. Set sum = sum + f(a)+f(b)
7. Set ans = sum*(h/3).
8. End
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 994
Figure 1 Flow chart for Simpson’s rule algorithm
Gaussian Quadrature
Quadrature rule stated as a weighted sum of function values at specified points in a particular domain of integration, is
basically an approximation based on the definite integral of a function in this rule a definite integral is first divided into n
number of parts and then area is calculated for each part. The sum of area of each part results in approximate value of the
definite integral. Greater the number of parts the graph is divided into means more accurate value and vice versa. The approx.
value of a definite integral can be calculated using the following formula.
1. Given a function f(x): Formula of quadrature is given by
∫ ( ) ( ∑ ∑ )
∫ ( )=∑ ( (( ) ) ( ))
Algorithm:
1. Given a function f(x):
2. (Get user inputs)
Input
a,b=endpoints of interval
n=number of intervals
(Do the integration)
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 995
3. Set sum=0.
4. Begin For i= 1 to n -1
Set x = ((n-i-1)*a+(i)*b)/(n-1)
Set sum=sum+f(x)
End For
4. Set sum = (b-a)*sum/n
5. Set ans = sum
6. End
Figure 2. Flowchart for Gaussian Quadrature algorithm
3. APPLICATION OF NUMERICAL INTEGRATION
It helps to:
• Find the area.
• Locate the centroid.
• Find the arc length of a graph.
• Calculate the surface area of a solid.
• Calculate the volume of a figure.
• Solve for the work done.
• Solve the moment of inertia.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 996
• It is also used to find Sectional area.
• Waterplane area.
• Submerged volume.
• Longitudinal center of floatation (LCF).
• Vertical center of buoyancy (VCB).
4. RESULT
Given two rules are beneficial to find the value of those definite integrals whose integration is either can’t be found or is
complicated. Parallel computation is faster when the calculation is big else for small calculations the parallel computation
results in more time consuming when compared with serial computing. In our task to find integral we need to divide the graph
in many parts to get more accurate value, so parallel computation is beneficial to us. Here for f(x)= x2 a considerable change is
seen in both the algorithms. Also, it can be seen that Simpson’s rule is faster as compared to Gaussian quadratic rule.
5. CONCLUSION
The Simpson method with smaller segmentation give better estimates with smaller errors than the Quadrature method.
Simpson’s rule takes less computation time than quadrature rule. Parallel computing with more iterations (smaller segments)
takes less time than serial computation.
6. REFERENCES
[1] M. Concepcion Ausin, 2007, an introduction to quadrature and other numerical integration techniques, Encyclopedia of
Statistics in Quality and reliability. Chichester, England.
[2] Gordon K. Smith, 2004, Numerical Integration, Encyclopedia of Biostatistics.2nd edition, Vol-6
[3] Rajesh Kumar Sinha, Rakesh Kumar ,2010, Numerical method for evaluating the integrable function on a finite interval,
International Journal of Engineering Science and Technology.Vol-2(6)
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 997
[4] Gerry Sozio, 2009, Numerical Integration, Australian Senior Mathematics Journal, Vol-23(1)
[5] J. Oliver, 1971, The evaluation of definite integrals using high-order formulae, The Computer Journal, Vol-14(3)
[6] S.S Sastry, 2007, Introductory Method of Numerical Analysis, Fourth Edition, Prentice hall of India Private Limited.
[7] Richard L. Burden, 2007, Numerical Analysis, Seven Edition, International Thomson Publishing Company.
[8] Jonh H. Mathew, 2000, Numerical Method for Mathematics, Science and Engineering, Second Edition, Prentice Hall of
India Private Limited.
[9] Andrews, G. R. (1999). Foundations of Parallel and Distributed Programming. 1st.
[10] Mathews, J. H., & Fink, K. D. (2004). Numerical methods using MATLAB (Vol. 4). Upper Saddle RiveNJ: Pearson Prentice
Hall.
[11] Stoer, J., & Bulirsch, R. (2013). Introduction to numerical analysis (Vol. 12). Springer Science & Business Media.
[12] Bastrakov, S., Meyerov, I., Gergel, V., Gonoskov, A., Gorshkov, A., Efimenko, E& Petrov, V.(2013). High performance
computing in biomedical applications. Procedia Computer Science, 18, 10-19.
[13] Jeffers, J., & Reinders, J. (2015). High performance parallelism pearls volume two: multicore and many-core
programming approaches. Morgan Kaufmann.

More Related Content

PDF
SINGLE‐PHASE TO THREE‐PHASE DRIVE SYSTEM USING TWO PARALLEL SINGLE‐PHASE RECT...
PDF
Area and power performance analysis of floating point ALU using pipelining
PDF
Elliptic curve scalar multiplier using karatsuba
PDF
An Efficient Elliptic Curve Cryptography Arithmetic Using Nikhilam Multiplica...
PDF
Moment Preserving Approximation of Independent Components for the Reconstruct...
PDF
IRJET- Matrix Multiplication using Strassen’s Method
PDF
Design and Implementation of Fixed Point Arithmetic Unit
PDF
Permonace Modeling of Pipelined Linear Algebra Architectures on ASIC
SINGLE‐PHASE TO THREE‐PHASE DRIVE SYSTEM USING TWO PARALLEL SINGLE‐PHASE RECT...
Area and power performance analysis of floating point ALU using pipelining
Elliptic curve scalar multiplier using karatsuba
An Efficient Elliptic Curve Cryptography Arithmetic Using Nikhilam Multiplica...
Moment Preserving Approximation of Independent Components for the Reconstruct...
IRJET- Matrix Multiplication using Strassen’s Method
Design and Implementation of Fixed Point Arithmetic Unit
Permonace Modeling of Pipelined Linear Algebra Architectures on ASIC

What's hot (20)

PDF
Hardware Implementation of Two’s Compliment Multiplier with Partial Product b...
PPTX
Topic 2
PDF
Optimization Techniques
PDF
SCS-MCSA- Based Architecture for Montgomery Modular Multiplication
PDF
Optimization of Time Restriction in Construction Project Management Using Lin...
PDF
SKuehn_MachineLearningAndOptimization_2015
PDF
An approach to model reduction of logistic networks based on ranking
PDF
Ijciras1101
PDF
EFFINET - Initial Presentation
PDF
IRJET- FPGA Implementation of Low Power Configurable Adder for Approximate Co...
PDF
Sequences classification based on group technology
PPT
Double Patterning
PPT
Project seminar ppt_steelcasting
PPTX
Kyle DiGirolamo octave project summary
PDF
A New Approach to Design a Reduced Order Observer
PDF
Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...
PDF
Analysis of GF (2m) Multiplication Algorithm: Classic Method v/s Karatsuba-Of...
PPT
Double Patterning
PDF
Sequences classification based on group technology for flexible manufacturing...
PDF
Compressor based approximate multiplier architectures for media processing ap...
Hardware Implementation of Two’s Compliment Multiplier with Partial Product b...
Topic 2
Optimization Techniques
SCS-MCSA- Based Architecture for Montgomery Modular Multiplication
Optimization of Time Restriction in Construction Project Management Using Lin...
SKuehn_MachineLearningAndOptimization_2015
An approach to model reduction of logistic networks based on ranking
Ijciras1101
EFFINET - Initial Presentation
IRJET- FPGA Implementation of Low Power Configurable Adder for Approximate Co...
Sequences classification based on group technology
Double Patterning
Project seminar ppt_steelcasting
Kyle DiGirolamo octave project summary
A New Approach to Design a Reduced Order Observer
Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...
Analysis of GF (2m) Multiplication Algorithm: Classic Method v/s Karatsuba-Of...
Double Patterning
Sequences classification based on group technology for flexible manufacturing...
Compressor based approximate multiplier architectures for media processing ap...
Ad

Similar to IRJET- Parallelization of Definite Integration (20)

PDF
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
PDF
Implementation of an Effective Self-Timed Multiplier for Single Precision Flo...
PDF
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
PDF
IRJET- Implementation of Radix-16 and Binary 64 Division VLSI Realization...
PDF
High Speed and Area Efficient Matrix Multiplication using Radix-4 Booth Multi...
PDF
IRJET- Efficient Design of Radix Booth Multiplier
PDF
IRJET - Comparison of Vedic, Wallac Tree and Array Multipliers
PDF
IRJET - Radius Approach for Inverse Kinematics of 4-R Manipulator in Spatial ...
PDF
High-Speed and Energy-Efficient MAC Design using Vedic Multiplier and Carry S...
PDF
Sensitivity Analysis of Bread Production at Anifowose Bakery Industry, Offa, ...
PDF
An Analysis of Energy Efficient Gaussian Filter Architectures
PDF
IRJET- Interactive Image Segmentation with Seed Propagation
PDF
IRJET - Distributed Arithmetic Method for Complex Multiplication
PDF
The Computation Complexity Reduction of 2-D Gaussian Filter
PDF
Ax03303120316
PDF
IE-301_OptionalProject_Group2_Report
PDF
Fuzzy Logic based watermarking using non – blind HVS technique
PDF
IRJET- Effect of Design Parameters on Load Carrying Capacity and Fatigue Life...
PDF
A Hybrid Data Clustering Approach using K-Means and Simplex Method-based Bact...
PDF
IRJET- Implementation of FIR Filter using Self Tested 2n-2k-1 Modulo Adder
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
Implementation of an Effective Self-Timed Multiplier for Single Precision Flo...
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
IRJET- Implementation of Radix-16 and Binary 64 Division VLSI Realization...
High Speed and Area Efficient Matrix Multiplication using Radix-4 Booth Multi...
IRJET- Efficient Design of Radix Booth Multiplier
IRJET - Comparison of Vedic, Wallac Tree and Array Multipliers
IRJET - Radius Approach for Inverse Kinematics of 4-R Manipulator in Spatial ...
High-Speed and Energy-Efficient MAC Design using Vedic Multiplier and Carry S...
Sensitivity Analysis of Bread Production at Anifowose Bakery Industry, Offa, ...
An Analysis of Energy Efficient Gaussian Filter Architectures
IRJET- Interactive Image Segmentation with Seed Propagation
IRJET - Distributed Arithmetic Method for Complex Multiplication
The Computation Complexity Reduction of 2-D Gaussian Filter
Ax03303120316
IE-301_OptionalProject_Group2_Report
Fuzzy Logic based watermarking using non – blind HVS technique
IRJET- Effect of Design Parameters on Load Carrying Capacity and Fatigue Life...
A Hybrid Data Clustering Approach using K-Means and Simplex Method-based Bact...
IRJET- Implementation of FIR Filter using Self Tested 2n-2k-1 Modulo Adder
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

PPTX
Lecture Notes Electrical Wiring System Components
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
Mechanical Engineering MATERIALS Selection
PPTX
web development for engineering and engineering
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Construction Project Organization Group 2.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Geodesy 1.pptx...............................................
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
DOCX
573137875-Attendance-Management-System-original
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
additive manufacturing of ss316l using mig welding
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Lecture Notes Electrical Wiring System Components
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mechanical Engineering MATERIALS Selection
web development for engineering and engineering
OOP with Java - Java Introduction (Basics)
CYBER-CRIMES AND SECURITY A guide to understanding
Construction Project Organization Group 2.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Geodesy 1.pptx...............................................
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
573137875-Attendance-Management-System-original
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
additive manufacturing of ss316l using mig welding
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
UNIT 4 Total Quality Management .pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Internet of Things (IOT) - A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx

IRJET- Parallelization of Definite Integration

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 991 Parallelization of Definite Integration Yash Bhojwani1, Rishab Singh2 1,2Student, SCOPE, Vellore Institute of Technology, Vellore, Tamil Nadu, India --------------------------------------------------------------------------------***------------------------------------------------------------------------------ Abstract - Many areas of science and technology has shown a fast increase in many areas with the help of computational science. Efficient collaboration in interdisciplinary groups performed by computational scientists and engineers is in a growing demand. Courses on numerical analysis and parallel computing requires training such specialists includes. Definite integration is a method to find the area under the curve and to find definite integrals is very important in many fields. Sometimes finding definite integral can take a lot of time as the task is compute intensive and finding accurate and fast numeric result is very important. Hence, the role of parallelization comes in. Using PDC will divide the problem into sub-problems such that every sub-problem is independent of each other, hence increasing the computational speed till a great extent. In this research paper we present Parallel Numerical Methods which bridges the gap between theoretical aspects of numerical methods and issues of implementation for modern multicore and manycore systems. This research paper helps in the process of calculating the time difference between parallel and serial computing. Keyword — Parallelization; Definite Integrals; Distributed computing; Numerical Analysis; Parallel algorithms; Definite Calculus; Integrals; Integration 1. INTRODUCTION Basic difficulties in the field of computer science and engineering majorly includes numerical computation of a definite integral of a function. Therefore, to increase the efficiency of algorithm, substantial efforts have been made to find different methods to exploit the power of advanced computer architectures like multi-core computer. The motivation for parallelizing the integration formula originates from the fact that the evaluation of an integral over an interval can be obtained by dividing the interval into smaller subintervals, and then summing up the individual evaluations of the integral over the subintervals. This is equivalent to the evaluation of the integral over different subintervals on different processors, and later summing the results obtained from all of processors. Evaluation of numerical integrals in engineering problems can take a considerable amount of time. Theoretically, we found that parallel algorithm can provides solution of numerical integration better and efficiently when the evaluation of function is time consuming. With the availability of parallel technologies and resources, it becomes essential to develop a parallel algorithm for numerical integration and to test the results and performance of algorithms. In this paper following techniques will be used to calculate numerical integration: • Gaussian Quadrature • Simpsons 1/3 rule 2. ALGORITHM Simpsons Rule: Using the midpoint rule, we approximated regions of area under curves by taking rectangles. In simple words, we estimated the curve with piecewise constant functions. Using the trapezoidal rule, we estimate the area under the curve using piecewise linear functions. Using Simpson’s rule, we estimate = ∫( ) a curve using piecewise linear functions. We divided the interval into an even number of sub intervals, each of them having equal width. Over the first pair of subintervals we approximate ∫ ( ) ( ) with ∫ ( ) ( ) , where p(x)=Ax2+Bx+Cp(x)=Ax2+Bx+C is the quadratic function passing through (x0,f(x0)),(x1,f(x1)),(x0,f(x0)),(x1,f(x1)) and (x2,f(x2))(x2,f(x2)) (Figure 1).
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 992 Over the next pair of subintervals, we approximate x4x2f(x)dx x2x4f(x)dx with the integral of another quadratic function passing through (x2,f(x2)),(x3,f(x3)),(x2,f(x2)),(x3,f(x3)), and (x4,f(x4)).(x4,f(x4)). This process is continued with each upcoming pair of subintervals Figure 1 Defining area under curve To understand the formula that we obtain for Simpson’s rule, we begin by deriving a formula for this approximation over the first two subintervals. As we go through the derivation, we need to keep in mind the following relationships: f (x0) = p(x0) = Ax20 + Bx0 + C f (x1) = p(x1) = Ax21 + Bx1 + C f (x2) = p(x2) = Ax22 + Bx2 + C x2−x0=2∆x, where ∆x is the length of a subinterval. x2+x0=2x1 since x1=(x2+x0)/2 Thus, x2x0f (x)dx ≈ ∫ ( ) = ∫ ( ) =(A3x3 + B2x2 + Cx) ||| x2x0 = A3(x32 − x30) + B2(x22 − x20) + C (x2 − x0) = A3(x2 − x0) (x22 + x2x0 + x20) + B2(x2 − x0) (x2 + x0) + C (x2 − x0) = x2 − x06(2A (x22 + x2x0 + x20) + 3B (x2 + x0) + 6C) =∆x3((Ax22 + Bx2 + C) + (Ax20 + Bx0 + C) + A (x22 + 2x2x0 + x20) =∆x3(f (x2) + f (x0) + A (x2 + x0)2 + 2B (x2 + x0) + 4C) =∆x3(f (x2) + f (x0) + A(2x1)2 + 2B(2x1) + 4C) =∆x3(f (x2) + 4f (x1) + f (x0)) x2x0f (x)dx =∫ ( ) =∫ ( )
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 993 = (A3x3 + B2x2 + Cx) ||| x2x0 = A3(x32 − x30) + B2(x22 − x20) + C = A3(x2 − x0) (x22 + x2x0 + x20) + B2(x2 − x0) (x2 + x0) + C (x2 − x0 = x2 − x06(2A (x22 + x2x0 + x20) + 3B (x2 + x0) + 6C) =∆x3((Ax22 + Bx2 + C) + (Ax20 + Bx0 + C) + A (x22 + 2x2x0 + x20) =∆x3(f (x2) + f (x0) + A (x2 + x0)2 + 2B (x2 + x0) + 4C) = ∆x3(f (x2) =∆x3(f (x2) + 4f (x1) + f (x0)) Assume that f(x)f(x) is continuous over [a,b][a,b]. Let nn be a positive even integer and ∆x=b−an∆x=b−an. Let [a,b][a,b] be divided into nn subintervals, each of length ∆x∆x, with endpoints at- P={x0,x1,x2,...,xn}.P={x0,x1,x2,...,xn}. Set then we will get the following algorithm: 1. Given a function f(x): 2.(Get user inputs) Input a,b=endpoints of interval n=number of intervals (Do the integration) 3.Set h= (b-a)/n. 4.Set sum=0. 5.Start For i= 1 to n -1 Apply x =a + h*i. If i%2=0 Next Change sum=sum+2*f(x) Else Set sum=sum+4*f(x) End For 6. Set sum = sum + f(a)+f(b) 7. Set ans = sum*(h/3). 8. End
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 994 Figure 1 Flow chart for Simpson’s rule algorithm Gaussian Quadrature Quadrature rule stated as a weighted sum of function values at specified points in a particular domain of integration, is basically an approximation based on the definite integral of a function in this rule a definite integral is first divided into n number of parts and then area is calculated for each part. The sum of area of each part results in approximate value of the definite integral. Greater the number of parts the graph is divided into means more accurate value and vice versa. The approx. value of a definite integral can be calculated using the following formula. 1. Given a function f(x): Formula of quadrature is given by ∫ ( ) ( ∑ ∑ ) ∫ ( )=∑ ( (( ) ) ( )) Algorithm: 1. Given a function f(x): 2. (Get user inputs) Input a,b=endpoints of interval n=number of intervals (Do the integration)
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 995 3. Set sum=0. 4. Begin For i= 1 to n -1 Set x = ((n-i-1)*a+(i)*b)/(n-1) Set sum=sum+f(x) End For 4. Set sum = (b-a)*sum/n 5. Set ans = sum 6. End Figure 2. Flowchart for Gaussian Quadrature algorithm 3. APPLICATION OF NUMERICAL INTEGRATION It helps to: • Find the area. • Locate the centroid. • Find the arc length of a graph. • Calculate the surface area of a solid. • Calculate the volume of a figure. • Solve for the work done. • Solve the moment of inertia.
  • 6. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 996 • It is also used to find Sectional area. • Waterplane area. • Submerged volume. • Longitudinal center of floatation (LCF). • Vertical center of buoyancy (VCB). 4. RESULT Given two rules are beneficial to find the value of those definite integrals whose integration is either can’t be found or is complicated. Parallel computation is faster when the calculation is big else for small calculations the parallel computation results in more time consuming when compared with serial computing. In our task to find integral we need to divide the graph in many parts to get more accurate value, so parallel computation is beneficial to us. Here for f(x)= x2 a considerable change is seen in both the algorithms. Also, it can be seen that Simpson’s rule is faster as compared to Gaussian quadratic rule. 5. CONCLUSION The Simpson method with smaller segmentation give better estimates with smaller errors than the Quadrature method. Simpson’s rule takes less computation time than quadrature rule. Parallel computing with more iterations (smaller segments) takes less time than serial computation. 6. REFERENCES [1] M. Concepcion Ausin, 2007, an introduction to quadrature and other numerical integration techniques, Encyclopedia of Statistics in Quality and reliability. Chichester, England. [2] Gordon K. Smith, 2004, Numerical Integration, Encyclopedia of Biostatistics.2nd edition, Vol-6 [3] Rajesh Kumar Sinha, Rakesh Kumar ,2010, Numerical method for evaluating the integrable function on a finite interval, International Journal of Engineering Science and Technology.Vol-2(6)
  • 7. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 11 | Nov 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 997 [4] Gerry Sozio, 2009, Numerical Integration, Australian Senior Mathematics Journal, Vol-23(1) [5] J. Oliver, 1971, The evaluation of definite integrals using high-order formulae, The Computer Journal, Vol-14(3) [6] S.S Sastry, 2007, Introductory Method of Numerical Analysis, Fourth Edition, Prentice hall of India Private Limited. [7] Richard L. Burden, 2007, Numerical Analysis, Seven Edition, International Thomson Publishing Company. [8] Jonh H. Mathew, 2000, Numerical Method for Mathematics, Science and Engineering, Second Edition, Prentice Hall of India Private Limited. [9] Andrews, G. R. (1999). Foundations of Parallel and Distributed Programming. 1st. [10] Mathews, J. H., & Fink, K. D. (2004). Numerical methods using MATLAB (Vol. 4). Upper Saddle RiveNJ: Pearson Prentice Hall. [11] Stoer, J., & Bulirsch, R. (2013). Introduction to numerical analysis (Vol. 12). Springer Science & Business Media. [12] Bastrakov, S., Meyerov, I., Gergel, V., Gonoskov, A., Gorshkov, A., Efimenko, E& Petrov, V.(2013). High performance computing in biomedical applications. Procedia Computer Science, 18, 10-19. [13] Jeffers, J., & Reinders, J. (2015). High performance parallelism pearls volume two: multicore and many-core programming approaches. Morgan Kaufmann.