Post Reply 
Coding Challenge for Vieta's Formulas
07-13-2018, 06:35 PM (This post was last modified: 07-13-2018 07:42 PM by Namir.)
Post: #6
RE: Coding Challenge for Vieta's Formulas
(07-13-2018 02:46 PM)Valentin Albillo Wrote:  .
G'day, Namir:

Just a question:

(07-12-2018 11:15 PM)Namir Wrote:  The parameters are the array X() which represents the guesses for the roots, and array a() that represents the polynomial coefficients

As you say X() represents the guesses for the roots, which might be complex, then we must assume X() is a complex array, right ?

Also, you say the array a() represents the coefficients. Are they assumed to be complex in the general case or are you considering just polynomials with real coefficients ?

Finally, pretty please, correct that "Foummulas" (sic) in the thread title, it's a real eyesore. XD

Regards.
V.
.

Yes both arrays X() and a() can be complex and the mathematical operations work with complex numbers. For programming languages like Matlab, the operations and functions automatically handle real and complex numbers. For other languages (not sure about Python) one may have to use complex operators and functions just to be sure that the math expressions can handle real and complex numbers.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Coding Challenge for Vieta's Formulas - Namir - 07-13-2018 06:35 PM



User(s) browsing this thread: 1 Guest(s)