Mathematical formulas in the SimScale forum

Fellow SimScale users,

@mmazo just updated the forum with a cool new option to type in mathematical formulas. Quick demo:

When a \ne 0, there are two solutions to (ax^2 + bx + c = 0) and they are

x = {-b \pm \sqrt{b^2-4ac} \over 2a}.

It also supports tensor/matrix notion:

\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}

Right-click on the equation \rightarrow Show Math As \rightarrow TeX commands. Use new lines for the dollar signs and the command you want to convert.


Hope it helps!

8 Likes

We are using the webs most popular math javascript engine MATHJAX which allows you to use Tex on the forum editor.

All you have to do is use TeX markup inside the standard TeX delimiters, for example:

$$ x = a + b^2 $$

to get: $$ x = a + b^2 $$

If you want to learn more we recommend you to visit:
Latex-project and MATHJAX

4 Likes

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$

It looks like TeX delimiters $$…$$ for displayed equations have been deprecated, am I correct? :cry:

Dale

Hey Dale,

no everything works expected.

x = {-b \pm \sqrt{b^2-4ac} \over 2a} \qquad :)

Right-click on the equation \rightarrow Show Math As \rightarrow TeX commands. Use new lines for the dollar signs and the command you want to convert.

Best,

Jousef

1 Like

Jousef,

This is strange, in your reply of Post 4, I see the beautiful formula.

In posts 1 and 2, I only see the embedded code where the nice formula should be ???

Especially Post 1 should show up correctly, should it not?

I will try your suggestion.

Dale

x = {-b \pm \sqrt{b^2-4ac} \over 2a}

AHA, new lines for each $$ was the key!!!

Perhaps the first post could be fixed (and maybe the tensor/matrix notion there too) :slight_smile:

Thanks as always for the heads up Dale - changed! :slight_smile:

All the best!

Jousef

1 Like

:smile:

I am just reading and learning and treading water until someone has a chance to respond to my admittedly voluminous postings of my Background Mesh Box - Size Optimization Topic :wink:

Dale

That topic is wonderful as well as gigantic! :smiley: I promise that I will take care of that soon but have some exams in between and I really want to dig deep here and see what we can extract from your observations for other users to save computing power by building the knowledge of our users and simply be more efficient when it comes to topics like that. Guess I would then just create a new SimWiki article and type everything in \LaTeX as a “best practice booklet” with big props to Dale Kramer! :sunglasses:

Cheers and stay inquisitive!

Jousef

1 Like

Just for completeness, perhaps you should add this to post 1 and we can delete all of today’s meanderings :smile:

1 Like