How can an application execute a mathematical formula edited in an Edit

Discussion in 'C' started by nunca, Mar 3, 2012.

  1. nunca

    nunca New Member

    Joined:
    Mar 3, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am so tired about this problem. Please can someone help me.
    In my application I need perform a procedure which can read a mathematical formula form an Edit and execute it. The problem is how can I convert this string to a real function
    Thank you​
     
  2. Alan_Smith

    Alan_Smith Banned

    Joined:
    Jan 24, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Los Angeles
    Home Page:
    http://www.spinxwebdesign.com/
    It is necessary to add “#include<math.h >” into C++ program to use any mathematical function. The string uses only characters so first create function and give function name, and then use any data type related to math as integer or float. If require convert string into integer and float. Thus, it is possible to create mathematical formula with function and edit it.
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Can you give an example of the kind of input you want to give, and what output you would expect?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice