Re: Equation complexe

Liste des GroupesRevenir à math 
Sujet : Re: Equation complexe
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : sci.math
Date : 25. Feb 2025, 22:49:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpldtr$26m33$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 2/25/2025 6:23 AM, Richard Hachel wrote:
x^4=-81
 What is x?
Try to forgive the floating point precision aspects, but, the roots are the r's, raising them to the 4'th power gives the p's:
_____________________
r0 = (2.12132,2.12132)
r1 = (-2.12132,2.12132)
r2 = (-2.12132,-2.12132)
r3 = (2.12132,-2.12132)
p0 = (-81,-7.08124e-06)
p1 = (-81,-1.93183e-06)
p2 = (-81,-7.53158e-05)
p3 = (-81,4.57051e-05)
_____________________
To gain a root, here is my code:
_____________________
ct_complex
root_calc(
     ct_complex const& z,
     int p,
     int n
) {
     float radius = std::pow(std::abs(z), 1.0 / p);
     float angle_base = std::arg(z) / p;
     float angle_step = (CT_PI * 2.0) / p;
     float angle = angle = angle_step * n;
     ct_complex c = {
         std::cos(angle_base + angle) * radius,
         std::sin(angle_base + angle) * radius
     };
     return c;
}
_____________________
Also, this is not using floating point for roots, just signed integers.

Date Sujet#  Auteur
25 Feb 25 * Equation complexe101Richard Hachel
25 Feb 25 +* Re: Equation complexe73Jim Burns
25 Feb 25 i`* Re: Equation complexe72Richard Hachel
25 Feb 25 i +* Re: Equation complexe3Python
25 Feb 25 i i`* Re: Equation complexe2Richard Hachel
25 Feb 25 i i `- Re: Equation complexe1Python
25 Feb 25 i +* Re: Equation complexe5guido wugi
25 Feb 25 i i`* Re: Equation complexe4Richard Hachel
25 Feb 25 i i +* Re: Equation complexe2Python
25 Feb 25 i i i`- Re: Equation complexe1Python
26 Feb 25 i i `- Re: Equation complexe1Jim Burns
26 Feb 25 i +* Re: Equation complexe21sobriquet
26 Feb 25 i i`* Re: Equation complexe20sobriquet
26 Feb 25 i i +* Re: Equation complexe16Moebius
26 Feb 25 i i i+* Re: Equation complexe12Richard Hachel
26 Feb 25 i i ii`* Re: Equation complexe11Python
26 Feb 25 i i ii +* Re: Equation complexe2Moebius
26 Feb 25 i i ii i`- Re: Equation complexe1Python
26 Feb 25 i i ii `* Re: Equation complexe8Richard Hachel
26 Feb 25 i i ii  +- Re: Equation complexe1Python
26 Feb 25 i i ii  `* Re: Equation complexe6Python
26 Feb 25 i i ii   `* Re: Equation complexe5Richard Hachel
26 Feb 25 i i ii    `* Re: Equation complexe4Python
26 Feb 25 i i ii     `* Re: Equation complexe3Python
26 Feb 25 i i ii      `* Re: Equation complexe2Richard Hachel
26 Feb 25 i i ii       `- Re: Equation complexe1Python
27 Feb 25 i i i`* Re: Equation complexe3Moebius
27 Feb 25 i i i `* Re: Equation complexe2Richard Hachel
27 Feb 25 i i i  `- Re: Equation complexe1sobriquet
26 Feb 25 i i `* Re: Equation complexe3Richard Hachel
26 Feb 25 i i  `* Re: Equation complexe2sobriquet
26 Feb 25 i i   `- Re: Equation complexe1Richard Hachel
26 Feb 25 i `* Re: Equation complexe42Jim Burns
26 Feb 25 i  `* Re: Equation complexe41Richard Hachel
26 Feb 25 i   +* Re: Equation complexe39Python
26 Feb 25 i   i`* Re: Equation complexe38Richard Hachel
26 Feb 25 i   i `* Re: Equation complexe37Python
26 Feb 25 i   i  `* Re: Equation complexe36Richard Hachel
26 Feb 25 i   i   +* Re: Equation complexe5Python
26 Feb 25 i   i   i+- Re: Equation complexe1Richard Hachel
27 Feb 25 i   i   i`* Re: Equation complexe3Moebius
27 Feb 25 i   i   i `* Re: Equation complexe2Richard Hachel
28 Feb 25 i   i   i  `- Re: Equation complexe1Chris M. Thomasson
26 Feb 25 i   i   `* Re: Equation complexe30efji
26 Feb 25 i   i    `* Re: Equation complexe29Richard Hachel
26 Feb 25 i   i     +* Re: Equation complexe2Python
27 Feb 25 i   i     i`- Re: Equation complexe1Moebius
27 Feb 25 i   i     `* Re: Equation complexe26joes
27 Feb 25 i   i      `* Re: Equation complexe25Richard Hachel
27 Feb 25 i   i       +- Re: Equation complexe1Python
27 Feb 25 i   i       +* Re: Equation complexe4Jim Burns
27 Feb 25 i   i       i`* Re: Equation complexe3Jim Burns
27 Feb 25 i   i       i `* Re: Equation complexe2Richard Hachel
28 Feb 25 i   i       i  `- Re: Equation complexe1Chris M. Thomasson
28 Feb 25 i   i       `* Re: Equation complexe19Chris M. Thomasson
28 Feb 25 i   i        +* Re: Equation complexe17Richard Hachel
28 Feb 25 i   i        i`* Re: Equation complexe16sobriquet
28 Feb 25 i   i        i `* Re: Equation complexe15Richard Hachel
28 Feb 25 i   i        i  `* Re: Equation complexe14sobriquet
28 Feb 25 i   i        i   `* Re: Equation complexe13Richard Hachel
28 Feb 25 i   i        i    `* Re: Equation complexe12sobriquet
28 Feb 25 i   i        i     +* Re: Equation complexe8Richard Hachel
28 Feb 25 i   i        i     i`* Re: Equation complexe7efji
28 Feb 25 i   i        i     i +* Re: Equation complexe2Richard Hachel
28 Feb 25 i   i        i     i i`- Re: Equation complexe1Jim Burns
28 Feb 25 i   i        i     i +* Re: Equation complexe3Moebius
28 Feb 25 i   i        i     i i`* Re: Equation complexe2Richard Hachel
28 Feb 25 i   i        i     i i `- Re: Equation complexe1Chris M. Thomasson
28 Feb 25 i   i        i     i `- Re: Equation complexe1Richard Hachel
28 Feb 25 i   i        i     `* Re: Equation complexe3Moebius
28 Feb 25 i   i        i      `* Re: Equation complexe2Chris M. Thomasson
28 Feb 25 i   i        i       `- Re: Equation complexe1Chris M. Thomasson
28 Feb 25 i   i        `- Re: Equation complexe1Chris M. Thomasson
27 Feb 25 i   `- Re: Equation complexe1Jim Burns
25 Feb 25 +- Re: Equation complexe1Chris M. Thomasson
25 Feb 25 +* Re: Equation complexe5Chris M. Thomasson
25 Feb 25 i+- Re: Equation complexe1Chris M. Thomasson
25 Feb 25 i`* Re: Equation complexe3Richard Hachel
26 Feb 25 i +- Re: Equation complexe1Chris M. Thomasson
26 Feb 25 i `- Re: Equation complexe1Chris M. Thomasson
25 Feb 25 +* Re: Equation complexe19Chris M. Thomasson
25 Feb 25 i`* Re: Equation complexe18Richard Hachel
25 Feb 25 i +* Re: Equation complexe2Chris M. Thomasson
26 Feb 25 i i`- Re: Equation complexe1Chris M. Thomasson
26 Feb 25 i `* Re: Equation complexe15Chris M. Thomasson
26 Feb 25 i  `* Re: Equation complexe14Richard Hachel
26 Feb 25 i   +* Re: Equation complexe3Chris M. Thomasson
26 Feb 25 i   i`* Re: Equation complexe2Richard Hachel
26 Feb 25 i   i `- Re: Equation complexe1Chris M. Thomasson
26 Feb 25 i   +* Re: Equation complexe3Chris M. Thomasson
26 Feb 25 i   i`* Re: Equation complexe2efji
28 Feb 25 i   i `- Re: Equation complexe1Chris M. Thomasson
26 Feb 25 i   +* Re: Equation complexe2Chris M. Thomasson
26 Feb 25 i   i`- Re: Equation complexe1Chris M. Thomasson
26 Feb 25 i   `* Re: Equation complexe5Barry Schwarz
26 Feb 25 i    +- Re: Equation complexe1Richard Hachel
26 Feb 25 i    `* Re: Equation complexe3Moebius
26 Feb 25 i     `* Re: Equation complexe2Richard Hachel
26 Feb 25 i      `- Re: Equation complexe1Python
25 Feb 25 +- Re: Equation complexe1Barry Schwarz
28 Feb 25 `- Re: Equation complexe1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal