solving formula

Posted on 2005-04-16
Last Modified: 2010-04-16
i am using c#. i want to create an application that accepts any mathametical function like

a+2power3 +sin(x)

so whcihc steps i should follow to create these type of application.
Question by:shujaataptech
    LVL 21

    Expert Comment

    where from should it accept it?
    as an input from from a form, keyboard, someting else?
    any function will accept anything by default, the questino is whether you want it to recognize power but not pover?
    some carification would probably help to help you ;)

    Author Comment

    measn i want to create a code that helps me to solve formula results,what eveer i input or mentioned hardcodedly,

    like i have enter a string


    and this will gimme result.
    LVL 21

    Accepted Solution

    so, it's not "accepting" your formula, but solving it?

    do you mean something like a function you pass a string "x + y * 6 / 2 - 2" and it will return you a result?

    you can try to create your own algorithm in this case and there should be some online but basically it's breaking your code into pieces, parsing these pieces, and combining it all back, if i understood you correct. more variaties you're going to have, more complex and large it will become, e.g. (( 3 * 4)^5 - 5log8 + tg30)/(20%6))*2 - b^5 will take enourmous amount of calculations...


    Author Comment

    yes you are nearly correct,where should i find this algo.and what should be the technique.
    LVL 11

    Assisted Solution


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    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…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    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!

    734 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

    23 Experts available now in Live!

    Get 1:1 Help Now