Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Displaying equations using mathematical notation in C#

Tags:

c#

math

I have a very simple application that is generating equations, very simple ones, like

  • 4 + 5 = x
  • x + 4 = 12
  • 15 / x = 3
  • x^2 = 4
  • sqrt(6) = x

When I display it to myself equations like x + 4 = 12 is fine, I can read it pretty well but it would be nice if x^2 = 4 would be displayed as it x2 = 4. It does not have to be as image, it could be anything else, but it should be so user can understand the equation.

Is there is some library that can help me with that?

like image 445
Stan Avatar asked Jan 08 '12 14:01

Stan


1 Answers

You could add a MathML library to your application. This is a general math formatting library. MathML in C# The examples also include non-xml defined equations.

Another library you could be looking for should be LaTeX for C#, although, I'm not sure if this has been written yet.

like image 196
Cedric Van Goethem Avatar answered Sep 28 '22 03:09

Cedric Van Goethem