Easy Sequences 2: Trigonometric function with integral input and output - MATLAB Cody - MATLAB Central

Problem 52467. Easy Sequences 2: Trigonometric function with integral input and output

Difficulty:Rate
The function 'F', defined as:
,
will always return an integer if the input is a natural number (in radians). Furthermore, since the cosine and sine of 0, are 1 and 0 respectively, therefore F(0) = 0. For a given natural number 'n' your task is to find the value of F(n).

Solution Stats

19.0% Correct | 81.0% Incorrect
Last Solution submitted on May 15, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers38

Suggested Problems

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!