Jump to content
Ghideon

math test

Recommended Posts

Just trying [math] for the first time...

(Vfy)^2=(VisinΘ)^2+2ay⋅Δy

[math] V_{fy}^{2} = V*sin( \phi )^{2}*2a_{y}* \Delta _{y}[/math]

Edited by Ghideon

Share this post


Link to post
Share on other sites

(1):  [math]t'= \gamma (t- \frac{vx}{c^{2} } )[/math]

 

Edited by Ghideon

Share this post


Link to post
Share on other sites

1: PNG: image.png.216479226984d4809b87c0d5a979b178.png

2: Plain text: f(x):=0

3: text between math brackets: [math]f(x):=0[/math]

4: Screenshot of line 3 above before pushing submit:

image.png.8c7fcaef1b598db222bfe5a3b94b9e52.png

 

Edited by Ghideon

Share this post


Link to post
Share on other sites

Three different modes tested:

[math]f(x):=0[/math]

\(f(x):=0\)

[latex]f(x):=0[/latex]

Code for above is

[math]f(x):=0[/math]

\(f(x):=0\)

[latex]f(x):=0[/latex]

Screendump from browser

image.png.09d5249ca4c056ab5a4d93bd2915e9ca.png

Mathjax-config: 

inlineMath: [ ["\[math\]","\[\/math\]"], ["\\(","\\)"], ["\[latex\]","\[\/latex\]"] ],

 

Edited by Ghideon

Share this post


Link to post
Share on other sites

Testing inlined math using hint from @joigus*, square brackets vs parentheses. 

Sentence with three definitions [math]f(x^{2})=\frac{y}{2} [/math] \(f(x^{2})=\frac{y}{2}\) [latex]f(x^{2})=\frac{y}{2}[/latex] end of sentence.

Sentence with no math. 

New sentence [math]f(x^{2})=\frac{y}{2}[/math] \[f(x^{2})=\frac{y}{2}\] [latex]f(x^{2})=\frac{y}{2}[/latex] end of sentence.

 

<end of test>

Below is the code for the above 

Sentence with three definitions [math]f(x^{2})=\frac{y}{2} [/math] \(f(x^{2})=\frac{y}{2}\) [latex]f(x^{2})=\frac{y}{2}[/latex] end of sentence.

Sentence with no math. 

New sentence [math]f(x^{2})=\frac{y}{2}[/math] \[f(x^{2})=\frac{y}{2}\] [latex]f(x^{2})=\frac{y}{2}[/latex] end of sentence.

 

*) Thanks !

Edited by Ghideon

Share this post


Link to post
Share on other sites
\[ \frac{a}{b} \]

\[\frac{a}{b}\]

Oh, so that's how you escape LateX.

I thought I'd seen it somewhere. Thank you @Ghideon.

Share this post


Link to post
Share on other sites

\[CaC{O_3}\xrightarrow[{heat}]{}CaO + C{O_2}\]

Displaying the command text in AMS Latex works if you omit the first backslash or put it between < >

[CaC{O_3}\xrightarrow[{heat}]{}CaO + C{O_2}\]

<\>[CaC{O_3}\xrightarrow[{heat}]{}CaO + C{O_2}\]

 

 

 

 

Edited by studiot

Share this post


Link to post
Share on other sites
55 minutes ago, studiot said:

Displaying the command text in AMS Latex works if you omit the first backslash or put it between < >

That's nice. Only thing is that you're forced to leave out the braces, which maybe you want to make explicit. But you gave me an idea. Let's see if it works:

\[ \textrm{ \[ \frac{a}{b} \] } \]

\[ \text{ \[ \frac{a}{b} \] } \]

Look at that. It does...

You only have to escape the math mode inside the LateX with the \textrm{} or \text{} commands.

Share this post


Link to post
Share on other sites

\[ \frac{a}{b} \] 

23 hours ago, joigus said:

\[ \frac{a}{b} \] 

\[ \frac{a}{b} \] 

Yes it seems to be copy and pastable.

I say that as I try to provide something that does not generate an error code here but can be copy/pasted rather than typed in.

Share this post


Link to post
Share on other sites
On 1/10/2021 at 6:24 PM, Ghideon said:

Below is the code for the above 

You don't need brackets {} if superscript or subscript has just one character. e.g. x^2 instead of x^{2}. Subscript you make using _ character.

[math]x^2[/math]

[math]x_a[/math]

 

 

Edited by Sensei

Share this post


Link to post
Share on other sites
14 hours ago, studiot said:

Yes it seems to be copy and pastable.

Yes it is copy and pastable, but sadly I now note that it did not produce my intended effect.

Yes I copy.pasted from your post and it reproduced the listing of your code as you have shown it,

But MathJax the Mangler  later intervened and now my copy comes out showing the action (ie the fraction) not the code.

Share this post


Link to post
Share on other sites
16 minutes ago, studiot said:

Yes it is copy and pastable, but sadly I now note that it did not produce my intended effect.

Yes I copy.pasted from your post and it reproduced the listing of your code as you have shown it,

But MathJax the Mangler  later intervened and now my copy comes out showing the action (ie the fraction) not the code.

It interacts badly with the round brackets also when you want to show the inline maths tags. It may interact badly with other tags too. I think the safest thing when you want to show code is the code button on the toolbar.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.