Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #447266

Re: Gabriel and Definitions and function domain

From "Chris M. Thomasson" <invalid_chris_thomasson_invalid@invalid.com>
Newsgroups sci.math
Subject Re: Gabriel and Definitions and function domain
Date 2019-06-28 15:36 -0700
Organization Aioe.org NNTP Server
Message-ID <qf64p9$p7f$1@gioia.aioe.org> (permalink)
References (10 earlier) <qevlvf$cl$1@gioia.aioe.org> <c07fbd12-9959-492c-9451-cbc1812151aa@googlegroups.com> <1c91e2cb-de03-4c73-97db-5f642b775b98@googlegroups.com> <f747d8ae-117d-42b3-a0c9-f9e86a1d37c5@googlegroups.com> <19e9d36e-dc8a-4b24-9c11-3379004c698f@googlegroups.com>

Show all headers | View raw


On 6/28/2019 10:16 AM, vg.acid@gmail.com wrote:
> On Friday, June 28, 2019 at 7:29:40 AM UTC-4, Jew Lover wrote:
>> On Friday, 28 June 2019 01:49:47 UTC-4, Zelos Malum  wrote:
>>>> i IS equal to sqrt(-1) and this is why it is a junk concept. E.O.D.
>>>
>>> That is only true once we extend squareroot to encompass negative numbers.
>>
>> False. It is always true regardless of negative or positive square root.
>>
>> i = sqrt(-1)  and -i=-sqrt(-1)  DOES NOT change the fact that i = sqrt(-1).
>>
>> Your argument introduce a red herring to deflect from your misguided notions.
>>
>>> And even then your statement is false
>>>
>>> Do you understand that for sqrt to work on negative numbers, we must first extend the domain of sqrt to include negative numbers which require we extend real numbers first? Yes or no.
> 
> Let us diverge from your word games. First, whether or not something is a number is a name of what you want to call it, and if you want to call a number something that measures, then complex numbers aren't numbers, and I will still like complex fields. I could give them a new name, but they do so many numbery things we just call them numbers. Whether or not complex numbers truly exist is also not a question we will worry about. Does all of mathematics exist? Or is it just the integers? What about it being just geometry. Regardless, we can form consistent concepts alongside these, invented or discovered, it won't matter.
> 
> Now, let us keep our normal fields. Again, let us not call them numbers, since I know that gets you riled up. Namely, the real field. If you want to just now, the rational field. Whatever.
> 
> All right. Suppose we were to have an arbitrary element, call it i, such that i^2=-1. We consider stuff along the forms of a+bi, a and b being elements of the real field. Equality will mean a+bi=c+di iff a=b and c=d. How might we define addition? The answer seems obvious: (a+bi)+(c+di)=(a+c)+(b+d)i. Great. How about multiplication? If we want to preserve the nature of arithmetic, we might expect the distributive property to hold. We won't assume in advance this can be done, but for motivation, (a+bi)(c+di)=(ac-bd)+(ad+bc)i. Let us define this as the multiplication. Now, clearly (0+0i)+(a+bi)=(a+bi), and I will let it be to you to show the associative, commutative, and inverse law hold. Multiplication is a bit more tricky but I will once again leave that to you. Write z=a+bi, then you can check a/|z|^2-b/|z|^2 i. To show uniqueness, assume (a+bi)(c+di)=1, and show by a system of linear equations, that c and d must be of corresponding.
> 
> This is a completely consistent construction. Now, we can start to interpret what this would mean. We could then alternatively define it with matrices, ordered pairs, quotient fields, matrices, or geometry. Fix a point and construct a typical cartesian plane. Define addition of points component wise, and multiplication as adding the rotation along the angle, and then scaling it up by the distance to the origin, though showing this also has the same properties is a bit trickier.
> 
> Now, after we have done this, can consider the values z such that z^2=-1, which, being equivalent to (z+i)(z-i)=0, means z=i or z=-i, and then define the principal square root to be the positive one.
> 

The principal root always shows up at the argument of z divided by the 
power p. So, for sqrt, p = 2. So, the base angle would be equal to 
arg(z) / p. The radius is the absolute value of z raised to the power of 
1 / p, or pow(abs(z), 1.0 / p).

Now we have a polar form of the principal root: A radius and angle! To 
get the other roots. Take 2 for now. We simply add pi2 / p to the angle 
of the principal. Here is some C++ example code of mine, that can store 
real data in the roots of these complex numbers... ;^)

https://groups.google.com/d/topic/comp.lang.c++/bB1wA4wvoFc/discussion


A relevant function:
_______________________________
// the integer p shall not be zero
// create abs(p) roots of z wrt z^(1/p);
// store them in out, and return the average error.
ct_float
ct_roots(
      ct_complex const& z,
      ct_int p,
      ct_complex_vec& out
) {
      assert(p != 0);

      // Gain the basics
      ct_float radius = std::pow(std::abs(z), 1.0 / p);
      ct_float angle_base = std::arg(z) / p;
      ct_float angle_step = (CT_PI * 2.0) / p;

      // Setup the iteration
      ct_uint n = std::abs(p);
      ct_float avg_err = 0.0;

      // Calculate the n roots...
      for (ct_uint i = 0; i < n; ++i)
      {
          // our angle
          ct_float angle = angle_step * i;

          // our point
          ct_complex c = {
              std::cos(angle_base + angle) * radius,
              std::sin(angle_base + angle) * radius
          };

          // output data
          out.push_back(c);

          // Raise our root the the power...
          ct_complex raised = std::pow(c, p);

          // Sum up the Go% damn floating point errors!
          avg_err = avg_err + std::abs(raised - z);
      }

      // gain the average error sum... ;^o
      return avg_err / n;
}
_______________________________


It returns a vector of roots where each element therein, raised to the 
power of p equals z. The number of roots is equal to the abs(p). It can 
handle negative integer powers.

Back to sci.math | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Gabriel and Definitions and function domain Zelos Malum <zelos.malum@gmail.com> - 2019-06-23 22:36 -0700
  Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-24 04:32 -0700
    Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-24 04:34 -0700
    Re: Gabriel and Definitions and function domain j4n bur53 <bursejan@gmail.com> - 2019-06-24 06:49 -0700
      Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-24 07:39 -0700
        Re: Gabriel and Definitions and function domain j4n bur53 <bursejan@gmail.com> - 2019-06-24 11:03 -0700
          Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-24 17:15 -0700
            Re: Gabriel and Definitions and function domain Me <franz.fritschee.ff@gmail.com> - 2019-06-24 23:04 -0700
              Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-25 07:28 -0700
            Re: Gabriel and Definitions and function domain j4n bur53 <bursejan@gmail.com> - 2019-06-25 02:12 -0700
              Re: Gabriel and Definitions and function domain Me <franz.fritschee.ff@gmail.com> - 2019-06-25 03:54 -0700
    Re: Gabriel and Definitions and function domain Zelos Malum <zelos.malum@gmail.com> - 2019-06-24 22:27 -0700
      Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-25 07:26 -0700
        Re: Gabriel and Definitions and function domain Me <franz.fritschee.ff@gmail.com> - 2019-06-25 08:24 -0700
          Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-25 13:26 -0700
            Re: Gabriel and Definitions and function domain Me <franz.fritschee.ff@gmail.com> - 2019-06-25 13:52 -0700
              Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-25 17:33 -0700
                Re: Gabriel and Definitions and function domain Me <franz.fritschee.ff@gmail.com> - 2019-06-25 23:51 -0700
                Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-26 04:39 -0700
                Re: Gabriel and Definitions and function domain "Chris M. Thomasson" <invalid_chris_thomasson_invalid@invalid.com> - 2019-06-26 04:46 -0700
                Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-26 07:11 -0700
                Re: Gabriel and Definitions and function domain Zelos Malum <zelos.malum@gmail.com> - 2019-06-27 22:49 -0700
                Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-28 04:29 -0700
                Re: Gabriel and Definitions and function domain vg.acid@gmail.com - 2019-06-28 10:16 -0700
                Re: Gabriel and Definitions and function domain "Chris M. Thomasson" <invalid_chris_thomasson_invalid@invalid.com> - 2019-06-28 15:36 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 16:00 -0700
                Re: Gabriel and Definitions and function domain "Chris M. Thomasson" <invalid_chris_thomasson_invalid@invalid.com> - 2019-06-28 16:31 -0700
                Re: Gabriel and Definitions and function domain "Chris M. Thomasson" <invalid_chris_thomasson_invalid@invalid.com> - 2019-06-28 16:51 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 17:44 -0700
                Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-28 18:03 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 18:13 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 18:36 -0700
                Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-28 18:45 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 18:53 -0700
            Re: Gabriel and Definitions and function domain vg.acid@gmail.com - 2019-06-28 10:29 -0700
              Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-28 12:31 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 13:47 -0700
                Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-28 14:11 -0700
                Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-28 14:12 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 14:50 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 14:59 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 14:59 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 14:52 -0700
                Re: Gabriel and Definitions and function domain Simply Curious <vg.acid@gmail.com> - 2019-06-28 14:57 -0700
        Re: Gabriel and Definitions and function domain Zelos Malum <zelos.malum@gmail.com> - 2019-06-25 22:33 -0700
        Re: Gabriel and Definitions and function domain moroney@world.std.spaamtrap.com (Michael Moroney) - 2019-06-26 14:24 +0000
          Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-26 07:33 -0700
            Re: Gabriel and Definitions and function domain moroney@world.std.spaamtrap.com (Michael Moroney) - 2019-06-26 14:36 +0000
              Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-26 07:44 -0700
                Re: Gabriel and Definitions and function domain moroney@world.std.spaamtrap.com (Michael Moroney) - 2019-06-26 15:13 +0000
                Re: Gabriel and Definitions and function domain vg.acid@gmail.com - 2019-06-28 00:20 -0700
                Re: Gabriel and Definitions and function domain Jew Lover <thenewcalculus@gmail.com> - 2019-06-28 04:30 -0700
                Re: Gabriel and Definitions and function domain vg.acid@gmail.com - 2019-06-28 09:25 -0700
                Re: Gabriel and Definitions and function domain vg.acid@gmail.com - 2019-06-28 09:53 -0700

csiph-web