|
As part of a program I'm writing, I need to solve a cubic equation exactly (rather than using a numerical root finder):
a*x**3 + b*x**2 + c*x + d = 0.
I'm trying to use the equations from here . However, consider the following code (this is Python but...
Started by Morgoth on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can trim down the cubic solver....
I also solved the equation using Wolfram of here:
roots3and4.c
This contains quadratic, cubic, and quartic solvers which return all solutions.
I've looked at the Wikipedia article and your program.
|
|
Please please need help with cubic equation? Given that p(x) = x^4 + ax^3 - x^2 + bx - 12 has a factor of x - 2 and x + 1 solve the equation p(x) = 0
please help me i have no idea how this is a cubic equation it has a degree of 4 ?? i done know how to...
Started by Shinzu on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at yahoo):
X-2)(x+2)(x+3) Who told you it was a cubic equation? It's a quartic equation (the highest exponent2 and -1 are zeroes of the equation, so:
16 + 8a - 4 + 2b - 12 = 0
1 - a - 1 - b - 12 = 0 - x^2 - 16x - 12 = 0 is our fourth....
|
|
What is the best way to approximate a cubic Bezier curve? Ideally I would want a function y(x) which would give the exact y value for any given x, but this would involve solving a cubic equation for every x value, which is too slow for my needs, and there...
Started by jtxx000 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're talking about Bezier from http://en.wikipedia.org/wiki/Cubic_equation#Summary , it would appear that there might be problems plane curves....
Just solve the cubic.
Solving the cubic equation by Cardano's method.
|
Ask your Facebook Friends
|
Can someone help me to find solution on how to calculate cubic root of the negative number using python?
>>> math.pow(-3, float(1)/3) nan
it does not work. Cubic root of the negative number is negative number. Any solutions?
Started by Vladimir Prudnikov on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
cubic_root(nr): if nr<0: return -math.pow(-nr, float(1)/3) else: return math.pow(nr, float(1)/3]
Taking the earlier answers and making it into a one-liner:
import math def cubic_root(x): return libm.cbrt.argtypes = [c_double] libm.cbrt....
|
|
R question: Looking for the fastest way to NUMERICALLY solve a bunch of arbitrary cubics known to have real coeffs and three real roots. The polyroot function in R is reported to use Jenkins-Traub's algorithm 419 for complex polynomials, but for real ...
Started by knot on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Google will give you than using the cubic solver in the GSL package (as suggested by knguyen above) is a matter.
Algorithm that exploits the structure of each equation using toric geometries.
|
|
This program uses the basics of derivatives of cubic functions, which are quadratic functions, to find the local maximum and minimum (if they exist) on any given cubic function in the form f(x)=ax^3+bx^2+cx+d where a, b, c, d are constants and a != 0
...
Started by randint on
, 11 posts
by 4 people.
Answer Snippets (Read the full thread at compsci):
The lower exponents are larger, making the equation: f(1/4) = x^4 - x^2 turn out to be a negative.
|
|
How many cubic feet equals 1 cubic yard?
Started by SUPERIORCARELANDSCAPING on
, 10 posts
by 8 people.
Answer Snippets (Read the full thread at lawnsite):
A better = total cyds needed....
|
|
Have a look at the polynomial
It's Galois group is solvable, because it's based on permutations
(3 4 5)(6 8 7)
(1 2 9)(3 4 5)(6 7 8)
(1 2)(3 6)(4 8)(5 7)
(3 6 9)(1 4 7)(2 5 8)
So, the roots of this polynomial (unlike most polynomials with degree 9) can...
Started by Markelov on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at artofproblemsolving):
Remark 1.
These cyclic groups correspond to cubic roots and square roots (radicals) over some subfields.
|
|
Can I draw a curve, and get Mathcad to predict its equation!!!!
Started by HinndNaser on
, 14 posts
by 7 people.
Answer Snippets (Read the full thread at ptc):
Mike I literally want to draw a curve on a paper, and get Mathcad to predict the equation fitting to get the equation....
For example a cubic spline, which will pass through every point, but is that "the" equation? ahh got with it.
|
|
I have a spreadsheet with a number of graphs on, and I have displayed the trend-lines / regression lines on these graphs. These are not simple linear regression lines, but are high order polynomial ones.
Is there any way that I can use the equations of...
Started by a_m0d on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
This is designed for fitting a Cubic, but can.
Then you can put the coefficients back a quick demo sheet together, you can download here .
If you can access the regression equation inside VBA.
|