Problem 43564. Calculate sin(x) without sin(x)

Solution 1019415

Submitted on 17 Oct 2016 by George Papazafeiropoulos
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 = -pi/2; y_correct = sin(x); assert(abs(my_func(x)-y_correct)<0.0001)

2   Pass
user_solution = fileread('my_func.m'); assert(isempty(strfind(user_solution,'cos'))); assert(isempty(strfind(user_solution,'sin')));

Suggested Problems

More from this Author5

Community Treasure Hunt

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

Start Hunting!