Author Topic: Testing Math  (Read 13200 times)

Victor Ivrii

  • Administrator
  • Elder Member
  • *****
  • Posts: 2607
  • Karma: 0
    • View Profile
    • Personal website of Victor Ivrii
Testing Math
« on: September 18, 2012, 11:59:02 PM »
Testing how MathJax was hooked up
\begin{align*}
u(x,t)= &\underbracket{\frac{1}{2}\bigl[ g(x+ct)+g(x-ct)\bigr]+\frac{1}{2c}\int_{x-ct}^{x+ct} h(y)\,dy}_{=u_2}+\\[3pt]
 &\underbracket{\frac{1}{2c}
\iint_{\Delta (x,t)} f(x',t' )\,dx\,d t' }_{=u_1}.
\label{eq-4}
\end{align*}

James McVittie

  • Full Member
  • ***
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Testing Math
« Reply #1 on: September 20, 2012, 10:04:04 PM »
This is just a test to see whether I can copy and paste from LyX:

u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy

Victor Ivrii

  • Administrator
  • Elder Member
  • *****
  • Posts: 2607
  • Karma: 0
    • View Profile
    • Personal website of Victor Ivrii
Re: Testing Math
« Reply #2 on: September 21, 2012, 02:55:35 AM »
This is just a test to see whether I can copy and paste from LyX:

u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy

Yes, you can but need to switch on math (inline or display respectively)

Code: [Select]
$u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy$$u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy$

Code: [Select]
$$u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy$$$$u(x, t) = \varphi(x-ct)+\phi(x+ct)-\intop_{x-ct}^{x+ct}g(y)dy$$

Actually I never saw \intop (just \int) and double dollars are deprecated (see my code), but your example works

Jinlong Fu

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 5
    • View Profile
test for math
« Reply #3 on: September 23, 2012, 02:38:04 AM »
$x>b^2$, is it the same as latex?

$$local\ mean\ level\ \qquad S_t = \alpha(\dfrac{X_t}{D_{t-s_1}W_{t-s_2}})+
(1-\alpha)(S_{t-1} + T_{t-1})$$
$$trend\ \qquad T_t = \gamma (S_t - S_{t-1}) + (1-\gamma)T_{t-1}$$
$$seasonality\ 1 \ \qquad D_t = \delta (\dfrac{X_t}{S_t W_{t-s_2}}) + (1-\delta)D_{t-S_1}$$
$$seasonality\ 2 \ \qquad W_t = \omega (\dfrac{X_t}{S_t D_{t-S_1}}) + (1-\omega)W_{t-s_2}$$
$$\hat{X_t} = (S_t + kT_t)D_{t-s_1+k}W_{t-s_2+k}$$
« Last Edit: September 23, 2012, 02:41:53 AM by Jinlong Fu »

Victor Ivrii

  • Administrator
  • Elder Member
  • *****
  • Posts: 2607
  • Karma: 0
    • View Profile
    • Personal website of Victor Ivrii
Re: test for math
« Reply #4 on: September 23, 2012, 05:55:35 AM »
$x>b^2$, is it the same as latex?
Yes -- except MathJax neither is nor intended to be a complete LaTeX. See
http://www.math.toronto.edu/courses/apm346h1/20129/about_mathjax.html

Note: If you have text snippet inside of math you should use \text{Your text} rather than format it as math as you did. You can also use \textrm{Your text}, \textit{Your text}.

Also DoubleDollars are deprecated in LaTeX, you use \[ \] or \begin{equation*} \end{equation*} (without * for a numbered version)

PS I disabled \( \) and \[ \] as they in the forum environment have funny side effects.