Solve a nonlinear difference equation - MATLAB Cody - MATLAB Central

Problem 51274. Solve a nonlinear difference equation

Difficulty:Rate
Consider the difference equation a_{n+1} = a_n^p with the initial (n = 0) value a0. If a0 is 2 and p = 2, then a1 = 4, a2 = 16, a3 = 256, etc.
Write a function that takes two values of n and the corresponding values of a_n and returns the initial value a0 and the exponent p.

Solution Stats

60.0% Correct | 40.0% Incorrect
Last Solution submitted on Nov 09, 2024

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers21

Suggested Problems

More from this Author291

Community Treasure Hunt

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

Start Hunting!
Go to top of page