Problem 52467. Easy Sequences 2: Trigonometric function with integral input and output
17.78% Correct | 82.22% Incorrect
Last Solution submitted on Feb 21, 2023
Mark Posen on 10 Dec 2021
Can someone please explain test case 4? I don't see what is going on, as intmax-4 is clearly not 1234567891011.
I could only pass this case by bodging x inside the function, which is clearly unsatisfactory.
Dyuman Joshi on 10 Dec 2021
intmax - 4 is not equal to 1234567891011. But
F(intmax-4) is equal to F(1234567891011). The given function can have same output for different inputs.
Ramon Villamangca on 14 Dec 2021
Trigonometric functions are naturally periodic. So we can expect same function return from different inputs.
Solution CommentsShow comments
Problem Recent Solvers30
Find nearest prime number less than input number
More from this Author116
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!