Continuos Fractions and Rational Fractions

1 Ansicht (letzte 30 Tage)
Jacob Tan
Jacob Tan am 3 Aug. 2015
Kommentiert: Walter Roberson am 5 Aug. 2015
Write a function called which takes a vector representing a finite continued fraction and returns the decimal representation of the number.

Antworten (1)

Sruthi Ayloo
Sruthi Ayloo am 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!

Translated by