In the following equation do i perform the sum first or the power of 2 first?
(sum(k.*cos(b)).^2)

 采纳的回答

Roger Stafford
Roger Stafford 2015-2-27
编辑:Roger Stafford 2015-2-27

1 个投票

As it stands, the summation occurs first, followed by taking the square of that sum. You should be able to determine that from the parentheses.
In case 'b' is more than a one-dimensional array, there will of course be many sums and the square of each one is taken.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by