|
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.
|
|
Roots of a cubic equation? 'The roots of cubic equation 2x^3 + 3x + 4 = 0 are a, b, and c.
Find the cubic equation, with integer coefficients, having roots ab, bc, and ac.'
I'm so stuck! Thanks in advance.
Started by EC on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at yahoo):
|
|
Hi all,
I need to write an algorithm which finds the real roots to a cubic equation.
I am applying a cubic equation of state to a chemical engineering problem, and a specific cubic equation needs to be solved thousands of times over the course of one ...
Started by outermeasure on
, 2 posts
by 2 people.
Answer Snippets (Read the full thread at sosmath):
ANy....
I am applying a cubic equation of state to a chemical engineering problem, and a specific cubic equation roots.
|
Ask your Facebook Friends
|
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.
|
|
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.
|
|
How do you solve:
i know the solutions cant be real, but how would you solve this algebraically not graphically or any other means.
thank you
Started by gaussrelatz on
, 4 posts
by 2 people.
Answer Snippets (Read the full thread at mymathforum):
Living in their pools.
Here is some information:
http://en.wikipedia.org/wiki/Cubic_function#Roots_of_a_cubic_function
The above cubic has 3 real distinct roots, as its discriminant is positive.
|
|
The method I am describing today was given by Girolamo Cardano-an Italian mathematician,who first showed this method in his book Ars Magna.
Let us attempt to solve the general cubic equation:
Later,I will show you how this method is used for some cubic...
Started by anonimnystefy on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at mathisfunforum):
Explanation,you can look at this page: Method of Solving General Cubic Equations.
|
|
Solve in positive integers the cubic
x^3–(x+1)^2=2001
Started by tony123 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at mathisfunforum):
It is ....
The solution (obviously) is 13 but you know how Dirty n Untidy n Ugly the cubic equations bricks without clay." Hi;
He probably graphed the equation and eyeballed the root as 13 developed for solving a general cubic.
|
|
I am unsure as what this question means:
Consider the cubic population model: dN/dt = cN(N-k)(1-N) where c>0 and 0<k<1
If the the initial populations is N_0 describe without proof the future of the population, distinguish the various cases on...
Started by sid9221 on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at physicsforums):
If N< 0.
We can write the equation as dN/dt= (-1)(N- 0)(N- k)(N- 1).
Happens between those values.
|