# Quick LaTeX Tutorial

## Recommended Posts

$\left(\sqrt[5]{x + y}\right)$

just testing...

##### Share on other sites

$E = mc^2$

Ah...nice...thanks

$E/c=\sqrt{(m_0c)^2+p^2}$

Wow...even cooler...

thanks A.E. & (edit) Dave.

##### Share on other sites

I had a thread a while ago and I was wondering if there are latex symbols for the long division and perhaps extension code for working out the problem..

I would dislike using the square root symbol for this, but it seems like the next closest thing. I don't like using the

$12/24$ type of stuff that gives a number over a line and a bottom number under that line.

Arg, too many different BBSs have different latex systems.

##### Share on other sites

I'll have a look at implementing the polynom package, since that seems to do this sort of thing.

##### Share on other sites

[MATH]sigma_0^{n}a^i[/MATH]

##### Share on other sites

When I need to write mathematical expressions on my computer for personal use I come to these forums and write it in latex then hit preview and save the image to my computer. This is quite annoying and unconventional, is there a program I can download that either generates latex images or has a complete UI for writing such expressions?

Thankyou.

##### Share on other sites

Not really. If you're writing documents then you might want to consider writing the entire thing using LaTeX, but other than that... I don't know

##### Share on other sites

There's a program called MathType that's pretty useful.

Free Trial

##### Share on other sites

Cheers! I remember seeing that advertised in NewScientist, I'm gonna check it out.

##### Share on other sites

I agree with Dave that the most sensible thing to do is install LaTeX on your system. But if you really don't want to do that you'll need a LaTeX emulator like mimeTeX.

Assuming that you are using Windows, then download mimetex.exe from there. You can then call mimetex from the DOS command line, but the simplest thing to do is write a batch file:

@echo off
mimetex -f mimetemp.tex -e mimetemp.gif

Save your latex code in mimetemp.tex, run the batch file and the image will appear as mimetemp.gif.

##### Share on other sites

And if you want a free equation editor to generate the LaTeX code for you, have a look at TeXAide

##### Share on other sites

You can also use OpenOffice, as it is a word processor and offers a math module.

##### Share on other sites

$noobzor$

whoops

##### Share on other sites

just testing this out...

$\frac{x^2 + 4x}{2y^2 + y} = 6$

Derivative:

$\frac{(2x + 4)\cdot(2y^2 + y) - (x^2 + 4x)\cdot(2\frac{dy}{dx} + 1)}{(2y^2 + y)^2} = 0$

$\frac{(4xy^2 + 2xy + 4xy^2 + 4xy) - (2x^2\frac{dy}{dx} + x^2 + 4x\frac{dy}{dx} + 4x)}{(2y^2 + y)^2} = 0$

$\frac{8xy^2 + 6xy - x^2 - 4x}{(2y^2 + y)^2} + \frac{-2x^2\frac{dy}{dx} - 4x\frac{dy}{dx}}{(2y^2 + y)^2} = 0$

$\frac{dy}{dx} = \frac{8xy^2 + 6xy - x^2 - 4x}{-2x^2 - 4x}$

now hopefully that will work out fine...

Also if any math is wrong please tell me lol

the language to use is easy just going through it all is hard lol

##### Share on other sites

It would be easier to say

$\frac{x^2 + 4x}{2y^2 + y} = 6 \implies x^2+4x=6\left(2y^2+y \right)$

Hence

$2x+4=6\left(4y\frac{dy}{dx}+\frac{dy}{dx}\right)=6\frac{dy}{dx}(4y+1)$

So $\frac{dy}{dx}=\frac{2x+4}{6(4y+1)}$

##### Share on other sites

$Gradient = \frac{kV^2}{m} = \frac{0.00779*15^2}{0.1128} = 15.539$

##### Share on other sites

What's wrong why can't I see a formula here?

This is generated with matlab 6.5, command Latex(S).

$-\sin(\left({\it Patm}\,t-\arctan({\frac {{\it Pstart}}{\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}}})\sqrt {{\it Kv}}{\it Volume}\right){\frac {1}{\sqrt {{\it Kv}}}}{{\it Volume}}^{-1}){\it Pin}\,\cos(\left({\it Patm}\,t-\arctan({\frac {{\it Pstart}}{\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}}})\sqrt {{\it Kv}}{\it Volume}\right){\frac {1}{\sqrt {{\it Kv}}}}{{\it Volume}}^{-1})\sqrt {{{\it Pin}}^{2}{\it Kv}\,\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}\left (-2\,\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pstart}}^{2}\left (\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\right )^{2}+\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pin}}^{2}\left (\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\right )^{2}-2\,{{\it Pstart}}^{3}\sin({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})+2\,{\it Pstart}\,\sin({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}}){{\it Pin}}^{2}\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})+\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pstart}}^{2}\right )^{-1}}{\frac {1}{\sqrt {{\it Kv}}}}$

-\sin(\left({\it Patm}\,t-\arctan({\frac {{\it Pstart}}{\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}}})\sqrt {{\it Kv}}{\it Volume}\right){\frac {1}{\sqrt {{\it Kv}}}}{{\it Volume}}^{-1}){\it Pin}\,\cos(\left({\it Patm}\,t-\arctan({\frac {{\it Pstart}}{\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}}})\sqrt {{\it Kv}}{\it Volume}\right){\frac {1}{\sqrt {{\it Kv}}}}{{\it Volume}}^{-1})\sqrt {{{\it Pin}}^{2}{\it Kv}\,\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}\left (-2\,\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pstart}}^{2}\left (\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\right )^{2}+\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pin}}^{2}\left (\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\right )^{2}-2\,{{\it Pstart}}^{3}\sin({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})+2\,{\it Pstart}\,\sin({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}}){{\it Pin}}^{2}\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})+\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pstart}}^{2}\right )^{-1}}{\frac {1}{\sqrt {{\it Kv}}}}

Edit:

OK, found the error. In which program can I make a pretty formula based on this latex?

There is a pretty command in matlab but it's not graphical.

##### Share on other sites

surely the warning that the string is too long explains why it won't work on this forum.

If you want to see it just latex it at home using your installation of latex. This is freely available for all *nix platforms, windows, mac OSX, and probably many more besides. just download the relevant version and enjoy. use google to find it.

##### Share on other sites

How would you put a space in Latex?

Say I wanted to put something in scientific notation, what's the best way to do that.

##### Share on other sites

it's a slash followed by a space. eg "\ " without the quotation marks. You can insert larger spaces. Use google to get the information; there is a lot of latex on line (no puns please).

Thanks

##### Share on other sites
Use google to get the information; there is a lot of latex on line (no puns please).

Actually, I always google for "tex" for that reason.

##### Share on other sites

That might well work, but for the newbies remember a lot of tex stuff is deprecated in latex2e (documentclass for instance doesn't work in tex).

##### Share on other sites

Hey Dave, can you tell me if this is a bug?

Sometimes I get a restricted command error even when its text and not a command, name for example triggers error even if its not preceded by a slash... any ideas?

Cheers,

Ryan Jones