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
0
votes
1 answer

How to calculate f(x) of a 6th degree function

I'm stuck on solving a little problem in python. I have 7 random points and i have to interpolate a 6th degree function that passes through them. So, first of all I need to find the right polynomial and then I'm given a certain f(x) to…
new_fish
  • 33
  • 1
  • 6
0
votes
1 answer

Converting array into polynomial

In MATLAB, there exists a function ppval for evaluation of polynomials in points, which given the polynomial in opportune format and the points where to evaluate it as input, returns the vector of the evaluations. Now I have built a function that…
MickG
  • 3,216
  • 2
  • 14
  • 22
0
votes
1 answer

python No plot or NameError UPDATE plot is visible but not as it should be

I am attempting to create a "rolling spline" using polynomials via polyfit and polyval. However I either get an error that "offset" is not defined... or, the spline doesn't plot. My code is below, please offer suggestions or insights. I am a polyfit…
LaserYeti
  • 156
  • 1
  • 8
0
votes
1 answer

Efficient way for storing and searching of polynomials (number arrays)

I have huge amount of polynomials of degree 6 (like x^6 + 2*x^5 + x^4 + x^3 + x^2 + 1) stored in text files together with some additional info. Total amount is more than 400 000 000. All of them have integers coefficients. I would like to…
petRUShka
  • 9,812
  • 12
  • 61
  • 95
0
votes
2 answers

multiplying polynomials using linked list in java

This is my code for multiplying two polynomials using liked list.It works fine but the problem is if I multiply (3x^2+5x+3)*(4x^3+5^x+2) I get the result as 12x^5+15x^2+6x^2+20x^4+25x^2+10x+12x^3+15x +6. But how can I make it so that it outputs…
clarkson
  • 561
  • 2
  • 16
  • 32
0
votes
2 answers

Polynomial addition using Linked List

This is a code for polynomial addition using linked lists. public class LinkedPolynomial{ private Node first=new Node(0,0); private Node last=first; private static class Node{ int coef; int exp; Node next; …
sam_rox
  • 739
  • 3
  • 14
  • 29
0
votes
1 answer

Interpolating points to get trajectory

Three points A0 [0,0]; A1 [1,2]; A3 [3,3] are interpolated by algebraic polynom and result equation is: p2 = A0*X^2 + A1*X + A0; Is there a way how to calculate [X,Y] of point in interval from <0, 1>? I'm simply trying to reconstruct object…
user2977027
  • 105
  • 1
  • 10
0
votes
1 answer

kink in polyfit .. not sure why

Am using the np.polyfit and i observe the following kink when i do order 2. If i do order 1 it all seems fine. Here is the code. import numpy as np import matplotlib.pyplot as plt x = [-14.35, -9.35, 0.65, -14.35 ,-9.35, 0.65] y = […
AMM
  • 17,130
  • 24
  • 65
  • 77
0
votes
2 answers

Haskell cannot compile

As usuall I am suffering the problem, that on paper everything should work, but the compiler gives an error which I just cannot understand. data Polynom = Polynom[Double] deriving Show calcPolynom :: Double -> Polynom ->…
Krismu
  • 503
  • 4
  • 14
0
votes
2 answers

Dynamic Array C++ Polynomial Class

I am trying to build a dynamic array in C++ to work with a polynomial class for a project. I am pretty new to C++ and I am pretty lost. I believe I have allocated the memory properly, but I am running into an issue with my destructor, saying "the…
user2483196
  • 11
  • 2
  • 3
  • 5
0
votes
2 answers

Evaluating derivatives of polynomial and rational functions in Ruby (maybe trig functions as well?)

To specify the topic: I am trying to create a program that can evaluate the derivative of at least polynomial and rational functions (trig/etc. functions would be interesting as well) at a specific point. The answer should be the equation of the…
0
votes
1 answer

Computing the powers of a polynomial f(x) modulo irreducible polynomial h(x) in MATLAB

Suppose I have a polynomial f(x)= a_0 + a_1*x + a_2*x^2 +...+ a_(n-1)*x^(n-1) with a_i elements of F_q, q prime. How do I compute the powers f(x)^0, f(x)^1, f(x)^2, ..., f(x)^k modulo another polynomial h(x) of degree n for any positive integer k…
0
votes
1 answer

How do I sum the coefficients of a polynomial in Maxima?

I came up with this nice thing, which I am calling 'partition function for symmetric groups' Z[0]:1; Z[n]:=expand(sum((n-1)!/i!*z[n-i]*Z[i], i, 0, n-1)); Z[4]; 6*z[4]+8*z[1]*z[3]+3*z[2]^2+6*z[1]^2*z[2]+z[1]^4 The sum of the coefficients for Z[4]…
John Lawrence Aspden
  • 17,124
  • 11
  • 67
  • 110
-1
votes
3 answers

Polynomial regression creates 100+ variables from 10: I was expecting 20+constant

I am creating a polynomial regression by using transform variables into polynomial. I am using degree 2. After transformation my variables are becoming more than 100. I was expecting 20+constant (variables and theier 2nd degree powers) Here is…
Amirgiano
  • 69
  • 6
-1
votes
1 answer

How to draw coordinates in JavaScript Canvas

I want to draw polynomials like 4x^2+3x+4 with JavaScript and Canvas. For this I wrote a function in JavaScript that calculates these values of this polynomials and return 2000 x/y coordinates in Interval [-20, +20]. How i can draw this coordinates…