Re: Division of two complex numbers

Liste des GroupesRevenir à s math 
Sujet : Re: Division of two complex numbers
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : sci.math
Date : 21. Jan 2025, 03:50:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vmn21q$3khnb$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
On 1/20/2025 3:15 PM, Moebius wrote:
Am 21.01.2025 um 00:03 schrieb Chris M. Thomasson:
On 1/20/2025 2:48 PM, Moebius wrote:
Am 20.01.2025 um 23:40 schrieb Chris M. Thomasson:
>
[...] Fwiw, a fun part of GLSL is doing stuff like:
>
vec3 a = vec3(.25, 1, .75);
vec2 b = a.xz;
vec2 c = b + vec2(.75, .25);
>
c now equals (1, 1)
>
Nice.
>
>
In math:
>
a := (.25, 1, .75) ,
>
b := (a_1, a_3) ,
>
c := b + (.75, .25) .
>
Then c = (1, 1) .
>
:-P
>
>
Question. What if
>
vec4 a = vec4(.25, 1, .75, .999);
>
vec3 b = a.xz<?>;
>
I'd like to get b == (.25, .75, .999). :-P
>
>
That would be:
>
vec4 a = vec4(.25, 1, .75, .999);
vec3 b = a.xzw;
>
;^)
 C'mon... lol
 And then?
vec4's in GLSL are (x, y, z, w) or
vec4 a = vec4(1, 2, 3, 4);
a[1] = 3.f;
now, a.y = 3   :^)

 xyzw ... uv ...
 I usually use the "series"
       x, y, z, u, v, w
 in math/physics.
GLSL has x, y, z, w or [0], [1], [2], [3]

Date Sujet#  Auteur
20 Jan 25 * Division of two complex numbers94Richard Hachel
20 Jan 25 +* Re: Division of two complex numbers80Moebius
20 Jan 25 i`* Re: Division of two complex numbers79Richard Hachel
20 Jan 25 i `* Re: Division of two complex numbers78Richard Hachel
20 Jan 25 i  +- Re: Division of two complex numbers1Moebius
20 Jan 25 i  `* Re: Division of two complex numbers76Python
20 Jan 25 i   `* Re: Division of two complex numbers75Richard Hachel
20 Jan 25 i    `* Re: Division of two complex numbers74Python
20 Jan 25 i     `* Re: Division of two complex numbers73Richard Hachel
20 Jan 25 i      `* Re: Division of two complex numbers72Python
20 Jan 25 i       `* Re: Division of two complex numbers71Moebius
20 Jan 25 i        +- Re: Division of two complex numbers1Python
20 Jan 25 i        +* Re: Division of two complex numbers3Chris M. Thomasson
20 Jan 25 i        i+- Re: Division of two complex numbers1Chris M. Thomasson
20 Jan 25 i        i`- Re: Division of two complex numbers1Moebius
20 Jan 25 i        `* Re: Division of two complex numbers66Tom Bola
20 Jan 25 i         +* Re: Division of two complex numbers3Tom Bola
21 Jan 25 i         i`* Re: Division of two complex numbers2FromTheRafters
21 Jan 25 i         i `- Re: Division of two complex numbers1Tom Bola
20 Jan 25 i         `* Re: Division of two complex numbers62Python
20 Jan 25 i          +* Re: Division of two complex numbers31Chris M. Thomasson
20 Jan 25 i          i`* Re: Division of two complex numbers30Python
20 Jan 25 i          i `* Re: Division of two complex numbers29Chris M. Thomasson
20 Jan 25 i          i  `* Re: Division of two complex numbers28Python
20 Jan 25 i          i   `* Re: Division of two complex numbers27Chris M. Thomasson
20 Jan 25 i          i    `* Re: Division of two complex numbers26Python
20 Jan 25 i          i     `* Re: Division of two complex numbers25Chris M. Thomasson
20 Jan 25 i          i      +* Re: Division of two complex numbers13Python
20 Jan 25 i          i      i`* Re: Division of two complex numbers12Chris M. Thomasson
20 Jan 25 i          i      i `* Re: Division of two complex numbers11Python
20 Jan 25 i          i      i  +- Re: Division of two complex numbers1Moebius
20 Jan 25 i          i      i  `* Re: Division of two complex numbers9Chris M. Thomasson
20 Jan 25 i          i      i   `* Re: Division of two complex numbers8Moebius
21 Jan 25 i          i      i    `* Re: Division of two complex numbers7Chris M. Thomasson
21 Jan 25 i          i      i     `* Re: Division of two complex numbers6Moebius
21 Jan 25 i          i      i      `* Re: Division of two complex numbers5Chris M. Thomasson
21 Jan 25 i          i      i       +- Re: Division of two complex numbers1Moebius
21 Jan 25 i          i      i       `* Re: Division of two complex numbers3Moebius
21 Jan 25 i          i      i        `* Re: Division of two complex numbers2Chris M. Thomasson
22 Jan 25 i          i      i         `- Re: Division of two complex numbers1Chris M. Thomasson
20 Jan 25 i          i      `* Re: Division of two complex numbers11Moebius
20 Jan 25 i          i       `* Re: Division of two complex numbers10Chris M. Thomasson
20 Jan 25 i          i        `* Re: Division of two complex numbers9Moebius
20 Jan 25 i          i         `* Re: Division of two complex numbers8Python
20 Jan 25 i          i          +- Re: Division of two complex numbers1Moebius
20 Jan 25 i          i          `* Re: Division of two complex numbers6Chris M. Thomasson
20 Jan 25 i          i           `* Re: Division of two complex numbers5Moebius
20 Jan 25 i          i            `* Re: Division of two complex numbers4Moebius
20 Jan 25 i          i             `* Re: Division of two complex numbers3Chris M. Thomasson
20 Jan 25 i          i              `* Re: Division of two complex numbers2Moebius
29 Jan 25 i          i               `- Re: Division of two complex numbers1Chris M. Thomasson
20 Jan 25 i          `* Re: Division of two complex numbers30Tom Bola
20 Jan 25 i           +* Re: Division of two complex numbers4Chris M. Thomasson
20 Jan 25 i           i`* Re: Division of two complex numbers3Tom Bola
20 Jan 25 i           i `* Re: Division of two complex numbers2Moebius
20 Jan 25 i           i  `- Re: Division of two complex numbers1Tom Bola
20 Jan 25 i           `* Re: Division of two complex numbers25Python
20 Jan 25 i            +* Re: Division of two complex numbers6Tom Bola
20 Jan 25 i            i+- Re: Division of two complex numbers1Python
20 Jan 25 i            i+- Re: Division of two complex numbers1Moebius
20 Jan 25 i            i`* Re: Division of two complex numbers3Tom Bola
20 Jan 25 i            i +- Re: Division of two complex numbers1Moebius
21 Jan 25 i            i `- Re: Division of two complex numbers1Richard Hachel
20 Jan 25 i            `* Re: Division of two complex numbers18Tom Bola
20 Jan 25 i             +- Re: Division of two complex numbers1Python
20 Jan 25 i             `* Re: Division of two complex numbers16Moebius
20 Jan 25 i              +- Re: Division of two complex numbers1Tom Bola
21 Jan 25 i              `* Re: Division of two complex numbers14Tom Bola
21 Jan 25 i               +- Re: Division of two complex numbers1Python
21 Jan 25 i               `* Re: Division of two complex numbers12Moebius
21 Jan 25 i                `* Re: Division of two complex numbers11Tom Bola
21 Jan 25 i                 `* Re: Division of two complex numbers10Moebius
21 Jan 25 i                  +* Re: Division of two complex numbers3Tom Bola
21 Jan 25 i                  i`* Division of complex.2Richard Hachel
21 Jan 25 i                  i `- Re: Division of complex.1Tom Bola
21 Jan 25 i                  `* Re: Division of two complex numbers6Moebius
21 Jan 25 i                   +* Re: Division of two complex numbers2Moebius
21 Jan 25 i                   i`- Re: Division of two complex numbers1Richard Hachel
21 Jan 25 i                   `* Re: Division of two complex numbers3Tom Bola
21 Jan 25 i                    `* Re: Division of two complex numbers2Moebius
22 Jan 25 i                     `- Re: Division of two complex numbers1Tom Bola
20 Jan 25 +* Re: Division of two complex numbers9Jim Burns
20 Jan 25 i+- Re: Division of two complex numbers1Jim Burns
20 Jan 25 i`* Re: Division of two complex numbers7Richard Hachel
20 Jan 25 i +* Re: Division of two complex numbers5Moebius
20 Jan 25 i i+* Re: Division of two complex numbers2Chris M. Thomasson
20 Jan 25 i ii`- Re: Division of two complex numbers1Chris M. Thomasson
21 Jan 25 i i`* Re: Division of two complex numbers2Richard Hachel
21 Jan 25 i i `- Re: Division of two complex numbers1Moebius
21 Jan 25 i `- Re: Division of two complex numbers1Jim Burns
21 Jan 25 `* Re: Division of two complex numbers4Ross Finlayson
21 Jan 25  `* Re: Division of two complex numbers3Richard Hachel
22 Jan 25   +- Re: Division of two complex numbers (is under-defined, like 0^0)1Ross Finlayson
22 Jan 25   `- Re: Division of two complex numbers (is under-defined, like 0^0)1Ross Finlayson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal