polynomials Questions

1

Solved

Take for instance the following one-knot, degree two, spline: library(splines) library(ISLR) fit.spline <- lm(wage~bs(age, knots=c(42), degree=2), data=Wage) summary(fit.spline) I see estimat...
Bury asked 24/6, 2017 at 17:40

1

Solved

I have a little issue with R and statistics. I fitted a model with the Maximum Likelihood method, who gave me the following coefficients with their respective Standard Errors (among other paramete...
Casillas asked 18/1, 2017 at 15:32

1

Solved

EDIT: I am not asking how to solve an equation in terms of a given variable (as in this supposed duplicated question), but how to represent an expression in terms of an other one, as specified in t...
Hae asked 16/1, 2017 at 14:26

3

Solved

I've found polynomial coefficients from my data: R <- c(0.256,0.512,0.768,1.024,1.28,1.437,1.594,1.72,1.846,1.972,2.098,2.4029) Ic <- c(1.78,1.71,1.57,1.44,1.25,1.02,0.87,0.68,0.54,0.38,0.26...
Plumcot asked 5/11, 2016 at 12:22

1

Solved

I would like to fit a (very) high order regression to a set of data in R, however the poly() function has a limit of order 25. For this application I need an order on the range of 100 to 120. mod...
Nonlegal asked 1/10, 2016 at 4:49

3

Solved

Consider a polynomial such as: p = [1 -9 27 -27]; obviously the real root is 3: polyval(p,3) 0 While using the roots function q = roots([1 -9 27 -27]); with format short: q = 3.0000 +...
Lovelady asked 1/9, 2016 at 2:46

2

Solved

I'm looking for a speedy algorithm to find the roots of a univariate polynomial in a prime finite field. That is, if f = a0 + a1x + a2x2 + ... + anxn (n > 0) then an algorithm that finds all r &l...
Walling asked 12/3, 2015 at 3:13

1

Solved

numpy.polynomial.polynomial.Polynomial stores polynomial coefficients in order of increasing degree, while numpy.poly1d stores polynomial coefficients in order of decreasing degree. Is there a rea...
Loopy asked 24/6, 2016 at 15:57

1

I am an electronic engineer and have not found it important to consider CRC from a purely mathematical perspective. However, I have the following questions: Why do we add n zeros to the message w...
Premium asked 17/6, 2016 at 16:39

1

Solved

Is there a built-in function in maxima to get from a polynomial function a list with its coefficients? And to get the degree of the polynomial? The most similar function I found is args, but it al...
Chretien asked 7/3, 2016 at 22:52

1

Solved

I am quite frustrated over this. In CLRS 3rd edition, page 95 (chapter 4.5), it mentions that recurrences like T(n) = 2T(n/2) + n lg n cannot be solved with the Master Theorem because the diff...

2

Solved

I am trying to fit a polynomial to my dataset, which looks like that (full dataset is at the end of the post): The theory predicts that the formulation of the curve is: which looks like this (...
Pamulapan asked 22/11, 2015 at 17:21

3

Solved

How do I create a polynomial out of a list of coefficients in SymPy? For example, given a list [1, -2, 1] I would like to get Poly(x**2 - 2*x + 1). I tried looking at the docs but could not find a...
Casein asked 4/9, 2015 at 21:10

1

Solved

Is there a way to construct a an lmfit Model based on a function with an arbitrary number of dependent variables? For example: from lmfit import Model def my_poly(x, *params): func = 0 for i in...
Chaunce asked 3/9, 2015 at 22:4

1

Bairstow's root finding method needs very good initial approximations for the quadratic factors in order to converge. I tried various constants, random numbers, fractions out of the trailing coeff...
Kimmy asked 25/8, 2015 at 10:3

2

Solved

I want to fast decompose polynomial over ring of integers (original polynomial has integer coefficients and all of factors have integer coefficients). For example I want to decompose 4*x^6 + 20*x^...
Middleclass asked 5/4, 2015 at 20:36

1

I am researching sparse adjacency matrices where most cells are zeros and some ones here-and-there, each relationship between two cells has a polynomial description that can be very long and their ...
Suber asked 30/7, 2015 at 21:18

1

I'm using R to create a linear regression model having orthogonal polynomial. My model is: fit=lm(log(UFB2_BITRATE_REF3) ~ poly(QPB2_REF3,2) + B2DBSA_REF3,data=UFB) UFB2_FPS_REF1= 29.98 27.65 26...
Rauscher asked 16/7, 2015 at 14:33

1

Solved

I am using lm(y~poly(x,2)) to fit a second-order polynomial to my data. But I just couldn't find a way to specify a known intercept value. How can I fit a polynomial model with a known intercept va...
Puss asked 13/2, 2015 at 14:31

4

While trying to model polynomials, in particular their multiplication, I run into the following problem. During the multiplication, the individual monomials of the two polynomials are multiplied an...
Guidebook asked 10/9, 2014 at 19:48

1

Solved

In this Code Review answer: https://codereview.stackexchange.com/a/59405/11633 I found the following (nested quote ahead!): Let me quote the wonderful book Numerical Recipes in C++ (but also a...
Steib asked 8/8, 2014 at 12:45

2

Solved

Using Sympy, say we have an expression f, which is a polynomial of the Symbol "x" (and of potentially other symbols). I would like to know what if there is an efficient way to drop all terms in f...

2

Solved

I'm trying to evaluate polynomial (3'd degree) using numpy. I found that doing it by simpler python code will be much more efficient. import numpy as np import timeit m = [3,7,1,2] f = lambda m,...
Intermixture asked 5/6, 2014 at 16:53

3

Solved

I wrote a code that numerically uses Legendre polynomials up to some high n-th order. For example: .... case 8 p = (6435*x.^8-12012*x.^6+6930*x.^4-1260*x.^2+35)/128; return case 9 ... If the v...
Millepede asked 24/9, 2013 at 23:6

1

Solved

I'm trying to get my head around the use of the tilde operator, and associated functions. My 1st question is why does I() need to be used to specify arithmetic operators? For example, these 2 plots...
Balaklava asked 8/11, 2011 at 18:42

© 2022 - 2024 — McMap. All rights reserved.