Computer Science, asked by amanpreet84, 6 months ago

What is the output of: Math.sqrt(-36)?​

Answers

Answered by SP85
4

Simple

So be begin now,

-6 × - 6

= - 6

Answered by stalwartajk
0

Answer:

Frankly speaking the output of Math.sqrt(-36) is NaN, which stands for "Not a Number". This is because the square root of a negative number is not a real number, and the sqrt function in JavaScript only operates on real numbers.

Explanation:

Normally in mathematics, the square root of a non-negative number is a real number that, when multiplied by itself, gives the original non-negative number. For example, the square root of 36 is 6, because 6 multiplied by 6 equals 36.

However, the square root of a negative number is not a real number. Instead, it is an imaginary number, which is a complex number that can be expressed as a real number multiplied by the imaginary unit i. For example, the square root of -1 is i, where i is the imaginary unit that is defined as the square root of -1.

Moreover in JavaScript, the Math.sqrt() function is designed to calculate the square root of a real number. When you pass a negative number as an argument to this function, it returns NaN, which means "Not a Number". This is because the square root of a negative number is not a real number and cannot be represented in JavaScript's numeric data type.

Learn more about JavaScript: https://brainly.in/question/27637818

Learn more about real numbers: https://brainly.in/question/379923

#SPJ6

Similar questions