Formula Parser

Formular Editor, a great control which can edit and display the formular in a very friendly way. For details, please visit the CodeProject website.

But how to build the formula is very hard. One can input the formula by the mouse, or build the Formular Tree in program. Both are hard.

So I write the ucoFmlParser for the control, which can parse the LaTex-like expression to formular.

For example, you can input the formular expression “f(x)=x^2+\sqrt{30}”,you can got the following formular in the control:

Another more complex example, following is the formula expression:

s(x)=a\link x^2+b \link x+30 \n f(x)=x^2+\beta+\frac{x,1+\sqrt{x+\frac{1,3+x}}} \n g(x)=80.22\unit{mm} \n f(x)=\int_0^100{(2\cdot x^2+3\cdot x+10),x} \n g(x)=\sum{i=1,N,(x_i+sin(x+\pi/2))}+100 \n W_0=\frac{\gamma,2}\link\brac{2,(\cot{\omega_2}+ \tan{\alpha_2})\link H^2 +(\tan{\alpha_1}-\tan{\alpha_2})\link H^{2}_{1}} \n x=3\arrow{6}\brac{15,\bin{w=4,m=5}}\cdots{50}(8.29)

fml

So, we can realize that, with the help of ucoFmlParser, we can produce very complex formula with sample LaTex expression. And then it becomes possible to build the formula support into our project. such as Mathematics report and so on.

download:

Sorry, since some task has not been completely finished, I will post the source pacage file here some days later.

Tags: , ,