HP Forums
LaTeX? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Test forum (/forum-18.html)
+--- Thread: LaTeX? (/thread-58.html)



LaTeX? - Han - 12-13-2013 01:02 AM

Just curious if this particular forum software handles latex math markup.


RE: LaTeX? - Dave Hicks - 12-13-2013 02:42 AM

Maybe it does now - let's see:

\[\int_{a}^{b} f(x)dx = F(b)-F(a) \]

\[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]

\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \end{vmatrix} \]

\[ \begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\ \nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned} \]


RE: LaTeX? - Han - 12-13-2013 02:44 AM

(12-13-2013 02:42 AM)Dave Hicks Wrote:  Maybe it does now - let's see:

\[\int_{a}^{b} f(x)dx = F(b)-F(a) \]
Where \(F(x)\) is the anti-derivative of \(f(x)\)

Awesome! Thank you so much, Dave!


RE: LaTeX? - Dave Hicks - 12-13-2013 02:46 AM

You should thank Katie too. She was already prodding me in this direction.


RE: LaTeX? - Han - 12-13-2013 02:49 AM

And thank you, Katie!

I wonder if inline LaTeX works. $a^2+b^2=c^2$ vs $$a^2+b^2=c^2$$

Is there a magic tag for inline LaTeX?


RE: LaTeX? - Dave Hicks - 12-13-2013 02:55 AM

Well let's try this:

This expression \(\sqrt{3x-1}+(1+x)^2\) is an example of an inline equation.

Surround with () instead of [].


RE: LaTeX? - Han - 12-13-2013 02:58 AM

Fantastic!


RE: LaTeX? - Thomas Klemm - 12-13-2013 07:29 AM

Let me try how this works: \(e^{i\pi}+1=0\)
That's so much better than having to use an image:
[Image: gif.latex?e%5E%7Bi%5Cpi%7D+1%3D0]
Dave and Katie: thanks a lot!
Thomas


RE: LaTeX? - Massimo Gnerucci - 12-13-2013 11:32 AM

(12-13-2013 02:55 AM)Dave Hicks Wrote:  Well let's try this:

This expression \(\sqrt{3x-1}+(1+x)^2\) is an example of an inline equation.

Surround with () instead of [].

Very nice!
Thank you Dave and Katie


RE: LaTeX? - John R - 12-13-2013 04:25 PM

OK, I've gotta try. Here's an offset equation:

\begin{equation}
p(x|\mu,\sigma)=\frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}
\end{equation}

And here is the inline version: \(p(x|\mu,\sigma)=\frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}\)

Nice!


RE: LaTeX? - Mark Hardman - 12-13-2013 07:26 PM

I feel obligated and honored to insert the famous HP-67 Mach number equation:

\[\sqrt{ 5 \left [ \left ( \left \{ \Bigg [ \Bigg ( 1 + 0.2 \left [ \frac{350}{661.5} \right ]^{2} \Bigg )^{3.5} - 1 \Bigg ] \Bigg [ 1 -\left ( 6.875 \times 10^{-6} \right ) 25,500 \Bigg ] ^{-5.2656}\right \} + 1 \right )^{0.286} -1 \right ]}\]

Dear Curator,

You have truly outdone yourself!

Mark Hardman


RE: LaTeX? - jebem - 04-01-2016 03:22 PM

\(3ax^2\)


RE: LaTeX? - ggauny@live.fr - 04-02-2016 09:12 AM

How it works to write an equation as you ?


RE: LaTeX? - jebem - 04-02-2016 11:18 AM

(04-02-2016 09:12 AM)ggauny@live.fr Wrote:  How it works to write an equation as you ?

I am not an expert and I don't like the big work involved in writing in that language either.
But it is very useful as the equations are much more readable Smile

I just copy what other people here are posting.
You can do the same, by just clicking on the "Quote" button on a post from other people having latex equations.
Then you can copy the text, edit it, and test it with the "Preview Post" button.

But I think that the general latex format is:


Code:

1) Example for inline equation:
\(E=mc^2\)
This is a simple equation: \(E=mc^2\) that I have found on a very old book.


Code:

2) Example for centered equation:
\[E=mc^2\]
This is a simple equation: \[E=mc^2\] that I have found on a very old book.


Additional information:
This post here also contains lots of information with external links pointing to latex documentation and tools.


But what we really need is a latex editor tool that help us to build the equation and then we can copy it as a text string into our posts here in the MoHPC.

Fellow member Tugdual mentioned this link here for such a tool.
Does anyone know of a better or alternative tool?


RE: LaTeX? - Joe Horn - 04-02-2016 02:30 PM

(04-02-2016 11:18 AM)jebem Wrote:  Does anyone know of a better or alternative tool?

Here are two alternatives:
http://atomurl.net/math/
http://www.codecogs.com/latex/eqneditor.php


RE: LaTeX? - jebem - 04-05-2016 03:15 PM

(04-02-2016 02:30 PM)Joe Horn Wrote:  
(04-02-2016 11:18 AM)jebem Wrote:  Does anyone know of a better or alternative tool?

Here are two alternatives:
http://atomurl.net/math/
http://www.codecogs.com/latex/eqneditor.php

Thank you, Joe!


RE: LaTeX? - Tim Wessman - 04-07-2016 01:08 PM

(04-05-2016 03:15 PM)jebem Wrote:  
(04-02-2016 02:30 PM)Joe Horn Wrote:  Here are two alternatives:
http://atomurl.net/math/
http://www.codecogs.com/latex/eqneditor.php

Thank you, Joe!

You can also get a latex string out of the Prime with the latex() CAS function should you have that emulator installed.


RE: LaTeX? - Massimo Gnerucci - 04-07-2016 02:26 PM

(04-07-2016 01:08 PM)Tim Wessman Wrote:  
(04-05-2016 03:15 PM)jebem Wrote:  Thank you, Joe!

You can also get a latex string out of the Prime with the latex() CAS function should you have that emulator installed.

Nice trick Tim, thank you!


RE: LaTeX? - jebem - 04-07-2016 05:11 PM

(04-07-2016 01:08 PM)Tim Wessman Wrote:  You can also get a latex string out of the Prime with the latex() CAS function should you have that emulator installed.

Thank you, Tim!
Just found it in the physical Prime too, and it is amazing what this machine can do.


RE: LaTeX? - vk6ti - 04-07-2016 10:24 PM

(04-02-2016 09:12 AM)ggauny@live.fr Wrote:  How it works to write an equation as you ?

Testing quote tab