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

evaluation of polynomials of order 15 gives unexpected results (OpenCV Coordinates Output Python)

I've created a formula with polynomial regression to calculate a drag point from an input. I tested the formula in a separate file with the input, and the output appears to be working as intended. However, in the actual file, it seems to be…
user19883400
2
votes
1 answer

Interaction term of 2 given fields

I have two families of features, the As and the Bs, both are sparse (Note that sparsity is a must). X = (a_1,a_2,...,a_n,b_1,b_2,...,b_m) I want to fit a Logistic regression, on the interactions between A and B. y~c_11*a_1*b_1 +…
Uri Goren
  • 13,386
  • 6
  • 58
  • 110
2
votes
1 answer

Computation of 64 bit CRC polynomial performance

I found the following page in the web: https://users.ece.cmu.edu/~koopman/crc/crc64.html It lists the performance of a handful of 64 bit CRC polynomials. The optimal payload for a hamming distance of 3 is listed as 18446744073709551551 bit. A…
Silicomancer
  • 8,604
  • 10
  • 63
  • 130
2
votes
1 answer

Python finding local maxima/minima for multiple polynomials efficiently

I am looking for an efficient way to find local mins for multiple (>1 million) but independent 4th order polynomials in given/ specified ranges/ boundaries. I have two requirements: R1: efficient even for 1 million different polynomial equations R2:…
Daves
  • 175
  • 1
  • 10
2
votes
1 answer

How can I add the slope of a specific point in a polynomial line in plotly

Let's say I have a polynomial regression in plotly that looks like that Something along a code like this: fig = px.scatter( x=final_df.index, y=final_df.nr_deaths, trendline="lowess", #ols trendline_color_override="red", …
Createdd
  • 865
  • 11
  • 15
2
votes
1 answer

Define a polynomial function in Julia

I want to create the function using Polynomials package in Julia, while c is a Vector and n is the length of the Vector. I can make it in JuMP package but not in Polynomials. Any idea how to create this function?
2
votes
1 answer

how to plot the decision boundary of a polynomial logistic regression in python?

I have looked into the example on this website: https://scipython.com/blog/plotting-the-decision-boundary-of-a-logistic-regression-model/ I understand how they plot the decision boundary for a linear feature vector. But how would I plot the decision…
Stefan 44
  • 157
  • 1
  • 9
2
votes
0 answers

How to plot a best fit curve in Julia when the data is a time series?

I'm trying to plot some measurements over time with a best-fit curve, using Julia's plotting tools. There's already a fairly good answer how to do this with a simple numeric data series: Julia: How to find best fit curve / equation when I have a…
wu-lee
  • 749
  • 4
  • 17
2
votes
1 answer

my location-scale estimator function not working with polynomial mean

I'm building my own maximum likelihood estimator that estimates the parameters associated with the mean and standard deviation. On simulated data my function works when the true mean is a linear function and the standard deviation is constant.…
WiggyStardust
  • 182
  • 1
  • 10
2
votes
1 answer

Fit polynomial to point cloud in 3D using PolynomialFeatures

I have some points which represent movement of some particle in 3D. I am trying to fit polynomial to these points so that I can have one line representing the track the particle has taken. Moreover, it is clear that the track is either polynomial…
Zen
  • 157
  • 6
2
votes
2 answers

Plot of a function in ggplot incorrectly showing as a constant line

I want to plot polynomial functions of high degrees with given coefficients. I created the function f_erzeuger() in order to write a polynomial function f to be able to plot it with ggplot2 and stat_function(fun = f). coef is a vector of…
Vanessa
  • 117
  • 6
2
votes
3 answers

Simplifying a fraction with sums of polynomials in the numerator

I'm trying to simplifying the following in maxima: (6*C*b3m*ω+(8*%i*R0^3*b^3-24*%i*R0^3*a*b^2+24*%i*R0^3*a^2*b-8*%i*R0^3*a^3)*Γ+3*A*E*a3p*k+2*%i*K*b3m)/(6*C*ω+3*A*E*k+2*%i*K) So far, here's what I get : But I can easily see that the quantity in…
2
votes
1 answer

How to call a function inside the code to return the degree of a polynomial?

In haskell's Poly package polynomials like x**2 + -1 are represented by [ -1, 0, 2] so for calculate the degree of a polynomial, I need to calculate the length of the polynomial list - 1. This is what I have done: polyDegree :: (Num a, Eq a) => Poly…
2
votes
2 answers

How to extract the polynomial and the non-polynomial parts from a sympy equation?

from sympy import Symbol x = Symbol('x') equation = x**2 + 2**x - 2*x - 5**x + 1 Here, in this equation, for example, the polynomial part is x**2 - 2*x + 1 while the non-polynomial part is 2**x - 5**x. Given an equation, how to extract the…
StackExchange123
  • 1,871
  • 9
  • 24
2
votes
1 answer

Polynomial product function

I'm an F# beginner trying to create a function mul to multiply two polynomials. I'm using three helper functions: add, mulX and mulC which respectively add polynomials, multiply by x and multiply by constant. The idea is that I'm representing my…
Oesterby
  • 21
  • 2