Write a function to compute the following sum
Although a solution is available for general values of the coefficients, the coefficients are chosen so that a simpler form is possible.
Solution Stats
Problem Comments
6 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers11
Suggested Problems
-
260 Solvers
-
Find nearest prime number less than input number
1017 Solvers
-
Determine the number of odd integers in a vector
826 Solvers
-
Relative ratio of "1" in binary number
1596 Solvers
-
07 - Common functions and indexing 3
427 Solvers
More from this Author322
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
BTW, congrats on solving 4000 problems, Chris!
@ChrisR
I believe there is a problem with all of the tests except Test 2.
I can get Test 2 accepted when using the following formula:
(a * n + b) / (n * (n + m)) * (u^n / v^n)
Have I interpreted the equation incorrectly?
Thanks,
George Berken
Thanks, Christian!
George, thanks for pointing out the errors. Please hold on working on this problem while I correct it.
OK, try the problem now. I found a sign error in my work, and I checked the answers independently. What could possibly go wrong now? :-)
Chris,
Yes, it seems to be working now. I thought it was I that had the sign error!
Bill
@ChrisR
Thank you Chris for fixing.
George Berken