Approximating $frac log(5/4)log(3/2)$ to a rational number The Next CEO of Stack OverflowHermite Interpolation of $e^x$. Strange behaviour when increasing the number of derivatives at interpolating points.Approximating log of factorialNewton's Method, and approximating parameters for Bézier curves.Approximating a log-power functionApproximating Logs and Antilogs by handApproximating non-rational roots by a rational roots for a quadratic equationIs this formula for $frace^2-3e^2+1$ known? How to prove it?Does there exist infinitely many $mu$ which satisfy this:Approximating functions with rational functionsApproximating $log(X-Y)$
Easy to read palindrome checker
AB diagonalizable then BA also diagonalizable
Purpose of level-shifter with same in and out voltages
Pulling the principal components out of a DimensionReducerFunction?
Can I use the word “Senior” as part of a job title directly in German?
TikZ: How to fill area with a special pattern?
How to get the last not-null value in an ordered column of a huge table?
Why is information "lost" when it got into a black hole?
Is a distribution that is normal, but highly skewed, considered Gaussian?
My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?
Decide between Polyglossia and Babel for LuaLaTeX in 2019
How to use ReplaceAll on an expression that contains a rule
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
New carbon wheel brake pads after use on aluminum wheel?
IC has pull-down resistors on SMBus lines?
What was the first Unix version to run on a microcomputer?
Traduction de « Life is a roller coaster »
0-rank tensor vs vector in 1D
Is it ever safe to open a suspicious HTML file (e.g. email attachment)?
Can this note be analyzed as a non-chord tone?
Is it professional to write unrelated content in an almost-empty email?
Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?
How to properly draw diagonal line while using multicolumn inside tabular environment?
Can you teleport closer to a creature you are Frightened of?
Approximating $frac log(5/4)log(3/2)$ to a rational number
The Next CEO of Stack OverflowHermite Interpolation of $e^x$. Strange behaviour when increasing the number of derivatives at interpolating points.Approximating log of factorialNewton's Method, and approximating parameters for Bézier curves.Approximating a log-power functionApproximating Logs and Antilogs by handApproximating non-rational roots by a rational roots for a quadratic equationIs this formula for $frace^2-3e^2+1$ known? How to prove it?Does there exist infinitely many $mu$ which satisfy this:Approximating functions with rational functionsApproximating $log(X-Y)$
$begingroup$
I'm making a phone game, and I need to approximate $frac log(5/4)log(3/2)$ to a rational number $p/q$.
I wish $p$ and $q$ small enough. For example, I don't want $p$, $qapprox 10^7$; it's way too much for my code.
In the game, there's two way to upgrade ability. Type A gives an additional $50%$ increase at once. and type B gives $25%$.
What I want to know is how many times of upgrade $(x,y)$ provides the same additional increase. So what I've done is solve $(3/2)^x = (5/4)^y$ respect to $frac xy$.
Can you provide me a way to construct sequence $p_n$, $q_n$ which approximate the real number?
Thank you in advance.
approximation irrational-numbers
$endgroup$
add a comment |
$begingroup$
I'm making a phone game, and I need to approximate $frac log(5/4)log(3/2)$ to a rational number $p/q$.
I wish $p$ and $q$ small enough. For example, I don't want $p$, $qapprox 10^7$; it's way too much for my code.
In the game, there's two way to upgrade ability. Type A gives an additional $50%$ increase at once. and type B gives $25%$.
What I want to know is how many times of upgrade $(x,y)$ provides the same additional increase. So what I've done is solve $(3/2)^x = (5/4)^y$ respect to $frac xy$.
Can you provide me a way to construct sequence $p_n$, $q_n$ which approximate the real number?
Thank you in advance.
approximation irrational-numbers
$endgroup$
$begingroup$
I don't understand your game, but your number approximately $0.55034$ and thus $tfrac55034100000$ or $tfrac550310000$. What's wrong with that?
$endgroup$
– amsmath
Mar 24 at 2:19
7
$begingroup$
The continued fraction expansion of your irrational number will produce the best rational approximation subject to a limit on size of the denominator.
$endgroup$
– hardmath
Mar 24 at 2:21
2
$begingroup$
You can take truncations of the continued fraction of that number. The first few of its values start like this.
$endgroup$
– user647486
Mar 24 at 2:21
$begingroup$
try 82/149 ........
$endgroup$
– Will Jagy
Mar 24 at 2:23
2
$begingroup$
Cool, a practical application of continued fractions. :)
$endgroup$
– Minus One-Twelfth
Mar 24 at 2:32
add a comment |
$begingroup$
I'm making a phone game, and I need to approximate $frac log(5/4)log(3/2)$ to a rational number $p/q$.
I wish $p$ and $q$ small enough. For example, I don't want $p$, $qapprox 10^7$; it's way too much for my code.
In the game, there's two way to upgrade ability. Type A gives an additional $50%$ increase at once. and type B gives $25%$.
What I want to know is how many times of upgrade $(x,y)$ provides the same additional increase. So what I've done is solve $(3/2)^x = (5/4)^y$ respect to $frac xy$.
Can you provide me a way to construct sequence $p_n$, $q_n$ which approximate the real number?
Thank you in advance.
approximation irrational-numbers
$endgroup$
I'm making a phone game, and I need to approximate $frac log(5/4)log(3/2)$ to a rational number $p/q$.
I wish $p$ and $q$ small enough. For example, I don't want $p$, $qapprox 10^7$; it's way too much for my code.
In the game, there's two way to upgrade ability. Type A gives an additional $50%$ increase at once. and type B gives $25%$.
What I want to know is how many times of upgrade $(x,y)$ provides the same additional increase. So what I've done is solve $(3/2)^x = (5/4)^y$ respect to $frac xy$.
Can you provide me a way to construct sequence $p_n$, $q_n$ which approximate the real number?
Thank you in advance.
approximation irrational-numbers
approximation irrational-numbers
edited Mar 24 at 12:59
YuiTo Cheng
2,1862937
2,1862937
asked Mar 24 at 1:59
MrTanorusMrTanorus
31918
31918
$begingroup$
I don't understand your game, but your number approximately $0.55034$ and thus $tfrac55034100000$ or $tfrac550310000$. What's wrong with that?
$endgroup$
– amsmath
Mar 24 at 2:19
7
$begingroup$
The continued fraction expansion of your irrational number will produce the best rational approximation subject to a limit on size of the denominator.
$endgroup$
– hardmath
Mar 24 at 2:21
2
$begingroup$
You can take truncations of the continued fraction of that number. The first few of its values start like this.
$endgroup$
– user647486
Mar 24 at 2:21
$begingroup$
try 82/149 ........
$endgroup$
– Will Jagy
Mar 24 at 2:23
2
$begingroup$
Cool, a practical application of continued fractions. :)
$endgroup$
– Minus One-Twelfth
Mar 24 at 2:32
add a comment |
$begingroup$
I don't understand your game, but your number approximately $0.55034$ and thus $tfrac55034100000$ or $tfrac550310000$. What's wrong with that?
$endgroup$
– amsmath
Mar 24 at 2:19
7
$begingroup$
The continued fraction expansion of your irrational number will produce the best rational approximation subject to a limit on size of the denominator.
$endgroup$
– hardmath
Mar 24 at 2:21
2
$begingroup$
You can take truncations of the continued fraction of that number. The first few of its values start like this.
$endgroup$
– user647486
Mar 24 at 2:21
$begingroup$
try 82/149 ........
$endgroup$
– Will Jagy
Mar 24 at 2:23
2
$begingroup$
Cool, a practical application of continued fractions. :)
$endgroup$
– Minus One-Twelfth
Mar 24 at 2:32
$begingroup$
I don't understand your game, but your number approximately $0.55034$ and thus $tfrac55034100000$ or $tfrac550310000$. What's wrong with that?
$endgroup$
– amsmath
Mar 24 at 2:19
$begingroup$
I don't understand your game, but your number approximately $0.55034$ and thus $tfrac55034100000$ or $tfrac550310000$. What's wrong with that?
$endgroup$
– amsmath
Mar 24 at 2:19
7
7
$begingroup$
The continued fraction expansion of your irrational number will produce the best rational approximation subject to a limit on size of the denominator.
$endgroup$
– hardmath
Mar 24 at 2:21
$begingroup$
The continued fraction expansion of your irrational number will produce the best rational approximation subject to a limit on size of the denominator.
$endgroup$
– hardmath
Mar 24 at 2:21
2
2
$begingroup$
You can take truncations of the continued fraction of that number. The first few of its values start like this.
$endgroup$
– user647486
Mar 24 at 2:21
$begingroup$
You can take truncations of the continued fraction of that number. The first few of its values start like this.
$endgroup$
– user647486
Mar 24 at 2:21
$begingroup$
try 82/149 ........
$endgroup$
– Will Jagy
Mar 24 at 2:23
$begingroup$
try 82/149 ........
$endgroup$
– Will Jagy
Mar 24 at 2:23
2
2
$begingroup$
Cool, a practical application of continued fractions. :)
$endgroup$
– Minus One-Twelfth
Mar 24 at 2:32
$begingroup$
Cool, a practical application of continued fractions. :)
$endgroup$
– Minus One-Twelfth
Mar 24 at 2:32
add a comment |
4 Answers
4
active
oldest
votes
$begingroup$
Running the extended Euclidean algorithm to find the continued fraction:
$$beginarrayccx&q&a&b\
hline 0.55033971 & & 0 & 1\ 1 & 0 & 1 & 0\ 0.55033971 & 1 & 0 & 1\ 0.44966029 & 1 & 1 & -1 \ 0.10067943 & 4 & -1 & 2\ 0.04694258 & 2 & 5 & -9\ 0.00679426 & 6 & -11 & 20 \ 0.00617700 & 1 & 71 & -129 \ 0.00061727 & 10 & -82 & 149\ 4.31cdot 10^-6 & 143 & 891 & -1619 \
1.25cdot 10^-6 & 3 & -127495 & 231666endarray$$
The $q$ column are the quotients, that go into the continued fraction. The $a$ and $b$ columns track a linear combination of the original two that's equal to $x_n$; for example, $-11cdot 1 + 20cdot fraclog(5/4)log(3/2)approx 0.00679426$. The fraction $left|fraclog(5/4)log(3/2)right|$ is approximated by $fraca_n$, with increasing accuracy.
The formulas for building this table: $q_n = leftlfloor frac x_n-1x_nrightrfloor$, $x_n+1=x_n-1-q_nx_n$, $a_n+1=a_n-1-q_na_n$, $b_n+1=b_n-1-q_nb_n$. Initialize with $x_0=1$, $x_-1$ the quantity we're trying to estimate, $a_-1=b_0=0$, $a_0=b_-1=1$.
If you run the table much large than this, watch for floating-point accuracy issues; once the $x_n$ get down close to the accuracy limit for floating point numbers near zero, you can't trust the quotients anymore.
Now, how that accuracy increases is irregular. Large quotients go with particularly good approximations - see how that quotient of $143$ means that we have to go to six-digit numerator and denominator to do better than that $frac8911619$ approximation.
It is of course a tradeoff between accuracy and how deep you go. For your purposes in costing the two upgrades, I'd probably go with that $frac1120$ approximation.
$endgroup$
add a comment |
$begingroup$
The continued fraction for $fraclogleft(frac54right)logleft(frac32right)$ is
$$
0;1,1,4,2,6,1,color#C0010,143,3,dots
$$
The convergents for this continued fraction are
$$
left0,1,frac12,frac59,frac1120,frac71129,frac82149,color#C00frac8911619,frac127495231666,frac383376696617,dotsright
$$
As Ross Millikan mentions, stopping just before a large continuant like $143$ gives a particularly good approximation for the size of the denominator; in this case, the approximation $frac8911619$ is closer than $frac1143cdot1619^2$ to $fraclogleft(frac54right)logleft(frac32right)$.
$endgroup$
$begingroup$
Thank you. A good addition to my answer.
$endgroup$
– Ross Millikan
Mar 24 at 2:54
add a comment |
$begingroup$
The number you want to approximate is about $0.550339713213$. An excellent approximation is $frac 8911619approx 0.550339715873$. I got that by using the continued fraction. When you see a large value like $143$, truncating before it yields a very good approximation.
$endgroup$
2
$begingroup$
(+1) I wondered where you got $143$ until I actually computed the continued fraction. I'd hoped it was okay to expand upon your answer to show where that number came from. Also to mention that if $frac pq$ is a continued fraction approximation and $c$ is the next term in the conitnued fraction (which I think is called a continuant), then $frac pq$ is closer than $frac1cq^2$ to the value approximated.
$endgroup$
– robjohn♦
Mar 24 at 3:07
add a comment |
$begingroup$
Use the following equation
$$log(1+frac1x)approxfrac3+6x6x^2+6x+1$$
so
$$log(frac54)=log(1+frac14)$$
$$log(frac32)=log(1+frac12)$$
the approximated value will be
$$frac log(5/4)log(3/2)approx frac333605=0.55041322$$
$endgroup$
add a comment |
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3160023%2fapproximating-frac-log5-4-log3-2-to-a-rational-number%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Running the extended Euclidean algorithm to find the continued fraction:
$$beginarrayccx&q&a&b\
hline 0.55033971 & & 0 & 1\ 1 & 0 & 1 & 0\ 0.55033971 & 1 & 0 & 1\ 0.44966029 & 1 & 1 & -1 \ 0.10067943 & 4 & -1 & 2\ 0.04694258 & 2 & 5 & -9\ 0.00679426 & 6 & -11 & 20 \ 0.00617700 & 1 & 71 & -129 \ 0.00061727 & 10 & -82 & 149\ 4.31cdot 10^-6 & 143 & 891 & -1619 \
1.25cdot 10^-6 & 3 & -127495 & 231666endarray$$
The $q$ column are the quotients, that go into the continued fraction. The $a$ and $b$ columns track a linear combination of the original two that's equal to $x_n$; for example, $-11cdot 1 + 20cdot fraclog(5/4)log(3/2)approx 0.00679426$. The fraction $left|fraclog(5/4)log(3/2)right|$ is approximated by $fraca_n$, with increasing accuracy.
The formulas for building this table: $q_n = leftlfloor frac x_n-1x_nrightrfloor$, $x_n+1=x_n-1-q_nx_n$, $a_n+1=a_n-1-q_na_n$, $b_n+1=b_n-1-q_nb_n$. Initialize with $x_0=1$, $x_-1$ the quantity we're trying to estimate, $a_-1=b_0=0$, $a_0=b_-1=1$.
If you run the table much large than this, watch for floating-point accuracy issues; once the $x_n$ get down close to the accuracy limit for floating point numbers near zero, you can't trust the quotients anymore.
Now, how that accuracy increases is irregular. Large quotients go with particularly good approximations - see how that quotient of $143$ means that we have to go to six-digit numerator and denominator to do better than that $frac8911619$ approximation.
It is of course a tradeoff between accuracy and how deep you go. For your purposes in costing the two upgrades, I'd probably go with that $frac1120$ approximation.
$endgroup$
add a comment |
$begingroup$
Running the extended Euclidean algorithm to find the continued fraction:
$$beginarrayccx&q&a&b\
hline 0.55033971 & & 0 & 1\ 1 & 0 & 1 & 0\ 0.55033971 & 1 & 0 & 1\ 0.44966029 & 1 & 1 & -1 \ 0.10067943 & 4 & -1 & 2\ 0.04694258 & 2 & 5 & -9\ 0.00679426 & 6 & -11 & 20 \ 0.00617700 & 1 & 71 & -129 \ 0.00061727 & 10 & -82 & 149\ 4.31cdot 10^-6 & 143 & 891 & -1619 \
1.25cdot 10^-6 & 3 & -127495 & 231666endarray$$
The $q$ column are the quotients, that go into the continued fraction. The $a$ and $b$ columns track a linear combination of the original two that's equal to $x_n$; for example, $-11cdot 1 + 20cdot fraclog(5/4)log(3/2)approx 0.00679426$. The fraction $left|fraclog(5/4)log(3/2)right|$ is approximated by $fraca_n$, with increasing accuracy.
The formulas for building this table: $q_n = leftlfloor frac x_n-1x_nrightrfloor$, $x_n+1=x_n-1-q_nx_n$, $a_n+1=a_n-1-q_na_n$, $b_n+1=b_n-1-q_nb_n$. Initialize with $x_0=1$, $x_-1$ the quantity we're trying to estimate, $a_-1=b_0=0$, $a_0=b_-1=1$.
If you run the table much large than this, watch for floating-point accuracy issues; once the $x_n$ get down close to the accuracy limit for floating point numbers near zero, you can't trust the quotients anymore.
Now, how that accuracy increases is irregular. Large quotients go with particularly good approximations - see how that quotient of $143$ means that we have to go to six-digit numerator and denominator to do better than that $frac8911619$ approximation.
It is of course a tradeoff between accuracy and how deep you go. For your purposes in costing the two upgrades, I'd probably go with that $frac1120$ approximation.
$endgroup$
add a comment |
$begingroup$
Running the extended Euclidean algorithm to find the continued fraction:
$$beginarrayccx&q&a&b\
hline 0.55033971 & & 0 & 1\ 1 & 0 & 1 & 0\ 0.55033971 & 1 & 0 & 1\ 0.44966029 & 1 & 1 & -1 \ 0.10067943 & 4 & -1 & 2\ 0.04694258 & 2 & 5 & -9\ 0.00679426 & 6 & -11 & 20 \ 0.00617700 & 1 & 71 & -129 \ 0.00061727 & 10 & -82 & 149\ 4.31cdot 10^-6 & 143 & 891 & -1619 \
1.25cdot 10^-6 & 3 & -127495 & 231666endarray$$
The $q$ column are the quotients, that go into the continued fraction. The $a$ and $b$ columns track a linear combination of the original two that's equal to $x_n$; for example, $-11cdot 1 + 20cdot fraclog(5/4)log(3/2)approx 0.00679426$. The fraction $left|fraclog(5/4)log(3/2)right|$ is approximated by $fraca_n$, with increasing accuracy.
The formulas for building this table: $q_n = leftlfloor frac x_n-1x_nrightrfloor$, $x_n+1=x_n-1-q_nx_n$, $a_n+1=a_n-1-q_na_n$, $b_n+1=b_n-1-q_nb_n$. Initialize with $x_0=1$, $x_-1$ the quantity we're trying to estimate, $a_-1=b_0=0$, $a_0=b_-1=1$.
If you run the table much large than this, watch for floating-point accuracy issues; once the $x_n$ get down close to the accuracy limit for floating point numbers near zero, you can't trust the quotients anymore.
Now, how that accuracy increases is irregular. Large quotients go with particularly good approximations - see how that quotient of $143$ means that we have to go to six-digit numerator and denominator to do better than that $frac8911619$ approximation.
It is of course a tradeoff between accuracy and how deep you go. For your purposes in costing the two upgrades, I'd probably go with that $frac1120$ approximation.
$endgroup$
Running the extended Euclidean algorithm to find the continued fraction:
$$beginarrayccx&q&a&b\
hline 0.55033971 & & 0 & 1\ 1 & 0 & 1 & 0\ 0.55033971 & 1 & 0 & 1\ 0.44966029 & 1 & 1 & -1 \ 0.10067943 & 4 & -1 & 2\ 0.04694258 & 2 & 5 & -9\ 0.00679426 & 6 & -11 & 20 \ 0.00617700 & 1 & 71 & -129 \ 0.00061727 & 10 & -82 & 149\ 4.31cdot 10^-6 & 143 & 891 & -1619 \
1.25cdot 10^-6 & 3 & -127495 & 231666endarray$$
The $q$ column are the quotients, that go into the continued fraction. The $a$ and $b$ columns track a linear combination of the original two that's equal to $x_n$; for example, $-11cdot 1 + 20cdot fraclog(5/4)log(3/2)approx 0.00679426$. The fraction $left|fraclog(5/4)log(3/2)right|$ is approximated by $fraca_n$, with increasing accuracy.
The formulas for building this table: $q_n = leftlfloor frac x_n-1x_nrightrfloor$, $x_n+1=x_n-1-q_nx_n$, $a_n+1=a_n-1-q_na_n$, $b_n+1=b_n-1-q_nb_n$. Initialize with $x_0=1$, $x_-1$ the quantity we're trying to estimate, $a_-1=b_0=0$, $a_0=b_-1=1$.
If you run the table much large than this, watch for floating-point accuracy issues; once the $x_n$ get down close to the accuracy limit for floating point numbers near zero, you can't trust the quotients anymore.
Now, how that accuracy increases is irregular. Large quotients go with particularly good approximations - see how that quotient of $143$ means that we have to go to six-digit numerator and denominator to do better than that $frac8911619$ approximation.
It is of course a tradeoff between accuracy and how deep you go. For your purposes in costing the two upgrades, I'd probably go with that $frac1120$ approximation.
answered Mar 24 at 2:52
jmerryjmerry
16.9k11633
16.9k11633
add a comment |
add a comment |
$begingroup$
The continued fraction for $fraclogleft(frac54right)logleft(frac32right)$ is
$$
0;1,1,4,2,6,1,color#C0010,143,3,dots
$$
The convergents for this continued fraction are
$$
left0,1,frac12,frac59,frac1120,frac71129,frac82149,color#C00frac8911619,frac127495231666,frac383376696617,dotsright
$$
As Ross Millikan mentions, stopping just before a large continuant like $143$ gives a particularly good approximation for the size of the denominator; in this case, the approximation $frac8911619$ is closer than $frac1143cdot1619^2$ to $fraclogleft(frac54right)logleft(frac32right)$.
$endgroup$
$begingroup$
Thank you. A good addition to my answer.
$endgroup$
– Ross Millikan
Mar 24 at 2:54
add a comment |
$begingroup$
The continued fraction for $fraclogleft(frac54right)logleft(frac32right)$ is
$$
0;1,1,4,2,6,1,color#C0010,143,3,dots
$$
The convergents for this continued fraction are
$$
left0,1,frac12,frac59,frac1120,frac71129,frac82149,color#C00frac8911619,frac127495231666,frac383376696617,dotsright
$$
As Ross Millikan mentions, stopping just before a large continuant like $143$ gives a particularly good approximation for the size of the denominator; in this case, the approximation $frac8911619$ is closer than $frac1143cdot1619^2$ to $fraclogleft(frac54right)logleft(frac32right)$.
$endgroup$
$begingroup$
Thank you. A good addition to my answer.
$endgroup$
– Ross Millikan
Mar 24 at 2:54
add a comment |
$begingroup$
The continued fraction for $fraclogleft(frac54right)logleft(frac32right)$ is
$$
0;1,1,4,2,6,1,color#C0010,143,3,dots
$$
The convergents for this continued fraction are
$$
left0,1,frac12,frac59,frac1120,frac71129,frac82149,color#C00frac8911619,frac127495231666,frac383376696617,dotsright
$$
As Ross Millikan mentions, stopping just before a large continuant like $143$ gives a particularly good approximation for the size of the denominator; in this case, the approximation $frac8911619$ is closer than $frac1143cdot1619^2$ to $fraclogleft(frac54right)logleft(frac32right)$.
$endgroup$
The continued fraction for $fraclogleft(frac54right)logleft(frac32right)$ is
$$
0;1,1,4,2,6,1,color#C0010,143,3,dots
$$
The convergents for this continued fraction are
$$
left0,1,frac12,frac59,frac1120,frac71129,frac82149,color#C00frac8911619,frac127495231666,frac383376696617,dotsright
$$
As Ross Millikan mentions, stopping just before a large continuant like $143$ gives a particularly good approximation for the size of the denominator; in this case, the approximation $frac8911619$ is closer than $frac1143cdot1619^2$ to $fraclogleft(frac54right)logleft(frac32right)$.
answered Mar 24 at 2:42
robjohn♦robjohn
270k27312640
270k27312640
$begingroup$
Thank you. A good addition to my answer.
$endgroup$
– Ross Millikan
Mar 24 at 2:54
add a comment |
$begingroup$
Thank you. A good addition to my answer.
$endgroup$
– Ross Millikan
Mar 24 at 2:54
$begingroup$
Thank you. A good addition to my answer.
$endgroup$
– Ross Millikan
Mar 24 at 2:54
$begingroup$
Thank you. A good addition to my answer.
$endgroup$
– Ross Millikan
Mar 24 at 2:54
add a comment |
$begingroup$
The number you want to approximate is about $0.550339713213$. An excellent approximation is $frac 8911619approx 0.550339715873$. I got that by using the continued fraction. When you see a large value like $143$, truncating before it yields a very good approximation.
$endgroup$
2
$begingroup$
(+1) I wondered where you got $143$ until I actually computed the continued fraction. I'd hoped it was okay to expand upon your answer to show where that number came from. Also to mention that if $frac pq$ is a continued fraction approximation and $c$ is the next term in the conitnued fraction (which I think is called a continuant), then $frac pq$ is closer than $frac1cq^2$ to the value approximated.
$endgroup$
– robjohn♦
Mar 24 at 3:07
add a comment |
$begingroup$
The number you want to approximate is about $0.550339713213$. An excellent approximation is $frac 8911619approx 0.550339715873$. I got that by using the continued fraction. When you see a large value like $143$, truncating before it yields a very good approximation.
$endgroup$
2
$begingroup$
(+1) I wondered where you got $143$ until I actually computed the continued fraction. I'd hoped it was okay to expand upon your answer to show where that number came from. Also to mention that if $frac pq$ is a continued fraction approximation and $c$ is the next term in the conitnued fraction (which I think is called a continuant), then $frac pq$ is closer than $frac1cq^2$ to the value approximated.
$endgroup$
– robjohn♦
Mar 24 at 3:07
add a comment |
$begingroup$
The number you want to approximate is about $0.550339713213$. An excellent approximation is $frac 8911619approx 0.550339715873$. I got that by using the continued fraction. When you see a large value like $143$, truncating before it yields a very good approximation.
$endgroup$
The number you want to approximate is about $0.550339713213$. An excellent approximation is $frac 8911619approx 0.550339715873$. I got that by using the continued fraction. When you see a large value like $143$, truncating before it yields a very good approximation.
answered Mar 24 at 2:27
Ross MillikanRoss Millikan
300k24200375
300k24200375
2
$begingroup$
(+1) I wondered where you got $143$ until I actually computed the continued fraction. I'd hoped it was okay to expand upon your answer to show where that number came from. Also to mention that if $frac pq$ is a continued fraction approximation and $c$ is the next term in the conitnued fraction (which I think is called a continuant), then $frac pq$ is closer than $frac1cq^2$ to the value approximated.
$endgroup$
– robjohn♦
Mar 24 at 3:07
add a comment |
2
$begingroup$
(+1) I wondered where you got $143$ until I actually computed the continued fraction. I'd hoped it was okay to expand upon your answer to show where that number came from. Also to mention that if $frac pq$ is a continued fraction approximation and $c$ is the next term in the conitnued fraction (which I think is called a continuant), then $frac pq$ is closer than $frac1cq^2$ to the value approximated.
$endgroup$
– robjohn♦
Mar 24 at 3:07
2
2
$begingroup$
(+1) I wondered where you got $143$ until I actually computed the continued fraction. I'd hoped it was okay to expand upon your answer to show where that number came from. Also to mention that if $frac pq$ is a continued fraction approximation and $c$ is the next term in the conitnued fraction (which I think is called a continuant), then $frac pq$ is closer than $frac1cq^2$ to the value approximated.
$endgroup$
– robjohn♦
Mar 24 at 3:07
$begingroup$
(+1) I wondered where you got $143$ until I actually computed the continued fraction. I'd hoped it was okay to expand upon your answer to show where that number came from. Also to mention that if $frac pq$ is a continued fraction approximation and $c$ is the next term in the conitnued fraction (which I think is called a continuant), then $frac pq$ is closer than $frac1cq^2$ to the value approximated.
$endgroup$
– robjohn♦
Mar 24 at 3:07
add a comment |
$begingroup$
Use the following equation
$$log(1+frac1x)approxfrac3+6x6x^2+6x+1$$
so
$$log(frac54)=log(1+frac14)$$
$$log(frac32)=log(1+frac12)$$
the approximated value will be
$$frac log(5/4)log(3/2)approx frac333605=0.55041322$$
$endgroup$
add a comment |
$begingroup$
Use the following equation
$$log(1+frac1x)approxfrac3+6x6x^2+6x+1$$
so
$$log(frac54)=log(1+frac14)$$
$$log(frac32)=log(1+frac12)$$
the approximated value will be
$$frac log(5/4)log(3/2)approx frac333605=0.55041322$$
$endgroup$
add a comment |
$begingroup$
Use the following equation
$$log(1+frac1x)approxfrac3+6x6x^2+6x+1$$
so
$$log(frac54)=log(1+frac14)$$
$$log(frac32)=log(1+frac12)$$
the approximated value will be
$$frac log(5/4)log(3/2)approx frac333605=0.55041322$$
$endgroup$
Use the following equation
$$log(1+frac1x)approxfrac3+6x6x^2+6x+1$$
so
$$log(frac54)=log(1+frac14)$$
$$log(frac32)=log(1+frac12)$$
the approximated value will be
$$frac log(5/4)log(3/2)approx frac333605=0.55041322$$
answered Mar 28 at 13:04
E.H.EE.H.E
16k11968
16k11968
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3160023%2fapproximating-frac-log5-4-log3-2-to-a-rational-number%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
I don't understand your game, but your number approximately $0.55034$ and thus $tfrac55034100000$ or $tfrac550310000$. What's wrong with that?
$endgroup$
– amsmath
Mar 24 at 2:19
7
$begingroup$
The continued fraction expansion of your irrational number will produce the best rational approximation subject to a limit on size of the denominator.
$endgroup$
– hardmath
Mar 24 at 2:21
2
$begingroup$
You can take truncations of the continued fraction of that number. The first few of its values start like this.
$endgroup$
– user647486
Mar 24 at 2:21
$begingroup$
try 82/149 ........
$endgroup$
– Will Jagy
Mar 24 at 2:23
2
$begingroup$
Cool, a practical application of continued fractions. :)
$endgroup$
– Minus One-Twelfth
Mar 24 at 2:32