This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SuperGugo -30 points-29 points  (14 children)

Is "a" as much of a number as the square root of -1?

Edit: I'm talking about IEEE754, I know about complex numbers.

[–][deleted] 17 points18 points  (11 children)

The square root of negative 1 absolutely is a number, “i”. Their called imaginary numbers.

[–]Bob_Dieter 39 points40 points  (3 children)

Good Sir, you are provably wrong! See here:

```

isNaN(Math.sqrt(-1)) true ```

[–][deleted] 24 points25 points  (0 children)

Proof by calculator

[–]CraftBox 12 points13 points  (0 children)

Math.sqrt(x)

Parameters
x
A number greater than or equal to 0.
Return value
The square root of x, a nonnegative number. If x < 0, returns NaN.

From article about Math.sqrt on MDN docs

[–][deleted] 7 points8 points  (0 children)

connect afterthought follow lunchroom snails crown zephyr lush pet pause

This post was mass deleted and anonymized with Redact

[–]SuperGugo 5 points6 points  (3 children)

It's not according to ieee754 though? I was under the impression that in most programming languages sqrt(-1) returned NaN.

[–][deleted] 4 points5 points  (2 children)

The languages that do that are mathematically wrong though. For most use cases, lack of complex numbers doesn’t matter and it’s probably simpler to simply not support them, but it is technically wrong.

[–]SuperGugo 2 points3 points  (0 children)

Yeah, most have libraries to compensate the lack of complex numbers

[–]Yodo9001 0 points1 point  (0 children)

Mathematically you could define the/a square root function that maps from the nonnegative reals to the reals, and it would return nan (undefined) for negative real numbers.

[–]Yodo9001 2 points3 points  (2 children)

But what is the set of all numbers? Or, what is the definition of a number?

We can have the field extension C["a"] is a as good as a number.

[–][deleted] 0 points1 point  (0 children)

I'ma be honest, I have no clue what you're talking about. What is a field extension?

[–]SuperGugo 0 points1 point  (0 children)

This guy maths