Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Latex Math Equations

Status
Not open for further replies.

ElectroMaster

Administrator
Latex is a typesetting system which allows you to generate simple to complex math equations that can't be created using normal text formats. You basically write your equation in the latex language and it translates it displays it correctly.

The language can get quite complex but the basics are easy. You can pick it up pretty quickly, so get stuck in!

Here are a few examples:

Example 1:

Code:
[latex]\int[/latex]

[latex]\int[/latex]

TIP: Try clicking the math expression. It will popup a box showing you how it was created.

Example 2:

Code:
[latex]\Large e^x=\lim_{n\to\infty} \left(1+\frac~xn\right)^n[/latex]

[latex]\Large e^x=\lim_{n\to\infty} \left(1+\frac~xn\right)^n[/latex]

Example 2:

Code:
[latex]\mathcal{F}_{x} [\sin(2\pi k_0 x)](k) = \int_{-\infty}^{\infty} e^{-2\pi ikx} \left( \frac{e^{2\pi ik_{0}x} - e^{-2\pi ik_{0}x}}{2i} \right) dx[/latex]

[latex]\mathcal{F}_{x} [\sin(2\pi k_0 x)](k) = \int_{-\infty}^{\infty} e^{-2\pi ikx} \left( \frac{e^{2\pi ik_{0}x} - e^{-2\pi ik_{0}x}}{2i} \right) dx[/latex]

Some easy reading (joke):
Latex Symbols
Latex AMS Math Documentation

For further reading:
https://www.latex-project.org/
https://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/
 

Attachments

  • latext_amsldoc.pdf
    398.5 KB · Views: 772
  • latext_symbols.pdf
    255.3 KB · Views: 710
Last edited:
Wow this looks cool but it is a little is tricky!

Let's start with something a bit more simple first.

[latex]I = \frac~VR [/latex]
 
Last edited by a moderator:
Electromaster, do you perhaps have a website you could refer us to where we can read about the specifics (limitations, syntax changes, etc) of this forum-oriented LaTeX module?
 
Last edited by a moderator:
Last edited:
Just experimenting with a few simple formulae.

[latex]X_C= \frac{1}{2 \pi FC}\[/latex]

[latex]Z = \sqrt{X_C + R}[/latex]

[latex]R2 = R1 \frac{V_{OUT}-V_{REF}}{R1 \times I_{ADJ} + V_{REF} }\[/latex]

[latex]V_{OUT} = V_{REF} \left(1+ \frac{R1}{R2}\ \right)+I_{ADJ} \times R2[/latex]

This isn't that difficult. I feel I'm comfortable with enough to get by and I'll still need to RTFM every now and the but it's easy when you know how. I'd rather use Latex than have to attach formula generated by Writer, it saves the copy and pasting.
 
Last edited by a moderator:
testing import from Maple:
[ latex ]
F={\frac {kq_{{1}}q_{{2}}}{{r}^{2}}}
[ /latex ]

[latex]F={\frac {kq_{{1}}q_{{2}}}{{r}^{2}}}[/latex]
 
Last edited by a moderator:
Testing:

[latex]\large I=\ \frac~VR[/latex]

[latex]\large f=\ \frac~1{2\pi \sqrt {LC}\ }\[/latex]
 
Last edited by a moderator:
what is wrong with my latex commands? sometimes they work but sometimes they dont (my pervious post)
 
bloody-orc said:
what is wrong with my latex commands? sometimes they work but sometimes they dont (my pervious post)
Yes it works!!
[latex]F={\frac {kq_{{1}}q_{{2}}}{{r}^{2}}} [/latex]
[latex]F={\frac {kq_{{1}}q_{{2}}}{{r}^{2}}} [/latex]

You should enter like this:
[ latex]F={\frac {kq_{{1}}q_{{2}}}{{r}^{2}}}[/latex]
[ latex]F={\frac {kq_{{1}}q_{{2}}}{{r}^{2}}}[/latex]

with no space in front of the word "latex"
 
Last edited by a moderator:
haha! got it. i had the latex statements before and after the code but they were on sepperate lines than the code itself (like when writing quotes etc...

was like this:
[lateks]
code
[/lateks]
 
You can actually get vb code to displaty by using [plain][/plain] tags, just wrap them around the code you want to display.

For example you can prevent codes from being converted to smilies.

[plain];) :D :o :) :( :confused: :mad: :p :rolleyes: :eek: [/plain]
 
Last edited by a moderator:
Factorise this one please.

I have been troubled by this factorisation sum for quite some time now. Please help me.

/frac{/sqrt{2a^{2}b^{2}+2b^{2}c^{2}+2a^{2}c^{2}-a^{4}-b^{4}-c^{4}}}{4}
 
Last edited:
Please post a picture of the formula you want; use an easy to use program such as MS Equation for Word or OpenOffice Math.
 
Hero999 said:
Please post a picture of the formula you want; use an easy to use program such as MS Equation for Word or OpenOffice Math.
I tried Hero999, but it would not upload. Anyways, sorry for the trouble.

Factorise:

(2 a square b square + 2 b square c square + 2 a square c square - a raised to the power of 4 - b raised to the power of 4 - c raised to the power of 4) / 16. The whole expression is under root.

Sorry, because the sum is in words.
 
For some reason the Latex on this form requires an variable/number followed by an equals sign.

For example, you can have:
[latex] f_0 = \frac{1}{2 \pi sqrt{LC}} [/latex]
or:
[latex] 81 \times 10^6 = \frac{1}{2 \pi sqrt{82 \times 10^{-9} \times 47 \times 10^{-12}}} [/latex]
But you can't have:
[latex] \frac{1}{2 \pi sqrt{LC}} [/latex]
or even something simple like:
[latex] a+b [/latex]

I suppose a + b doesn't make much sense on its own.
 
Last edited by a moderator:
Latex

Hero999 said:
For some reason the Latex on this form requires an variable/number followed by an equals sign.

For example, you can have:
[latex] f_0 = \frac{1}{2 \pi sqrt{LC}} [/latex]
or:
[latex] 81 \times 10^6 = \frac{1}{2 \pi sqrt{82 \times 10^{-9} \times 47 \times 10^{-12}}} [/latex]
But you can't have:
[latex] \frac{1}{2 \pi sqrt{LC}} [/latex]
or even something simple like:
[latex] a+b [/latex]

I suppose a + b doesn't make much sense on its own.

I do not not understand what you express. However, that is beside the point. Could you please help my with me problem. I do not seem to get it.
 
Last edited by a moderator:
I meant that Latex on this forum won't let you have:
a + b

you need to have:
c = a + b

This means that what you want to do won't work unless you have an = sign somewhere in-between some numbers or variables.
 
[latex] \lim_{h\to\0} \left( \frac{f(x+h)-f(x)}{h}\right) [/latex]

[latex] P = F_{{||}}v [/latex]

[latex] m_{{1}}v_{{1}} = m_{{1}}v_{{2}} + m_{{2}}v_{{3}}[/latex]

[latex] z = {{{{{{{x^y}^a}^}^c}^}^}^d} [/latex]

Edit: thanks eng1
 
Last edited:
43617373 said:
Is there any way to make power towers to work? putting in x^y^2 gives x^y2?
Like this? [latex] b = x^{y^2} [/latex] :)
Use curly brackets to surrond expressions, like y^2.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top