Continuos Fractions and Rational Fractions

1 view (last 30 days)
Write a function called which takes a vector representing a finite continued fraction and returns the decimal representation of the number.

Answers (1)

Sruthi Ayloo
Sruthi Ayloo on 5 Aug 2015
Hi Jacob,
You can use the Symbolic Math toolbox inbuilt function “ vpa ” for variable precision arithmetic.
Hope this helps.

Community Treasure Hunt

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

Start Hunting!