Problem 52467. Easy Sequences 2: Trigonometric function with integral input and output
Solution Stats
Problem Comments
-
3 Comments
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.
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.
Hi Mark,
Trigonometric functions are naturally periodic. So we can expect same function return from different inputs.
Solution Comments
Show commentsProblem Recent Solvers34
Suggested Problems
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1090 Solvers
-
Convert a numerical matrix into a cell array of strings
1791 Solvers
-
Fermat's Last Theorem - Fermat's conjecture
100 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1052 Solvers
-
Remove entire row and column in the matrix containing the input values
360 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!