Sử dụng latex trong wordpress với QuickLatex:

Documentation: http://www.holoborodko.com/pavel/quicklatex/

Ví dụ về công thức toán:

At first, we sample f(x) in the N (N is odd) equidistant points around x^*:

    \[ f_k = f(x_k),\: x_k = x^*+kh,\: k=-\frac{N-1}{2},\dots,\frac{N-1}{2} \]

where h is some step.
Then we interpolate points \{(x_k,f_k)\} by polynomial

(1)   \begin{equation*}  P_{N-1}(x)=\sum_{j=0}^{N-1}{a_jx^j} \end{equation*}

Its coefficients \{a_j\} are found as a solution of system of linear equations:

(2)   \begin{equation*}  \left\{ P_{N-1}(x_k) = f_k\right\},\quad k=-\frac{N-1}{2},\dots,\frac{N-1}{2} \end{equation*}

Here are references to existing equations: (1), (2).

Ví dụ về vẽ hình với Tikz:

Rendered by QuickLaTeX.com

Dùng Syntax Highlighter để hiển thị code:

Documentation: https://en.support.wordpress.com/code/posting-source-code/

Ví dụ với cpp

#include <iostream>;
using namespace std;
int main () 
  for(int a = 10; a <= 20; ++a)
    cout<<"value of a: "<<a<<endl;
  return 0;

Leave a Reply

Your email address will not be published. Required fields are marked *