Math & Science ⇒ Whole and Fractional part symbols?
-
- Posts: 156
- Joined: Sat Jan 22, 2011 9:55 pm
Whole and Fractional part symbols?
In other words, if the number is
98.546742209631728045325779036827
the whole part (not necessarily the floor) would be
98
and the fractional part would be
.546742209631728045325779036827.
Thanks,
A formerly stupid user.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Whole and Fractional part symbols?
http://en.wikipedia.org/wiki/Markup_language
For your task you will need a programming lagnuage:
http://en.wikipedia.org/wiki/Programming_language
Nikolay
-
- Posts: 156
- Joined: Sat Jan 22, 2011 9:55 pm
Re: Whole and Fractional part symbols?
Whole and Fractional part symbols?
Code: Select all
7 div 3 = 2
7 mod 3 = 1
http://www.artofproblemsolving.com/Wiki ... X:Commands
Then:
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[ x \div{y} = 98 \]
\[ x \mod{y} = 546742209631728045325779036827 \]
\end{document}
-
- Posts: 156
- Joined: Sat Jan 22, 2011 9:55 pm
Whole and Fractional part symbols?
Well, the homework is to calculate the remainder, but not using div or mod (the next step is learning div and mod), so I don't think I can use them.justdeath wrote:I guess you need the "mod" and "div" operators. If I am not mistaken:http://en.wikipedia.org/wiki/Mod_operatorCode: Select all
7 div 3 = 2 7 mod 3 = 1
http://www.artofproblemsolving.com/Wiki ... X:Commands
Then:NikolayCode: Select all
\documentclass{article} \usepackage{amsmath} \begin{document} \[ x \div{y} = 98 \] \[ x \mod{y} = 546742209631728045325779036827 \] \end{document}
The students (I'm the TA writing up the answers) are to calculate the remainder using the equation:
Code: Select all
remainder=b \cdot fractional part (\frac{a}{b})
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Whole and Fractional part symbols?
"The floor and ceiling function are usually typeset with left and right square brackets where the upper (for floor function) or lower (for ceiling function) horizontal bars are missing, and, e.g., in the LaTeX typesetting system these symbols can be specified with the \lfloor, \rfloor, \lceil and \rceil commands in math mode."
So you could say,
Code: Select all
R = a - b\lfloor \frac a b \rfloor & a, b \ge 0