Borrar filtros
Borrar filtros

Squares to a minus number

1 visualización (últimos 30 días)
Liz Courtney
Liz Courtney el 10 de Nov. de 2019
Comentada: Image Analyst el 10 de Nov. de 2019
How do I evaluate
Y to the square of -2

Respuestas (2)

Image Analyst
Image Analyst el 10 de Nov. de 2019
Try this
exponent = (-2)^2; % Square of -2
result = Y .^ exponent

James Mwage
James Mwage el 10 de Nov. de 2019
y=(-2)^2
is what I would do
  1 comentario
Image Analyst
Image Analyst el 10 de Nov. de 2019
Yes, I thought of that also. The wording is ambiguous. What I thought "Y to the square of -2" most likely meant is "Y to the power of the square of -2", because of the word "to" in the phrase, though your guess is also a possible interpretation/guess at what she really meant. Perhaps Liz will re-state the question with more precise language.

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by