Compute an integral of a product of sinusoids - MATLAB Cody - MATLAB Central

Problem 51137. Compute an integral of a product of sinusoids

Difficulty:Rate
Write a function to compute the following integral
I = integral(sin(x)^m cos(x)^n, {x,0,pi})
where m and n are integers. You may not use integral or quad but other functions are allowed.

Solution Stats

19.51% Correct | 80.49% Incorrect
Last Solution submitted on Nov 12, 2024

Problem Comments

Solution Comments

Show comments

Group

Programování - Cody Image
Programování - Cody
  • 12 Problems
  • 526 Finishers

Problem Recent Solvers8

Community Treasure Hunt

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

Start Hunting!
Go to top of page