Example. A simple application calculates the square root in the symbolic form

Create a simple demonstration WinForm application. It is application will calculate the square root of the values ??‹??‹entered by the user.

to start, create an empty WinForm project and put the components Math Expression Editor Light (MEEL), and a button.

Add Math Expression Editor Light 1.1 to form
Add botton..

Create the handler for clicking "Calc"

        private void button1_Click(object sender, EventArgs e)
        {
            // get selected math expression
            IExpression expression = this.mathControl2.Expression as IExpression;
            if (expression == null)
                return;

            // get symbolic square root
            IExpression sqrtExpr = new Sqrt(expression);

            // Calculate
            IExpression result = sqrtExpr.Execute();

            // send MessageBox
            MessageBox.Show(result.GetText());
        }

Here's what happened in the end:

example of the work. Calculating the square root
example of the work. Calculating the square root in the symbolic form

Video running application can see here.