Continuos Fractions and Rational Fractions

Write a function called which takes a vector representing a finite continued fraction and returns the decimal representation of the number.

Respuestas (1)

Sruthi Ayloo
Sruthi Ayloo el 5 de Ag. de 2015

0 votos

Hi Jacob,
You can use the Symbolic Math toolbox inbuilt function “ vpa ” for variable precision arithmetic.
Hope this helps.

Categorías

Preguntada:

el 3 de Ag. de 2015

Comentada:

el 5 de Ag. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by