Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve the task1 in the last picture and please provide the code and the output picture so i make sure the program is run

Please solve the task1 in the last picture and please provide the code and the output picture so i make sure the program is run . please please make the program correct as in task 1 using java and not copy the wrong codes from internet . if you cant solve task 1 pleas leave it to someone expert in java and provide the output and codes .

i will give like for sure

All pictures are explanations and the requirement is the last picture in red

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

POLYNOMIALS CALCULUS POLYNOMIAL comes from poly (meaning many) and nomial in this case meaningiterm") so it says many terms. Polynomials appear in a wide variety of areas of mathematics and science. For example, they are used in polynomial equations, which encode a wide range of problems, from elemental word problem to complicated problems in the sciences; they are used to define polynomial functions, which appear in settings ranging from basic chemistry and physics to contribution in econimics: they are used in calculus and numerical analysis to approximate other functions. r A Example: A polynomial of degree of 3 A polynomial is an expression that can be made from constants and symbols called indeterminates or variables by means of addition, multiplication and exponentiation to a non- negative integer power. Two such expressions that may be changed from one to the other, by applying the usual properties of commutativity.associativity and distributivity of addition and multiplication are considered as defining the same polynomial. Example: A polynomial of degree of 3 A polynomial is an expression that can be made from constants and symbols called indeterminates or variables by means of addition, multiplication and exponentiation to a non- negative integer power. Two such expressions that may be changed from one to the other, by applying the usual properties of commutativity.associativity and distributivity of addition and multiplication are considered as defining the same polynomial. Examples of Polynomial Functions L A polynomial can have: 1. constants 2. variables 3. exponents that can be combined using addition, subtraction, multiplication and division (not division by a variable). for examples: -5x2 + 2x + 1 degree: The degree of a polynomial with only one variable is the largest exponent of the variable. Following functions of polynomials are: A sum of polynomials is a polynomial A product of polynomials is a polynomial A composition of two polynomials is a polynomial, which is obtained by substituting a variable of the first polynomial by the second polynomial. ADDITION OF TWO POLYNOMIAL Adding polynomials is just a matter of combining like terms, with some order of operations. There are a couple of formats for adding and they take us back to the ancient times of our study where we added plain old numbers. How did we do that?????? We simply added the numbers by grouping LIKE terms and simplifying. LIKE TERMS are the terms which have the same power or exponents. UNLIKE TERMS are the terms that have different power or exponents. we can add polynomials easily. We group the like terms in the polynomials provided and then we add or simplify) the like terms. for ex. 100x^2+2x+1 & 8x^3+3x+1 Here in these two polynomials given, 2x and 3x in the 1st and 2nd polynomial have the same exponents and 1 and 1 of both the polynomials too. So, the addition operation is carried out as follows (100x^2+2x+1)+(8x^3+3x+1) = 8x^3+100x^2+5x+2 Here as we can see, like terms are getting added and unlike terms are directly transferred to the In the code addition of two polyomials is discussed. Two polynomials are being added. For example 1st polynomial: 100x^5+3x^3+1 2nd polynomial: 50x45+4x+2 Arranging it in the tabular format: 1st polynomial 2nd polynomial EXPONENTS 5 1 EXPONENTS 5 3 0 COEFFICIENT 100 0 COEFFICIENT 50 3 4 1 An object 'polynomial can be defined in which two variables are defined namely, 'c' and exp' for coefficients and exponents respectively. And sign for the sign before each term. Different variables are defined under main function.'nl' is defined to get the input of the number of terms in the 1st polynomial, 'n2' for 2nd polynomial. APPLICATIONS OF POLYNOMIALS IN EVERYDAY LIFE Polynomials are used in everyday life. It is used in physics to describe trajectory in projectiles. Polynomial integrals can be used to express energy.inertia and voltage difference. Polynomials are algebraic expressions that add constants and variables and are formed using power functions. They are much more easy to handle than other complex functions. Polynomial modelling functions can be even used to solve questions in chemistry and biology Aerospace engineers, chemical engineers, civil engineers, electrical engineers, environmental engineers, mechanical engineers and industrial engineers all need strong math skills. Task 1 required is to creat and Use Stacks to implement polynomial object and to make different types of calculations (creation, addition, substraction, multiplication, division) POLYNOMIALS CALCULUS POLYNOMIAL comes from poly (meaning many) and nomial in this case meaningiterm") so it says many terms. Polynomials appear in a wide variety of areas of mathematics and science. For example, they are used in polynomial equations, which encode a wide range of problems, from elemental word problem to complicated problems in the sciences; they are used to define polynomial functions, which appear in settings ranging from basic chemistry and physics to contribution in econimics: they are used in calculus and numerical analysis to approximate other functions. r A Example: A polynomial of degree of 3 A polynomial is an expression that can be made from constants and symbols called indeterminates or variables by means of addition, multiplication and exponentiation to a non- negative integer power. Two such expressions that may be changed from one to the other, by applying the usual properties of commutativity.associativity and distributivity of addition and multiplication are considered as defining the same polynomial. Example: A polynomial of degree of 3 A polynomial is an expression that can be made from constants and symbols called indeterminates or variables by means of addition, multiplication and exponentiation to a non- negative integer power. Two such expressions that may be changed from one to the other, by applying the usual properties of commutativity.associativity and distributivity of addition and multiplication are considered as defining the same polynomial. Examples of Polynomial Functions L A polynomial can have: 1. constants 2. variables 3. exponents that can be combined using addition, subtraction, multiplication and division (not division by a variable). for examples: -5x2 + 2x + 1 degree: The degree of a polynomial with only one variable is the largest exponent of the variable. Following functions of polynomials are: A sum of polynomials is a polynomial A product of polynomials is a polynomial A composition of two polynomials is a polynomial, which is obtained by substituting a variable of the first polynomial by the second polynomial. ADDITION OF TWO POLYNOMIAL Adding polynomials is just a matter of combining like terms, with some order of operations. There are a couple of formats for adding and they take us back to the ancient times of our study where we added plain old numbers. How did we do that?????? We simply added the numbers by grouping LIKE terms and simplifying. LIKE TERMS are the terms which have the same power or exponents. UNLIKE TERMS are the terms that have different power or exponents. we can add polynomials easily. We group the like terms in the polynomials provided and then we add or simplify) the like terms. for ex. 100x^2+2x+1 & 8x^3+3x+1 Here in these two polynomials given, 2x and 3x in the 1st and 2nd polynomial have the same exponents and 1 and 1 of both the polynomials too. So, the addition operation is carried out as follows (100x^2+2x+1)+(8x^3+3x+1) = 8x^3+100x^2+5x+2 Here as we can see, like terms are getting added and unlike terms are directly transferred to the In the code addition of two polyomials is discussed. Two polynomials are being added. For example 1st polynomial: 100x^5+3x^3+1 2nd polynomial: 50x45+4x+2 Arranging it in the tabular format: 1st polynomial 2nd polynomial EXPONENTS 5 1 EXPONENTS 5 3 0 COEFFICIENT 100 0 COEFFICIENT 50 3 4 1 An object 'polynomial can be defined in which two variables are defined namely, 'c' and exp' for coefficients and exponents respectively. And sign for the sign before each term. Different variables are defined under main function.'nl' is defined to get the input of the number of terms in the 1st polynomial, 'n2' for 2nd polynomial. APPLICATIONS OF POLYNOMIALS IN EVERYDAY LIFE Polynomials are used in everyday life. It is used in physics to describe trajectory in projectiles. Polynomial integrals can be used to express energy.inertia and voltage difference. Polynomials are algebraic expressions that add constants and variables and are formed using power functions. They are much more easy to handle than other complex functions. Polynomial modelling functions can be even used to solve questions in chemistry and biology Aerospace engineers, chemical engineers, civil engineers, electrical engineers, environmental engineers, mechanical engineers and industrial engineers all need strong math skills. Task 1 required is to creat and Use Stacks to implement polynomial object and to make different types of calculations (creation, addition, substraction, multiplication, division)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions