Squares to a minus number
1 回表示 (過去 30 日間)
古いコメントを表示
How do I evaluate
Y to the square of -2
0 件のコメント
回答 (2 件)
Image Analyst
2019 年 11 月 10 日
Try this
exponent = (-2)^2; % Square of -2
result = Y .^ exponent
0 件のコメント
James Mwage
2019 年 11 月 10 日
y=(-2)^2
is what I would do
1 件のコメント
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 Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!