Given and angle A in radians and a positive integer x, evaluate the following product summation:
which 'directly' translates to Matlab as:
>> PS = @(A,x) sum(arrayfun(@(n) sum(arrayfun(@(m) prod(arrayfun(@(k) 2*sin(k*pi/m+A),0:m-1)),1:n)),1:x));
For example
and
:
>> x = 3; A = 1;
>> PS(A,x)
ans =
8.9683
Please present your answer rounded-off to nearest 4 decimal places.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers2
Suggested Problems
-
395 Solvers
-
Sum of first n terms of a harmonic progression
499 Solvers
-
292 Solvers
-
Find out sum and carry of Binary adder
1701 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1727 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!