Squares to a minus number

조회 수: 3 (최근 30일)
Liz Courtney
Liz Courtney 2019년 11월 10일
댓글: Image Analyst 2019년 11월 10일
How do I evaluate
Y to the square of -2

답변 (2개)

Image Analyst
Image Analyst 2019년 11월 10일
Try this
exponent = (-2)^2; % Square of -2
result = Y .^ exponent

James Mwage
James Mwage 2019년 11월 10일
y=(-2)^2
is what I would do
  댓글 수: 1
Image Analyst
Image Analyst 2019년 11월 10일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by