Questions tagged [polynomials]

In mathematics, a polynomial is an expression consisting of variables (or indeterminates) and coefficients, that involves only the operations of addition, subtraction, multiplication, and non-negative integer exponents.

In mathematics, a polynomial is an expression consisting of variables (or indeterminates) and coefficients, that involves only the operations of addition, subtraction, multiplication, and non-negative integer exponents.

An example of a polynomial of a single indeterminate (or variable), x, is x2 − 4x + 7, which is a quadratic polynomial.

Polynomials appear in a wide variety of areas of mathematics and science. For example, they are used to form polynomial equations, which encode a wide range of problems, from elementary word problems to complicated problems in the sciences; they are used to define polynomial functions, which appear in settings ranging from basic chemistry and physics to economics and social science; they are used in calculus and numerical analysis to approximate other functions. In advanced mathematics, polynomials are used to construct polynomial rings and algebraic varieties, central concepts in algebra and algebraic geometry.

Wikipedia: http://en.wikipedia.org/wiki/Polynomial

978 questions
-2
votes
1 answer

How to solve a system of two polynomial equations?

I have two equations: (x-6)^2 + (y-2)^2 = 6^2 (x-2)^2 + (y-2)^2 = 3^2 I subtracted the 2nd equation from the 1st and got the answer. However, I want to find x and y from the set of equations using any programming language. Can anybody help to get…
Crazy Cat
  • 186
  • 3
  • 13
-2
votes
2 answers

What is wrong with my addition of polynomials c code?

I wrote C program to which should add two polynomials. I wrote this program in Kali Linux 2.0 OS. When I execute the program I don't get the required output. Instead I get this- Polynomial 1 How many no. terms do you want to enter? 1 Enter…
Dibakar Saha
  • 49
  • 2
  • 9
-2
votes
1 answer

NullPointerException when reading file

I am writing a program that requires me to read in a predetermined file and add the numbers given into polynomial format. I keep getting a NullPointerException when the code reaches the end of a file. Here is the snippit of code that gives me the…
intrigatory57
  • 98
  • 1
  • 10
-2
votes
1 answer

Find LFSR polynomial and create lookup table in C++

I have this LFSR and I am unsure how to find the polynomial associated with it. I am trying to create a _static _flash look up table with uint8_t variables to save on computing cycles. Only problem, I'm not sure how to implement an LFSR in…
Hearny
  • 17
  • 3
-2
votes
2 answers

integrating using midpoint method

I need to make a C program that would calculate the integral of a third degree polynomial using the midpoint method. Basically integrating this: f(x) = mx^3 + nx^2 + px + q using the block/midpoint method. So far I have this: #include…
dsa22
  • 11
  • 2
  • 4
-2
votes
1 answer

Polynomial in java

So after I messed with it with the help from you guys I got it to do somewhat of what I need it to do public class PolynomialTestDriver { public static void main(String[] args){ Polynomial myPoly = new Polynomial(); …
-2
votes
3 answers

C++: Why are memory addresses returned instead of formulaic values?

I'm writing a class to add, subtract and multiply polynomials (going on 1 week now!). Anyway, the code compiles, but I'm seeing what appears to be memory addresses in the output. I can't figure out why this is happening. Can anyone steer me in the…
user3407254
  • 55
  • 1
  • 2
  • 8
-3
votes
1 answer

Solve polynomials in addition in Java?

I have to solve the polynomials in addition but its really hard for me. How can I do this? poly1 = "2x^3 + 3x^2 + 2"; poly2 = "2x^2 + 6"; //result 2x^3 + 5x^2 + 8
joshxb2
  • 15
  • 5
-3
votes
1 answer

Why only 1 function gives the ouput

I'm trying to write a code and write test after this. But i have a problem. Only 1 functions gives the output. I didn't even get into the others. What is the reason? Why my programm ends before even 'visiting all the functions'. In my code I can't…
Kokin
  • 11
  • 6
-3
votes
2 answers

How to evaluate a polynomial at a specific x-value?

Use map to evaluate a given polynomial at a specific x-value. Input: p: A list of coefficients for increasing powers of x x: The value of x to evaluate Output: Number representing the value of the evaluated polynomial Example: poly_eval([1, 2, 3],…
Silent
  • 11
-3
votes
1 answer

polynomial Assignment through file in C

I want to assign the exponent and coefficient information input from the file to the circular linked list. file "a.txt" is as follows 8 3 7 2 3 0 However, there are also strange values ​​in the output like this. I wanted to make the list…
박진근
  • 1,003
  • 2
  • 6
  • 6
-3
votes
1 answer

Optimal solution to find the coefficients from an unknown polynomial function

Suppose I have a polynomial f(x) where all the coefficients a(i) are integers in the form of a function f, implement a function find_polynomial that takes f and returns the coefficients a(i) as a list of the form: [a(0),a[1]....a[n]] (n<=15) where…
-3
votes
2 answers

How use creating polynomial expression like function in Python?

I'd like to write a program in Python where user define a deegre of polynomial and coefficients (a,b,c). When program create a polynomial expression with this data I'd like to use it like function because I need this to other operations. How can i…
user8908603
-3
votes
1 answer

Using python in math

Ok so i want to solve this equation through python but cant figure out what to do! I tried using for loops but that didn't work so well Im new to python so can anyone suggest what I should do RWBG-(WBR^2)-WBR-(BR^3)-(3BR^2)+2BR-(R^3)-(6R^2)+11R-6 =…
-3
votes
1 answer

Map and Node, error IntelliSense: no suitable user-defined conversion from "const std::pair" to "Node" exists

I wrote this code for reading and adding polynomials using map and nodes. The error happens in operator+. I know I have no code which relates my map to Node, I think I should use something in "std::map PolynomialMap"; similar to list but I am not…
1 2 3
65
66