Cody

Problem 45761. Sum of terms in a series 1 (★★★)

Solution 2521295

Submitted on 11 Jun 2020 by Ramesh Kumar V
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = -5; n = 3; y_correct = 8.946043924176486; assert(isequal(your_fcn_name(x,n),y_correct))

sum = 5 sum = 7.236067977499790 sum = 8.946043924176486

2   Pass
x = 1; n = 10; y_correct = 10; assert(isequal(your_fcn_name(x,n),y_correct))

sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10

Suggested Problems

More from this Author46

Community Treasure Hunt

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

Start Hunting!