likovnihuj

2022-09-15

Quick doubt on converting a decimal to a fraction

I'm trying to solve a problem that requires me to find the roots of the equation

$-{x}^{4}+10{x}^{2}-x-20=0$

By making use of Newton's method, symbolab's equation calculator has found one root to be

$x\approx -\mathrm{2.79129...}:x=-\frac{\sqrt{21}+1}{2}$

My question is pretty basic, actually: how did they convert the decimal number on the left to the neat faction on the right? I couldn't get to it the way I've learned to convert decimals. Thanks very much in advance.

I'm trying to solve a problem that requires me to find the roots of the equation

$-{x}^{4}+10{x}^{2}-x-20=0$

By making use of Newton's method, symbolab's equation calculator has found one root to be

$x\approx -\mathrm{2.79129...}:x=-\frac{\sqrt{21}+1}{2}$

My question is pretty basic, actually: how did they convert the decimal number on the left to the neat faction on the right? I couldn't get to it the way I've learned to convert decimals. Thanks very much in advance.

GrEettarim3

Beginner2022-09-16Added 6 answers

You have accepted another answer, but here is an explanation of how a program or web site could find an expression such as the one given for a floating-point value.

If you have reason to believe that a given floating-point number is a quadratic irrational number, a program can check if that hypothesis is reasonable and, if it is reasonable, give an expression for the value.

The program first finds the continued fraction expansion of the given value. In our case, it is easier to look at $|x|\approx 2.79128784747792$. The first quotient is $\mathrm{i}\mathrm{n}\mathrm{t}(x)=2$. To get the later ones, replace $x$ with $\frac{1}{\mathrm{f}\mathrm{r}\mathrm{a}\mathrm{c}(x)}$ and take the integer part again. For the given value we get the quotients

$[2;1,3,1,3,1,3,\dots ]$

We see that the quotients are repeating. If we keep going, the inherent inaccuracies of the floating-point format will ruin the pattern, but we have good reason to believe that the repetition would be infinite. This repeating pattern in a continued-fraction expansion means the value is a quadratic irrational.

Plain algebra can then be used to find an expression for that value. In this case we see for the repeating part that

$u=1+\frac{1}{3+\frac{1}{u}}$

$u=1+\frac{1}{3+\frac{1}{u}}$

Plain algebra can then be used to find an expression for that value. In this case we see for the repeating part that

$u=1+\frac{1}{3+\frac{1}{u}}$

Solving that leads to the quadratic equation $3{u}^{2}-3u-1=0$, which has the one positive solution $u={\displaystyle \frac{3+\sqrt{21}}{6}}$, then we find $x$ from

$x=2+\frac{1}{u}$

which of course is $x={\displaystyle \frac{1+\sqrt{21}}{2}}$. This entire process can be automated. Again, the limitations of the floating-point format make this uncertain to get the exact correct value, but using extended-precision arithmetic can make mistakes very few.

If you have reason to believe that a given floating-point number is a quadratic irrational number, a program can check if that hypothesis is reasonable and, if it is reasonable, give an expression for the value.

The program first finds the continued fraction expansion of the given value. In our case, it is easier to look at $|x|\approx 2.79128784747792$. The first quotient is $\mathrm{i}\mathrm{n}\mathrm{t}(x)=2$. To get the later ones, replace $x$ with $\frac{1}{\mathrm{f}\mathrm{r}\mathrm{a}\mathrm{c}(x)}$ and take the integer part again. For the given value we get the quotients

$[2;1,3,1,3,1,3,\dots ]$

We see that the quotients are repeating. If we keep going, the inherent inaccuracies of the floating-point format will ruin the pattern, but we have good reason to believe that the repetition would be infinite. This repeating pattern in a continued-fraction expansion means the value is a quadratic irrational.

Plain algebra can then be used to find an expression for that value. In this case we see for the repeating part that

$u=1+\frac{1}{3+\frac{1}{u}}$

$u=1+\frac{1}{3+\frac{1}{u}}$

Plain algebra can then be used to find an expression for that value. In this case we see for the repeating part that

$u=1+\frac{1}{3+\frac{1}{u}}$

Solving that leads to the quadratic equation $3{u}^{2}-3u-1=0$, which has the one positive solution $u={\displaystyle \frac{3+\sqrt{21}}{6}}$, then we find $x$ from

$x=2+\frac{1}{u}$

which of course is $x={\displaystyle \frac{1+\sqrt{21}}{2}}$. This entire process can be automated. Again, the limitations of the floating-point format make this uncertain to get the exact correct value, but using extended-precision arithmetic can make mistakes very few.

Hagman7v

Beginner2022-09-17Added 3 answers

You are making an assumption that they figured the decimal first and converted it the fraction second.

In actuality they did the exact opposite. They used the quadratic formula to get the fraction, Which is accurate and exact. Then they calculated and estimated it to be approximately the decimal on the right.

Converting an irrational decimal to a fraction with the nescessary symbols is impossible for the obvious reason we can not ever have a complete decimal representation of an irrational number.

In actuality they did the exact opposite. They used the quadratic formula to get the fraction, Which is accurate and exact. Then they calculated and estimated it to be approximately the decimal on the right.

Converting an irrational decimal to a fraction with the nescessary symbols is impossible for the obvious reason we can not ever have a complete decimal representation of an irrational number.

Which expression has both 8 and n as factors???

One number is 2 more than 3 times another. Their sum is 22. Find the numbers

8, 14

5, 17

2, 20

4, 18

10, 12Perform the indicated operation and simplify the result. Leave your answer in factored form

$\left[\frac{(4x-8)}{(-3x)}\right].\left[\frac{12}{(12-6x)}\right]$ An ordered pair set is referred to as a ___?

Please, can u convert 3.16 (6 repeating) to fraction.

Write an algebraic expression for the statement '6 less than the quotient of x divided by 3 equals 2'.

A) $6-\frac{x}{3}=2$

B) $\frac{x}{3}-6=2$

C) 3x−6=2

D) $\frac{3}{x}-6=2$Find: $2.48\xf74$.

Multiplication $999\times 999$ equals.

Solve: (128÷32)÷(−4)=

A) -1

B) 2

C) -4

D) -3What is $0.78888.....$ converted into a fraction? $\left(0.7\overline{8}\right)$

The mixed fraction representation of 7/3 is...

How to write the algebraic expression given: the quotient of 5 plus d and 12 minus w?

Express 200+30+5+4100+71000 as a decimal number and find its hundredths digit.

A)235.47,7

B)235.047,4

C)235.47,4

D)234.057,7Find four equivalent fractions of the given fraction:$\frac{6}{12}$

How to find the greatest common factor of $80{x}^{3},30y{x}^{2}$?