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.

Réponses (1)

Sruthi Ayloo
Sruthi Ayloo le 5 Août 2015

0 votes

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

Question posée :

le 3 Août 2015

Commenté :

le 5 Août 2015

Community Treasure Hunt

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

Start Hunting!

Translated by