[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


solving formula

Posted on 2005-04-16
Medium Priority
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
  • 2
  • 2
LVL 21

Expert Comment

ID: 13799774
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

ID: 13800360
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

Yurich earned 252 total points
ID: 13800440
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

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

Assisted Solution

Agarici earned 248 total points
ID: 13804619

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
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 video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

873 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