Use my method: The natural algorithm
See the computational representation of the algorithm in the bottom:
Let $N$ be the number that we want to calculate its cubic root.
The cubic root of $N$ is calculated in two stages:
The first stage: finding the nearest real root of $N$:
We make $n=N$
- We subtract from $n$ the terms of $3x^2-3x+1$ starting from $x=1$
- While $n>0$, we make $x=x+1$, and we proceed the substraction.
- When $n=0$, this stage stops and the number $N$ has a real cubic root of $x$.
- When $n<0$, this stage stops, the nearest real cubic root is $x-1$, and we continue the second stage to find the numbers after the comma.
The second stage: Finding the numbers after the comma:
Let $x$ be the nearest real cubic root of $N$
Let $b=N-x^3$
The following process is repeated for the number of digits we want to find after the comma:
We divide this process into 3 steps
Step 1: We multiply the number $x$ by ten, and we multiply the number $b$ by a thousand
Step 2: We assume $s=x$,
Step 3: We subtract $3s^2+3s+1$ from $b$
- If the result of $b$ is greater than zero:
- we add to $s$ one, and continue from step 3.
- If the result of $b$ is less than zero:
- We make $i$ the number of subtractions in step 3, not counting the time that produced $b<0$
- In the space after the comma, we write the number $i$
- We get to b the quotient of $3s^2+3s+1$
- We add to $x$ the number of subtractions $i$,
- We continue with the values of $x$ and $b$ from step 1 to find more numbers after the comma.
E.g.
A number with a real cubic root
$N=64; \sqrt[3]N=?$
We make $n=N$
- We subtract from n the terms of $3x^2-3x+1$ starting from $x=1$
$x=1: n=64-(3x^2-3x+1)=64-1=63$
$x=2: n=63-(12-6+1)=63-7=56$
$x=3: n=56-19=37$
$x=4: n=37-37=0$
- this stage stops and the number $N$ has a real cubic root of $x$.
$\sqrt[3]N=x; \sqrt[3]64=4$
E.g.
A number with an unreal cubic root
$N=66; \sqrt[3]N=?$
We make $n=N$
- We subtract from n the terms of $3x^2-3x+1$ starting from $x=1$:
$x=1: n=66-(3x^2-3x+1 )=66-1=65$
$x=2:n=65-(12-6+1)=65-7=58$
$x=3:n=58-19=39$
$x=4:n=39-37=2$
$x=5:n=2-61=-59$
- This stage stops, the nearest real cubic root is $x-1$, and we continue the second stage to find the numbers after the comma.
$$\sqrt[3]N=x-1; \sqrt[3]66≈5-1≈4$$
Let $x$ be the nearest real cubic root of $N$: $$x=4$$
Let $b=N-x^3$: $$b=N-x^3=66-64=2$$
1- Step 1: We multiply the number $x$ by ten, and we multiply the number $b$ by a thousand: $$x=x×10=40$$ $$b=b×1000=2000$$
2- Step 2: We assume $s=x$: $$s=40$$
3- Step 3: We subtract $3s^2+3s+1$ from $b$
$b=b-(3s^2+3s+1)=2000-4921=-2921$
- As the result of $b$ is less than zero:
- We make $i$ the number of subtractions in step 3, not counting the time that produced $b<0$: $$i=0$$
- In the space after the comma, we write the number $i$: $$\sqrt[3]66≈4.0$$
- We get to $b$ the quotient of $3s^2+3s+1$: $$b=2000$$
- We add to $x$ the number of substractions $i$: $$x=x+0=40$$
- We continue with the values of $x$ and $b$ from step 1 to find more numbers after the comma.
4- Step 1: We multiply the number $x$ by ten, and we multiply the number $b$ by a thousand: $$x=x×10=400$$ $$b=b×1000=2000000$$
5- Step 2: We assume $s=x$: $$s=400$$
6- Step 3: We subtract $3s^2+3s+1$ from $b$:
$b=b-(〖3s〗^2+3s+1 )=2000000-481201=1518799…(i=1)$
- If the result of $b$ is greater than zero:
- we add to $s$ one, and continue from step 3
$s=s+1=401: b=b-(3s^2+3s+1)=1518799-483607=1035192…(i=2)$
$s=402: b=1035192-486019=549173…(i=3)$
$s=403: b=549173-488437=60736…(i=4)$
$s=404: b=60736-490861=-430125$
7- Step 1: We multiply the number $x$ by ten, and we multiply the number $b$ by a thousand: $$x=x×10=4040$$ $$b=b×1000=60736000$$
8- Step 2: We assume $s=x$: $$s=4040$$
9- Step 3: We subtract $3s^2+3s+1$ from $b$:
$b=b-(3s^2+3s+1)=60736000-48976921=11759079…(i=1)$
- If the result of $b$ is greater than zero:
- we add to $s$ one, and continue from step 3
$s=s+1=4041: b=b-(3s^2+3s+1)=11759079-49001167=-37242088$
- As the result of $b$ is less than zero:
We make $i$ the number of subtractions in step 3, not counting the time that produced $b<0$: $$i=1$$
In the space after the comma, we write the number $i$: $$\sqrt[3]66≈4.041$$
We get to $b$ the quotient of $3s^2+3s+1$: $$b=11759079$$
We add to $x$ the number of substractions $i$: $$x=x+1=4041$$
We continue with the values of $x$ and $b$ from step 1 to find more numbers after the comma.
…
Computational representation of the algorithm in JavaScript:
https://codepen.io/am_trouzine/pen/GRyoWbM
Nth root calculation:
https://m.youtube.com/watch?v=uEpv6_4ZBG4&feature=youtu.be
My notes:
https://github.com/am-trouzine/Arithmetic-algorithms-in-different-numeral-systems/blob/master/Arithmetic%20algorithms%20in%20different%20numeral%20systems.pdf