English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is it possible to make a program which computes limits of a function using C++? If yes, can you please give me the algorithm(I need only the algorithm, not the source code)?

Thanks in advance!

2007-12-21 22:38:28 · 1 answers · asked by {flick} 3 in Computers & Internet Programming & Design

1 answers

It is probably faisible, but "limits" is a vague term.
There are many maths functions that lead to mutiple limits (i.e. +inf, -inf, 0) all in one single function.
Tan() is one of them: with a=90deg, +inf, with a=180deg, -inf etc...
Series is another problem: functions can be reduced to a relatively small set of function series that will have limits calculated in different way each time.
For the "algorithm"...
First, establish WHAT functions you get as input: how are you going to enter the function? This is already not too obvious.
Then, you'll have to convert that function in something the computer can understand. It also has to be checked for correctness... (no "open bracket" for example).
Finally, your program must compute the reduction of the function to its simplest expression, and, at last, go to a table of "resolution" (a choice on how to solve the function to find the limits.)
You are in a for a treat...
Good luck

2007-12-21 23:56:39 · answer #1 · answered by just "JR" 7 · 1 0

fedest.com, questions and answers