• excral@feddit.org
        link
        fedilink
        English
        arrow-up
        4
        ·
        9 hours ago

        This is technically incorrect. While the square root is both the positive and the negative solution, the sqrt (√) operator results in the principal square root. For nonnegative numbers this is the nonnegative square root and more generalised for complex numbers it’s the square root that halves the complex phase.

    • m8052@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      4
      ·
      edit-2
      21 hours ago

      Square root definition does not allow a negative number as an input. Only positives and zero. Although it is possible to expand the definition to negative numbers, complex numbers, matrices… So unless you followed a course where you thoroughly defined your expansion of sqrt, it only applies to real, positives number and zero. Its the thing with math, you have to define what you work with.

      In my case, I did prep courses for entrance exam to engineering schools (something like in dead poet society but more modern), using sqrt(-1) somewhere would be an instant 0 mark. Like forgetting a unit in a physics test answer.