Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

**Ricky****Moderator**- Registered: 2005-12-04
- Posts: 3,791

Can anyone help me in writing a matrix in latex? Looking up sources, I can find ways to do it, but they don't seem to work on this forum. For example, just display the matrix:

a b c

d e f

g h i

"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."

Offline

**Patrick****Real Member**- Registered: 2006-02-24
- Posts: 1,005

It seems to me that you can't do matrices with whatever we're runnig here.. At all.. Some documentation/readme would be useful though..

*Last edited by Patrick (2006-04-03 08:11:43)*

Support MathsIsFun.com by clicking on the banners.

What music do I listen to? Clicky click

Offline

**George,Y****Member**- Registered: 2006-03-12
- Posts: 1,306

[ \left[ \begin{array}{ccc}

a & b & c \\

d & e & f \\

g & h & i \end{array} \right)\]

*Last edited by George,Y (2006-04-03 17:32:48)*

**X'(y-Xβ)=0**

Offline

**George,Y****Member**- Registered: 2006-03-12
- Posts: 1,306

\times

**X'(y-Xβ)=0**

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

I managed to do this:

using:

`[math]\begin{array}{ccc}1,2,3\\4,5,6\\7,8,9\end{array}[/math]`

But I I think the forum software is changing the latex code *before* formatting it, and this is what is making it hard to format the latex properly.

Give me time and I will look into it.

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**George,Y****Member**- Registered: 2006-03-12
- Posts: 1,306

good luck

*Last edited by George,Y (2006-04-03 22:14:35)*

**X'(y-Xβ)=0**

Offline

**Ricky****Moderator**- Registered: 2005-12-04
- Posts: 3,791

George, try yours out. I believe you will find it doesn't work to have latex on multiple lines.

See the problem there? You want everything in a matrix to get lined up.

"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."

Offline

**George,Y****Member**- Registered: 2006-03-12
- Posts: 1,306

Try this

yeah

*Last edited by George,Y (2006-04-05 14:38:52)*

**X'(y-Xβ)=0**

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

It is a little tricky. You see, the first and most important thing is to "sanitize" the text in the message: to remove or alter characters that could be part of a program (which someone bad may want to run on the forum). And this necessary first step alters *some* LaTeX code (like the &).

So I need to figure a way of preserving the LaTeX code while maintaining the security of the forum.

But I will persist

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**George,Y****Member**- Registered: 2006-03-12
- Posts: 1,306

uh, i used to think the latex here is too old.

**X'(y-Xβ)=0**

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

For George:

Try to write this in LaTeX:

0<1.

(there is a way)

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

Can you do more complicated structures:

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

Yeah!

Here's the Pascal triangle:

*Last edited by krassi_holmz (2006-04-06 01:01:39)*

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

*Last edited by krassi_holmz (2006-04-06 01:08:37)*

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

array in array:

*Last edited by krassi_holmz (2006-04-06 01:13:11)*

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

Pascal's Triangle worked out nicely.

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

yeap.

But only for the first five rows...

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**George,Y****Member**- Registered: 2006-03-12
- Posts: 1,306

*Last edited by George,Y (2006-04-06 12:34:16)*

**X'(y-Xβ)=0**

Offline

**George,Y****Member**- Registered: 2006-03-12
- Posts: 1,306

*Last edited by George,Y (2006-04-06 12:33:42)*

**X'(y-Xβ)=0**

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

What happened with "<"?

:):):):)

*Last edited by krassi_holmz (2006-04-06 19:52:57)*

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**George,Y****Member**- Registered: 2006-03-12
- Posts: 1,306

**X'(y-Xβ)=0**

Offline

**Patrick****Real Member**- Registered: 2006-02-24
- Posts: 1,005

well, that went well George

Support MathsIsFun.com by clicking on the banners.

What music do I listen to? Clicky click

Offline