Converting Textbox.Text that contains Math Formula to a Math Formule and Use Input Arguments for the Functions.

Posted on 2006-04-25
Last Modified: 2008-01-09
Hi dear Experts,

I have a serious problem and I need Urgent Answer .

I have a textbox that my user enters an C# Math formula like " Math.Cos(x) + 2 * x "
I need to have this text as a math function and pass the "x" argument to the formule in my function :

public double functionresult(double x1, string functions )
            double x = x1 ; // this is my Argument
            // I need to get that Textbox math Functions and return the whole expression's answer.

please help me in this case ...

Question by:secret_wind
    1 Comment
    LVL 19

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now