title: Delphi component or library to display mathematical expressions
body: <p>I'm looking for a simple component that displays mathematical expressions in Delphi. When I started out I thought it would be easy to find something on the net, but it turns out it was harder than anticipated. There are lots and lots of components that will <em>parse</em> mathematical expressions, but few (none?) that will display them.</p>
  
  <p>Ideally I would like a component as simple as a TLabel, where I could set the caption to some expression and it would be displayed correctly, but some sort of library that let's me draw expressions to a canvas would also be sufficient for my needs.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I'm not talking about plotting graphs of functions or something like that. I want to display (for instance) </p>
  
  <blockquote>
    <p>(X^2+3)/X</p>
  </blockquote>
  
  <p>like this:</p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/fCUh4.png" alt="enter image description here"></p>
  </blockquote>
  
  <p><strong>Solution:</strong></p>
  
  <p>MBo's answer was just what I was looking for. Some people may be put off by the fact that all comments and documentation are in Russian, but don't let that scare you. It was really easy to use. </p>
  
  <p>Installation: Unzip the files (at least "ExprMake.pas" and "ExprDraw.pas") to a directory in your library path. That's it.</p>
  
  <p>Use: I haven't experimented extensively with it, but these few lines demonstrates how easy it is.</p>
  
  <pre><code>procedure TForm1.Button1Click(Sender: TObject);
  var
    vExprC : TExprClass;
    vExprB : TExprBuilder;
  begin
    vExprB := TExprBuilder.Create;
    try
      vExprC := vExprB.BuildExpr('(X^2+3)/X');
      vExprC.Canvas := Canvas;
      vExprC.Font.Size := 50;
      vExprC.Draw(10,10,ehLeft,evTop);
    finally
      vExprC.Free;
      vExprB.Free;
    end;
  end;
  </code></pre>