How to solve an equation using numerical solver in Matlab?

2 visualizaciones (últimos 30 días)
aa
aa el 30 de Sept. de 2020
Comentada: aa el 30 de Sept. de 2020
Hi everyone,
I want to solve this equation using numerical solver. I have value of R and want to calculate the coressponding value of n using numerical solver.
May someone help me here ......
R =1/n^2 [(n+1)ln(n+1)-n]

Respuesta aceptada

Alan Stevens
Alan Stevens el 30 de Sept. de 2020
Look up documentation on fzero.
  11 comentarios
John D'Errico
John D'Errico el 30 de Sept. de 2020
But what is wrong with writing a loop? Just wrap that code inside a loop, where you change R each time through.
aa
aa el 30 de Sept. de 2020
Earlier my code did not work with the loop but now I have fixed the error... it works perfectly .. Thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Optimization Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by