Poly is a function in R that generates a basis matrix of polynomial transformations.
Questions tagged [poly]
56 questions
0
votes
1 answer
What cause the "Poly object has no attribute 'expand' " error?
I have a 4x4 sympy matrix of polynomials:
S = Matrix([[Poly(alpha**4 + alpha**3, alpha, modulus=2), Poly(alpha**4 + alpha**3 + alpha + 1, alpha, modulus=2),Poly(alpha**3 + alpha**2 + alpha, alpha, modulus=2), Poly(alpha**4 + alpha**3 + alpha**2 +…

Ivan Yablochkin
- 11
- 2
0
votes
1 answer
Is it possible to change the pensize of a drag-able poly in turtle?
I'm trying to change the pensize of a drag-able poly in turtle, so that the poly would have a broad border around it? Here is part of the code:
from turtle import Turtle,Shape,Screen
def simple_polygon(turtle):
shape = Shape("compound")
…

Red
- 26,798
- 7
- 36
- 58
0
votes
0 answers
Using VB.NET or C#, how can one draw a polynomial curve for an array of points
In Excel and Powerpoint it is very easy to use the trendline function in a chart or graph to create a polynomial curve. Yet when I am in VB.net to create my custom graphs using the Graphics object and a bitmap I can not figure out how to do the same…

Chris
- 1
- 2
0
votes
1 answer
How to reduce the size of the generator in sympy.Poly?
Given the formula, I want to convert it to a Poly object and minimize the size of the generator. For example, if my formula is x^2+x+sqrt(x), I would expect to have only sqrt(x) in the generator. But in most of my attempts, the generator contains…

urojony
- 1
- 2
0
votes
0 answers
Bool function in polynomial
I'm trying to solve this task:
"Write a bool sparse function (polynomial p) that takes polynomial p and returns true if 50% or more of the coefficients of polynomial p equals 0."
I use header file from my university.
#include
#include…

ivanm43
- 9
- 3
0
votes
0 answers
How to read summary result in R?
i fitted 3d scatter with lm, poly function.
But i couldnt write real equation from summary bucause some number...code is below.
Call:
lm(formula = z ~ poly(x, y, degree = 2))
Residuals:
Min 1Q Median 3Q Max…

gwang gon Jo
- 45
- 6
0
votes
0 answers
R: Predicting weather using 2nd order polynomial
I have estimated temperature values for every middle day of the month, and I wish I could create an array of predictions based on those values. So I have two vectors: one contains days and one contains corresponding temperatures.
day <- c(15, 45,…

Vlas Trunov
- 1
- 1
0
votes
2 answers
Sympy .coeff_all() returned list is not readable by scipy
I have question about the data type of the result returned by Sympy Poly.all_coeffs(). I have started to use Sympy just recently.
My Sympy transfer function is following:
Then I run this code:
n,d = fraction(Gs)
num = Poly(n,s)
den =…

mpeli
- 347
- 3
- 6
0
votes
0 answers
Re-Ordering X,Y Data to define the bottom shape
I have data that is the definition of the shape of a bridge opening. I have developed code that cuts the bridge opening with a horizontal line as if it were the water level, including the intersection points on the bridge piers and walls. I want to…

Rudy Van Drie
- 91
- 2
- 11
0
votes
3 answers
R: bind columns after lapply() the poly() function
I want to add columns containing polynomials to a dataframe (DF).
Background: I need to use polynomials in a glmnet setting. I cannot call poly() directly in the glmnet() estimation command. I get an error, likely because my “Xtrain” data contain…

Peter
- 2,120
- 2
- 19
- 33
-2
votes
1 answer
3ds max wont weld vertices of poly made from shape
So I have tried to make a glass panel of car headlight by caping, extruding and so on. It didnt work, so I have created a spline from shape I need and somehow turned it into poly and now I am trying to weld vertices to the base. It doesnt work.…

DaveOshiCZ
- 27
- 1
- 1
- 4