Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
3.22/5 (3 votes)
Hello every one ,

I have develop one website which is about school related in asp.net, so i want to add mathematical and chemistry formula in paper set so how can i do it?

please help me !!
Posted

1 solution

Hello,

There are two parts in your question, first storing the data in SQL server, secondly representing it in a web page.

1) storing the data.

You could use LaTeX expressions, they are a way to format mathematical expression as strings. All you need to do is to store the LaText expression in SQL server in a string field.

http://en.wikipedia.org/wiki/LaTeX[^]

For example this is how you represent the Lorenz equations:
\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned} 


You will find plenty of LaText literature on the web.

2) displaying an equation on a web page.

To display an equation you could use a javaScript product called MathJax, it is very simple to use and understands Latext syntax.

http://www.mathjax.org/[^]



Valery
 
Share this answer
 
Comments
Rahul Dihora RV 29-Jul-14 1:18am    
Thank you Boss :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900