I want to write a program that receive a mathematical expression including "tan","sin","cos","cot","ln","+","-","*","/","power""d_x(derivative)" and any other function that user defines it in a seperate file and calculate the result.
as far as I now I must use "token" method and for derivative of a function I must use tree_method structure.
I thanks anyone that can help me as soon as possible!
When you say that you "must use" those methods, is that a requirement of the assignment or are you basing this off of some other research you've done. I only ask because this is not how I would have done it.
What kind of help? This is a rather large and involved project.
If you want to check out what the inventor of C++ did you should read his "Programming Principals and Practice using C++". One of the main programs early in the book is a token based parser for making a calculator. Pretty much what you want to do in a nutshell. It covers several chapters though as it is NOT trivial!