?
Solved

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

Posted on 2006-04-25
3
Medium Priority
?
1,418 Views
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 ...
Regards,

0
Comment
Question by:secret_wind
1 Comment
 
LVL 19

Accepted Solution

by:
Fahad Mukhtar earned 800 total points
ID: 16533177
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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.
Screencast - Getting to Know the Pipeline
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

840 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