Diagonal Product of A Square Matrix
For a matrix A, calculate the product of its diagonal elements.
* Assume all input matrices are square & corresponding element...
Cricket - How Much More to Beat Bradman?
Sir Don Bradman famously needed only 4 runs in his final innings to retire with an average of 100. Out for a duck, he ended inst...
4ヶ月 前
解決済み
Alternating sum
Given vector x, calculate the alternating sum
y = x(1) - x(2) + x(3) - x(4) + ...
Calculate area of sector
A=function(r,seta)
r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...
convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them.
The first input C is ...
Simple Interest : Calculate Future Value
Theorem : Simple Interest
where;
F : Future Value
P : Present Value
r : Annual simple interest rate (decimal)
t : Time in...