Questions tagged [continued-fractions]

Continued fractions is an alternative representation of numbers that has interesting properties for on-demand arbitrary precision while avoiding intermediary rounding errors.

33 questions
-1
votes
1 answer

Matlab code for continued fraction

I want to use continued fraction for digital watermarking. I need to evaluate a number using the concept of continued fraction. Can anyone provide the matlab code for continued fractions?
Sanik
  • 35
  • 12
-2
votes
2 answers

Continued fraction of the constant e

I am very new to python. I have just recently started doing computer science. I am however stuck on this topic as to how do I get the value of the continued fraction of e constant after I've input a number. Please do not solve it for me but teach me…
user8622288
-3
votes
2 answers

Convert fraction to continued fraction

How would I convert a fraction to a continued fraction in Python? I tried looking around and found people using the Fraction module to do things similar to my problem, but I did not manage to modify them. An example with an image I found: So if the…
Marked as Duplicate
  • 1,117
  • 4
  • 17
  • 39
1 2
3