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.62% Correct | 80.38% Incorrect
Last Solution submitted on Feb 09, 2025

Problem Comments

Solution Comments

Show comments

Group

Easy Sequences Volume I Image
Easy Sequences Volume I
  • 10 Problems
  • 8 Finishers

Problem Recent Solvers37

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page