SlideShare a Scribd company logo
1 of 3
Download to read offline
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 459
Pythagoras n-sided polygon with Natural Numbers using Programming
Language
S.N.R.G. Bharat Iragavarapu 1, Kuppili Sai Rahul 2
1Assistant Professor, Department of Mathematics GVP College of Engineering (Autonomous),
Visakhapatnam, AP, India
2 B.Tech Student, Department of Electronics and Communication Engineering GVP College of Engineering
(Autonomous), Visakhapatnam, AP, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - In this paper, using computer programming
language Java we determine the Pythagoras n-sided polygon
for any (n-1) natural numbers and this Pythagoras n-sided
polygon satisfies the extension of the Pythagoras theorem i.e
the sum of the squares of the first (n-1) side lengths is equal to
the sum of the square of the nth side length.
Key Words: Pythagoras theorem, Triangle, Quadrilateral,
Polygon, Pythagoras n-sided polygon
1. INTRODUCTION
In [1, 2, 3, 4, 5, 6 ] the authors developed extension
of Pythagoras theorem for 4, 5, 6, 7, 8, 9 sided polygons
using programming language C. But, for a polygon withsides
more than10 this process is difficult using programming
language C.
In this paper we developed a program using
programming language Java for formation of an n-sided
polygon when (n-1) natural numbers are provided. This n-
sided polygon satisfies the Pythagoras theorem.
2. MAIN RESULT
2.1 Algorithm
Step 1: Start.
Step 2: Enter the number of sides of the desired polygon.
Step 3: Read the value n defining it as k which is of integer
data type.
Step 4: If k is greater than 2, go to step5, else, go to step15.
Step 5: Define integer data type variables, i, j, t, sum.
Step 6: Initialize t as (n+1) and sum as zero.
Step 7: Define arrays arr1[] and arr2[] with size n and t
respectively.
Step 8: Enter any n natural numbers.
Step 9: Read those values using a for loop.
Step 10: Using another for loop, calculate sum of squares of
all the entered numbers.
Step 11: Calculate first element of second array arr2[0] as
{(2*arr1[0]*arr1[0])-sum} .
Step 12: If arr2[0] is positive go to step 13, else, go to step
13.
Step 13: Multiply arr2[0] with -1 and go to step 14.
Step 14: Calculate the remaining elements of arr2[i] as
(2*arr1[i]*arr1[0]) except the last element.
Step 15: Assign the value sum for arr2[n-1].
Step 16: Use another for loop to print the elements of arr2[].
Step 17: Print the statement “Entered number of sides can’t
form a polygon.”
Step 18: Stop.
2.2 Result Analysis
Step 1: Enter number of sides of your polygon.
Step 2: Enter any (n-1) natural numbers.
Step 3: It displays the side lengths of an n-sided polygon.
The above procedure can be explained below :
For example,
 Consider a 5-sided polygon(pentagon).
 Let the four natural numbers be 1, 7, 5, 8.
 The side lengths of the polygon are 137, 14, 10,
16, 139.
The side lengths mentioned above satisfies
Pythagoras theorem.
We can represent this result in outputs.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 460
2.2 Outputs
Fig-1: For 5-sided polygon
Fig -2: For 6-sided polygon
Fig -3: For 13-sided polygon
Fig -4: For 21-sided polygon
Fig -5: For 12-sided polygon
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 461
3. CONCLUSIONS
By using this program, we can easily find the n-sided
Pythagoras polygon for any (n-1) natural numbers. That n-
sided polygon satisfies the extension of a Pythagoras
theorem.
REFERENCES
1. S.N.R.G.Bharat Iragavarapu, Extension of Pythagoras
Theorem using Programming Language, Journal of
Information Technology and Sciences,Volume3Issue1,
Pg 1-4 , MAT Journals 2017.
2. S.N.R.G.Bharat Iragavarapu, Pythagoras PentagonUsing
Programming Language, International Journal of
Computational Intelligence, Biotechnology and
Biochemical Engineering, Volume 2 Issue 1, Pg1-6,Man
tech Publications, 2017.
3. S.N.R.G.Bharat Iragavarapu, Pythagoras Hexagon with
Natural Numbers using ProgrammingLanguage, Journal
of Statistics and Mathematical Engineering,MATjournal
publishers, volume 3, issue 2, Page 1-4 © MAT Journals
2017.
4. S.N.R.G.Bharat Iragavarapu, Pythagoras Heptagon with
Natural Numbers using ProgrammingLanguage, Journal
of Computational Mathematics and Applied
Mathematics, Volume 2 , Issue 2, Page 17-22 ©
MANTECH PUBLICATIONS 2017.
5. S.N.R.G.Bharat Iragavarapu, Pythagoras Octagon with
Natural Numbers using ProgrammingLanguage, IJSRD -
International Journal for Scientific Research &
Development| Vol. 5, Issue 04, 2017 | ISSN (online):
2321-0613, pg: 443-444.
6. S.N.R.G.Bharat Iragavarapu, Pythagoras Nonagon with
Natural Numbers using Programming Language (under
review)
BIOGRAPHIES
S.N.R.G.Bharat Iragavarapu (born
April 25, 1990) is working as
Assistant professor in the
Department of Mathematics, Gayatri
vidya parishad CollegeofEngineering
(A), Visakhapatnam, Andhra Pradesh,
India. He completed his Masters
degree in Mathematics from Andhra
University in the year 2012 with 8.9
CGPA. (Secured university second).
Worked as Junior research fellow in
NBHM-DAE project during 2012-
2015. Published 3 research papers in
international journals. During this
academic year 2016-17 there are 6
publications in national journal and
international journals on the topic
related to the present work
Kuppili Sai Rahul is studying B.Tech,
fouth year in the Department of
Electronics and communication
engineering, Gayatri College of
Engineering (A), Visakhapatnam,
Andhra Pradesh, India.
to

More Related Content

Similar to Pythagoras n-sided Polygon with Natural Numbers using Programming Language

Breaking a Stick to form a Nonagon with Positive Integers using Programming L...
Breaking a Stick to form a Nonagon with Positive Integers using Programming L...Breaking a Stick to form a Nonagon with Positive Integers using Programming L...
Breaking a Stick to form a Nonagon with Positive Integers using Programming L...IRJET Journal
 
Pythagorean Triangle with 2*A/P as Gopa Numbers Of The Second Kind
Pythagorean Triangle with 2*A/P as Gopa Numbers Of The Second KindPythagorean Triangle with 2*A/P as Gopa Numbers Of The Second Kind
Pythagorean Triangle with 2*A/P as Gopa Numbers Of The Second KindIRJET Journal
 
Breaking a Stick to form a Pentagon with Positive Integers using Programming ...
Breaking a Stick to form a Pentagon with Positive Integers using Programming ...Breaking a Stick to form a Pentagon with Positive Integers using Programming ...
Breaking a Stick to form a Pentagon with Positive Integers using Programming ...IRJET Journal
 
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...IRJET Journal
 
Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...
Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...
Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...IRJET Journal
 
IRJET- A Study on Algorithms for FFT Computations
IRJET- A Study on Algorithms for FFT ComputationsIRJET- A Study on Algorithms for FFT Computations
IRJET- A Study on Algorithms for FFT ComputationsIRJET Journal
 
Design and Implementation of Fixed Point Arithmetic Unit
Design and Implementation of Fixed Point Arithmetic UnitDesign and Implementation of Fixed Point Arithmetic Unit
Design and Implementation of Fixed Point Arithmetic UnitIJERA Editor
 
IRJET- Matrix Multiplication using Strassen’s Method
IRJET-  	  Matrix Multiplication using Strassen’s MethodIRJET-  	  Matrix Multiplication using Strassen’s Method
IRJET- Matrix Multiplication using Strassen’s MethodIRJET Journal
 
IRJET- Efficient Design of Radix Booth Multiplier
IRJET- Efficient Design of Radix Booth MultiplierIRJET- Efficient Design of Radix Booth Multiplier
IRJET- Efficient Design of Radix Booth MultiplierIRJET Journal
 
Permonace Modeling of Pipelined Linear Algebra Architectures on ASIC
Permonace Modeling of Pipelined Linear Algebra Architectures on ASICPermonace Modeling of Pipelined Linear Algebra Architectures on ASIC
Permonace Modeling of Pipelined Linear Algebra Architectures on ASICIRJET Journal
 
Isc computer project final upload last
Isc computer project final upload lastIsc computer project final upload last
Isc computer project final upload lastArunav Ray
 
IRJET- K-SVD: Dictionary Developing Algorithms for Sparse Representation ...
IRJET-  	  K-SVD: Dictionary Developing Algorithms for Sparse Representation ...IRJET-  	  K-SVD: Dictionary Developing Algorithms for Sparse Representation ...
IRJET- K-SVD: Dictionary Developing Algorithms for Sparse Representation ...IRJET Journal
 
Generation of Pythagorean triangle with Area/ Perimeter as a Wagstaff prime n...
Generation of Pythagorean triangle with Area/ Perimeter as a Wagstaff prime n...Generation of Pythagorean triangle with Area/ Perimeter as a Wagstaff prime n...
Generation of Pythagorean triangle with Area/ Perimeter as a Wagstaff prime n...IRJET Journal
 
Double Precision Floating Point Multiplier using Verilog
Double Precision Floating Point Multiplier using VerilogDouble Precision Floating Point Multiplier using Verilog
Double Precision Floating Point Multiplier using VerilogIRJET Journal
 
IRJET- Monument Informatica Application using AR
IRJET-  	  Monument Informatica Application using ARIRJET-  	  Monument Informatica Application using AR
IRJET- Monument Informatica Application using ARIRJET Journal
 
statistical computation using R- report
statistical computation using R- reportstatistical computation using R- report
statistical computation using R- reportKamarudheen KV
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R ProgrammingIRJET Journal
 
Association Rule Mining using RHadoop
Association Rule Mining using RHadoopAssociation Rule Mining using RHadoop
Association Rule Mining using RHadoopIRJET Journal
 

Similar to Pythagoras n-sided Polygon with Natural Numbers using Programming Language (20)

Breaking a Stick to form a Nonagon with Positive Integers using Programming L...
Breaking a Stick to form a Nonagon with Positive Integers using Programming L...Breaking a Stick to form a Nonagon with Positive Integers using Programming L...
Breaking a Stick to form a Nonagon with Positive Integers using Programming L...
 
Pythagorean Triangle with 2*A/P as Gopa Numbers Of The Second Kind
Pythagorean Triangle with 2*A/P as Gopa Numbers Of The Second KindPythagorean Triangle with 2*A/P as Gopa Numbers Of The Second Kind
Pythagorean Triangle with 2*A/P as Gopa Numbers Of The Second Kind
 
Breaking a Stick to form a Pentagon with Positive Integers using Programming ...
Breaking a Stick to form a Pentagon with Positive Integers using Programming ...Breaking a Stick to form a Pentagon with Positive Integers using Programming ...
Breaking a Stick to form a Pentagon with Positive Integers using Programming ...
 
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
IRJET- Approximate Multiplier and 8 Bit Dadda Multiplier Implemented through ...
 
Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...
Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...
Improvement in Computational Complexity of the MIMO ML Decoder in High Mobili...
 
IRJET- A Study on Algorithms for FFT Computations
IRJET- A Study on Algorithms for FFT ComputationsIRJET- A Study on Algorithms for FFT Computations
IRJET- A Study on Algorithms for FFT Computations
 
Design and Implementation of Fixed Point Arithmetic Unit
Design and Implementation of Fixed Point Arithmetic UnitDesign and Implementation of Fixed Point Arithmetic Unit
Design and Implementation of Fixed Point Arithmetic Unit
 
IRJET- Matrix Multiplication using Strassen’s Method
IRJET-  	  Matrix Multiplication using Strassen’s MethodIRJET-  	  Matrix Multiplication using Strassen’s Method
IRJET- Matrix Multiplication using Strassen’s Method
 
IRJET- Efficient Design of Radix Booth Multiplier
IRJET- Efficient Design of Radix Booth MultiplierIRJET- Efficient Design of Radix Booth Multiplier
IRJET- Efficient Design of Radix Booth Multiplier
 
Permonace Modeling of Pipelined Linear Algebra Architectures on ASIC
Permonace Modeling of Pipelined Linear Algebra Architectures on ASICPermonace Modeling of Pipelined Linear Algebra Architectures on ASIC
Permonace Modeling of Pipelined Linear Algebra Architectures on ASIC
 
Isc computer project final upload last
Isc computer project final upload lastIsc computer project final upload last
Isc computer project final upload last
 
IRJET- K-SVD: Dictionary Developing Algorithms for Sparse Representation ...
IRJET-  	  K-SVD: Dictionary Developing Algorithms for Sparse Representation ...IRJET-  	  K-SVD: Dictionary Developing Algorithms for Sparse Representation ...
IRJET- K-SVD: Dictionary Developing Algorithms for Sparse Representation ...
 
Al04605265270
Al04605265270Al04605265270
Al04605265270
 
Generation of Pythagorean triangle with Area/ Perimeter as a Wagstaff prime n...
Generation of Pythagorean triangle with Area/ Perimeter as a Wagstaff prime n...Generation of Pythagorean triangle with Area/ Perimeter as a Wagstaff prime n...
Generation of Pythagorean triangle with Area/ Perimeter as a Wagstaff prime n...
 
Double Precision Floating Point Multiplier using Verilog
Double Precision Floating Point Multiplier using VerilogDouble Precision Floating Point Multiplier using Verilog
Double Precision Floating Point Multiplier using Verilog
 
IRJET- Monument Informatica Application using AR
IRJET-  	  Monument Informatica Application using ARIRJET-  	  Monument Informatica Application using AR
IRJET- Monument Informatica Application using AR
 
statistical computation using R- report
statistical computation using R- reportstatistical computation using R- report
statistical computation using R- report
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R Programming
 
LMmanual.pdf
LMmanual.pdfLMmanual.pdf
LMmanual.pdf
 
Association Rule Mining using RHadoop
Association Rule Mining using RHadoopAssociation Rule Mining using RHadoop
Association Rule Mining using RHadoop
 

More from IRJET Journal

TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...IRJET Journal
 
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURESTUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTUREIRJET Journal
 
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...IRJET Journal
 
Effect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil CharacteristicsEffect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil CharacteristicsIRJET Journal
 
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...IRJET Journal
 
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...IRJET Journal
 
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...IRJET Journal
 
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...IRJET Journal
 
A REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADASA REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADASIRJET Journal
 
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...IRJET Journal
 
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD ProP.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD ProIRJET Journal
 
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...IRJET Journal
 
Survey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare SystemSurvey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare SystemIRJET Journal
 
Review on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridgesReview on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridgesIRJET Journal
 
React based fullstack edtech web application
React based fullstack edtech web applicationReact based fullstack edtech web application
React based fullstack edtech web applicationIRJET Journal
 
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...IRJET Journal
 
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.IRJET Journal
 
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...IRJET Journal
 
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic DesignMultistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic DesignIRJET Journal
 
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...IRJET Journal
 

More from IRJET Journal (20)

TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
 
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURESTUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
 
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
 
Effect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil CharacteristicsEffect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil Characteristics
 
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
 
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
 
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
 
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
 
A REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADASA REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADAS
 
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
 
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD ProP.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
 
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
 
Survey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare SystemSurvey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare System
 
Review on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridgesReview on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridges
 
React based fullstack edtech web application
React based fullstack edtech web applicationReact based fullstack edtech web application
React based fullstack edtech web application
 
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
 
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
 
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
 
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic DesignMultistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
 
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
 

Recently uploaded

VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 

Pythagoras n-sided Polygon with Natural Numbers using Programming Language

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 459 Pythagoras n-sided polygon with Natural Numbers using Programming Language S.N.R.G. Bharat Iragavarapu 1, Kuppili Sai Rahul 2 1Assistant Professor, Department of Mathematics GVP College of Engineering (Autonomous), Visakhapatnam, AP, India 2 B.Tech Student, Department of Electronics and Communication Engineering GVP College of Engineering (Autonomous), Visakhapatnam, AP, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - In this paper, using computer programming language Java we determine the Pythagoras n-sided polygon for any (n-1) natural numbers and this Pythagoras n-sided polygon satisfies the extension of the Pythagoras theorem i.e the sum of the squares of the first (n-1) side lengths is equal to the sum of the square of the nth side length. Key Words: Pythagoras theorem, Triangle, Quadrilateral, Polygon, Pythagoras n-sided polygon 1. INTRODUCTION In [1, 2, 3, 4, 5, 6 ] the authors developed extension of Pythagoras theorem for 4, 5, 6, 7, 8, 9 sided polygons using programming language C. But, for a polygon withsides more than10 this process is difficult using programming language C. In this paper we developed a program using programming language Java for formation of an n-sided polygon when (n-1) natural numbers are provided. This n- sided polygon satisfies the Pythagoras theorem. 2. MAIN RESULT 2.1 Algorithm Step 1: Start. Step 2: Enter the number of sides of the desired polygon. Step 3: Read the value n defining it as k which is of integer data type. Step 4: If k is greater than 2, go to step5, else, go to step15. Step 5: Define integer data type variables, i, j, t, sum. Step 6: Initialize t as (n+1) and sum as zero. Step 7: Define arrays arr1[] and arr2[] with size n and t respectively. Step 8: Enter any n natural numbers. Step 9: Read those values using a for loop. Step 10: Using another for loop, calculate sum of squares of all the entered numbers. Step 11: Calculate first element of second array arr2[0] as {(2*arr1[0]*arr1[0])-sum} . Step 12: If arr2[0] is positive go to step 13, else, go to step 13. Step 13: Multiply arr2[0] with -1 and go to step 14. Step 14: Calculate the remaining elements of arr2[i] as (2*arr1[i]*arr1[0]) except the last element. Step 15: Assign the value sum for arr2[n-1]. Step 16: Use another for loop to print the elements of arr2[]. Step 17: Print the statement “Entered number of sides can’t form a polygon.” Step 18: Stop. 2.2 Result Analysis Step 1: Enter number of sides of your polygon. Step 2: Enter any (n-1) natural numbers. Step 3: It displays the side lengths of an n-sided polygon. The above procedure can be explained below : For example,  Consider a 5-sided polygon(pentagon).  Let the four natural numbers be 1, 7, 5, 8.  The side lengths of the polygon are 137, 14, 10, 16, 139. The side lengths mentioned above satisfies Pythagoras theorem. We can represent this result in outputs.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 460 2.2 Outputs Fig-1: For 5-sided polygon Fig -2: For 6-sided polygon Fig -3: For 13-sided polygon Fig -4: For 21-sided polygon Fig -5: For 12-sided polygon
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 461 3. CONCLUSIONS By using this program, we can easily find the n-sided Pythagoras polygon for any (n-1) natural numbers. That n- sided polygon satisfies the extension of a Pythagoras theorem. REFERENCES 1. S.N.R.G.Bharat Iragavarapu, Extension of Pythagoras Theorem using Programming Language, Journal of Information Technology and Sciences,Volume3Issue1, Pg 1-4 , MAT Journals 2017. 2. S.N.R.G.Bharat Iragavarapu, Pythagoras PentagonUsing Programming Language, International Journal of Computational Intelligence, Biotechnology and Biochemical Engineering, Volume 2 Issue 1, Pg1-6,Man tech Publications, 2017. 3. S.N.R.G.Bharat Iragavarapu, Pythagoras Hexagon with Natural Numbers using ProgrammingLanguage, Journal of Statistics and Mathematical Engineering,MATjournal publishers, volume 3, issue 2, Page 1-4 © MAT Journals 2017. 4. S.N.R.G.Bharat Iragavarapu, Pythagoras Heptagon with Natural Numbers using ProgrammingLanguage, Journal of Computational Mathematics and Applied Mathematics, Volume 2 , Issue 2, Page 17-22 © MANTECH PUBLICATIONS 2017. 5. S.N.R.G.Bharat Iragavarapu, Pythagoras Octagon with Natural Numbers using ProgrammingLanguage, IJSRD - International Journal for Scientific Research & Development| Vol. 5, Issue 04, 2017 | ISSN (online): 2321-0613, pg: 443-444. 6. S.N.R.G.Bharat Iragavarapu, Pythagoras Nonagon with Natural Numbers using Programming Language (under review) BIOGRAPHIES S.N.R.G.Bharat Iragavarapu (born April 25, 1990) is working as Assistant professor in the Department of Mathematics, Gayatri vidya parishad CollegeofEngineering (A), Visakhapatnam, Andhra Pradesh, India. He completed his Masters degree in Mathematics from Andhra University in the year 2012 with 8.9 CGPA. (Secured university second). Worked as Junior research fellow in NBHM-DAE project during 2012- 2015. Published 3 research papers in international journals. During this academic year 2016-17 there are 6 publications in national journal and international journals on the topic related to the present work Kuppili Sai Rahul is studying B.Tech, fouth year in the Department of Electronics and communication engineering, Gayatri College of Engineering (A), Visakhapatnam, Andhra Pradesh, India. to