How to have a max value for a recurrence equation?

2 visualizaciones (últimos 30 días)
Samuel Lee
Samuel Lee el 7 de Sept. de 2020
Comentada: Walter Roberson el 8 de Sept. de 2020
Hi there,
Just wondering what I would do if I wanted to created a max value (say x) in a set of recurrence equations? I have this set of equations to model memory. I want to set a max value so that once either of the variables L, N, or F reaches value x, it creates a fixed point and remains there.
for n = (2:m)
L(n) = L(n-1)+alpha*(1/L(n-1))
F(n) = F(n-1)+beta*L(n-1)
T(n) = L(n-1)-F(n-1);
Any thoughts?

Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Sept. de 2020
You cannot do that with those kinds of equations, not without putting in a conditional definition.
Equations of that form can be [strictly] constant (e.g., alpha and beta are 0). Or they can grow without bound. Or they can oscillate between values. Or they can approach an asymtope. But they cannot reach a steady state except in the constant case.
  2 comentarios
Samuel Lee
Samuel Lee el 8 de Sept. de 2020
Thank you, Walter.
Walter Roberson
Walter Roberson el 8 de Sept. de 2020
I missed the possibility that they can grow without bounds while oscillating between negative and positive.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Particle & Nuclear Physics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by