Learn R Programming

QuantumOps (version 3.0.1)

CFA: CFA

Description

Performs the continued fractions algorithm to find a fraction close to input value

Usage

CFA(y,epsilon=1e-2)

Arguments

y

Value that function attempts to find. Typically comes from measurement of Shor's algorithm

epsilon

Acceptable error between value and fraction

Value

Vector containing numerator and denominator of fraction

Examples

Run this code
# NOT RUN {
 CFA(285/14)
# }

Run the code above in your browser using DataLab