Melody

avatar
UsernameMelody
Score118725
Membership
Stats
Questions 900
Answers 33647

-4
849
3
avatar+118725 
Melody  Feb 11, 2022
 #8
avatar+118725 
+11

This is posted on the Latex thread in the sticky notes.

 

$$\begin{array}{rlllr}
( x^3&+4x^2&+x& -6)&:(x-1)=\textcolor[rgb]{1,0,0}{x^2}\textcolor[rgb]{0,0,1}{+5x}\textcolor[rgb]{0,1,0}{+6}\\
\textcolor[rgb]{1,0,0}{{\underline{-(x^3}}&\textcolor[rgb]{1,0,0}{\underline{-x^2)}}}&&&\\
0&+5x^2&+x\\
&\textcolor[rgb]{0,0,1}{\underline{-(5x^2}}&\textcolor[rgb]{0,0,1}{\underline{-5x)}}\\
&0&+6x&-6\\
&&\textcolor[rgb]{0,1,0}{\underline{-(6x}}&\textcolor[rgb]{0,1,0}{\underline{-6)}}\\
&&0&+0
\end{array}$$

 

 

division in latex code:

\begin{array}{rlllr}

( x^3&+4x^2&+x& -6)&:(x-1)=\textcolor[rgb]{1,0,0}{x^2}\textcolor[rgb]{0,0,1}{+5x}\textcolor[rgb]{0,1,0}{+6}\\

\textcolor[rgb]{1,0,0}{{\underline{-(x^3}}&\textcolor[rgb]{1,0,0}{\underline{-x^2)}}}&&&\\

0&+5x^2&+x\\

&\textcolor[rgb]{0,0,1}{\underline{-(5x^2}}&\textcolor[rgb]{0,0,1}{\underline{-5x)}}\\

&0&+6x&-6\\

&&\textcolor[rgb]{0,1,0}{\underline{-(6x}}&\textcolor[rgb]{0,1,0}{\underline{-6)}}\\

&&0&+0

\end{array}

-----------------------

Many Greetings

Heureka (Eureka)

 

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 

This is another possibility for long division

 

http://web2.0calc.com/questions/how-do-u-do-92-divide-6-3-in-long-division-nbsp

 

$$\;1\textcolor[rgb]{0,1,0}{4}\\
63|\bar{9}\bar{2}\bar{0} \qquad $63 goes into 92 just once$\\
'\;\;\;63\downarrow \qquad\; 1*63=63\\
'\;\;\;290\_\qquad\quad 92-63=29 \qquad $and bring down the 0$\\
'\;\;\;252\qquad\quad \textcolor[rgb]{0,1,0}{\mbox{63 goes into 290 4 times and 4*63=252}}\\
'\;\;\;\;\bar{3}\bar{8}\qquad \quad 290-252=38 $ The remainder is 36$$$

 

Coding is very messy though

\;1\textcolor[rgb]{0,1,0}{4}\\ 63|\bar{9}\bar{2}\bar{0} \qquad $63 goes into 92 just once$\\ '\;\;\;63\downarrow \qquad\; 1*63=63\\

'\;\;\;290\_\qquad\quad 92-63=29 \qquad $and bring down the 0$\\

'\;\;\;252\qquad\quad \textcolor[rgb]{0,1,0}{\mbox{63 goes into 290 4 times and 4*63=252}}\\ '\;\;\;\;\bar{3}\bar{8}\qquad \quad 290-252=38 $ The remainder is 36$

.
May 15, 2014
 #7
avatar+118725 
+11

Heureko's LaTex

http://web2.0calc.com/questions/what-is-mod  

latex code:

\\\boxed{(a\bmod b)=a-b\lfloor\frac{a}{b}\rfloor}\\
\\
Example: \quad 299\bmod 12=299-12*\lfloor\frac{299}{12}\rfloor\\ 
= 299-12*24=299-288=11

$$\lfloor \dots \rfloor = floor function$$

latex code:

\lfloor \dots \rfloor = floor function

output:

$$\\\boxed{(a\bmod b)=a-b\lfloor\frac{a}{b}\rfloor}\\
\\
Example: \quad 299\bmod 12=299-12*\lfloor\frac{299}{12}\rfloor\\
= 299-12*24=299-288=11

\lfloor \dots \rfloor = floor function

latex code:

\lfloor \dots \rfloor = floor function$$

.
May 15, 2014