Cody

Problem 1156. Generate pi using logarithm

Solution 2598130

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

Test Suite

Test Status Code Input and Output
1   Pass
y_correct = pi; assert(isequal(gen_pi,y_correct))

ans = 3.1416

Suggested Problems

More from this Author6

Community Treasure Hunt

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

Start Hunting!