Can Anyone Help Me?

I saw numerous problems in Brilliant where the users posted LaTex equations like the following:

\[ \begin{array} { l l l l l } & & A & B & C & D & E & F \\ \times & & & & & & & 4 \\ \hline & & F & E & D & C & B & A \\ \end{array} \]

Can anyone tell me how to make my own equation in this form?

I will be grateful!

Note by Victor Paes Plinio
6 years, 1 month ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

If you hover your mouse over the Latex image, you can see the code for it.

For problems, you can select "Toggle Latex" from the "Dot dot dot" menu, and that will allow you to see it directly and copy/paste it. For example, the latex code (properly spaced) is:

\ begin{array} { l l l l l }
& & A & B & C & D & E & F \\
\times & & & & & & & 4 \\
\hline & & F & E & D & C & B & A \\
\end{array}

What this means:

  • \begin{array} ... \end{array} means that we are in an "array" display
  • { l l l l l } (5 letter l's) means that we are creating 5 columns that are left aligned. (Note that we actually have more columns than 5, and they are automatically left aligned.) You can use "c" and "r" for center and right-aligned respectively. You can add "|" to denote that a vertical line is to be drawn between the columns.
  • & & A & B & C & D & E & F \\ - That is telling you how to create the first line. Each & denotes a seperator.
  • \hline means that we are creating a horizontal line

Calvin Lin Staff - 6 years, 1 month ago

Log in to reply

@Calvin Lin Thank You Sir! But can you explain more clearly about the columns aligned? I tried to make my own equation code, but I'am confused about the number of separatos (&) and the number of columns aligned (the l's). They have a thing in common? For example: if I want to make a 3 column sum, where 2 columns have the numbers and the third column have a times sign. I wrote the code like the following, but it not appears correctly. What's my mistake?

\begin{array} { l l l } & & 1 & 2 \ \times & 5 & 0 \ \hline 6 & 0 & 0 \ \end{array}

Victor Paes Plinio - 6 years, 1 month ago

Log in to reply

the issue with your code is that you need to use \\ to end a line instead of just one \. That did not display correctly in my original post, and I've edited it.

Calvin Lin Staff - 6 years, 1 month ago

Log in to reply

@Calvin Lin \begin{array} { l l l } & & 1 & 2 \ \times & 5 & 0 \ \hline 6 & 0 & 0 \ \end{array}

will give

12×50600\begin{array} { l l l } & & 1 & 2 \\ \times & 5 & 0 \\ \hline 6 & 0 & 0 \\ \end{array}

Note that you have an additional & in the first line, which is why 1 2 appears off to the right.

Calvin Lin Staff - 6 years, 1 month ago

Log in to reply

@Calvin Lin @Calvin Lin Thank you very much Sir! :):)

111×3333\begin{array} { l l l l } & 1 & 1 & 1 \\ \times & & & 3 \\ \hline & 3 & 3 & 3 \\ \end{array}

Victor Paes Plinio - 6 years, 1 month ago
×

Problem Loading...

Note Loading...

Set Loading...