does anybody have an ActiveX dll for numerical integration? or give me some tips on that. I am trying to develop one but it seems more difficult than I thought.
Thanks,
tk
Printable View
does anybody have an ActiveX dll for numerical integration? or give me some tips on that. I am trying to develop one but it seems more difficult than I thought.
Thanks,
tk
I can give u a hint on developing the Program (It's an easy job to make it an ActiveX Dll or Exe or any thing)
Note that the answer is an approximate one & not the exact one. To make the accuracy high, the time required will be more
Trick is to get a data set for the function and use the Trapizoidal rule.
If u want me to explain I'll do it.
If u r have a Mathematics background, u know what I Mean??
R U worried about ActiveX or the way to do the integration programatically?
Srinika
I have a background in mathematics. I know how to programmize simpson's rule and trapizodal in matlab. but I don't know in VB. Right now, I am developing a project in VB and I need numerical integrations for that project.
Please explain to me.
thanks for your reply.
the biggest problem is that the function to be numerically integrated is not known. how can I deal with this problem in VB? for instance, using simpson's rule,
public function simps(a as single, b as single, n as integer, f() as single) as single
Like you see, I used a dynimic array for the unknow function. the problem is how to connect the arrary with the unknow function. Do you see my problem?
Thanks,
Tell Me, out of the following what u need to do
1. Integrate any function given ? eg. At one time y = Sin(t) another time y = x^3 + 2x + 7 and so on.
2. Only one complex function eg. y = Sin(7t) + t^8 + Tan(t^4) + 4t^.25
3. U have a set of data related to the function & u want to integrate those. eg. (y=0,x=11),(y=1,x=14),(y=2,x=15),(y=3,x=6).....
4. Any other
If the case is 1., it would be a bit difficult task. 2. & 3. are simple
Srinika
sure it is case 1.
Here I can give u the following hints:
1. In a help file (to be used by any user), the way of defining formula has to be defined. eg. To the Power -- > "^" , Multiply --> "x" ...
2. The Function has to be given in a text box with appropriate Format in 1.
3. In a Routine where there is string manipulation to take place all operators & values are to be identified & stored in an array or a stack
4. Complicated Error Checker has to be written
5. If syntax is correct, the evaluation routine has to be called
6. In the evaluation routine, the data in the above 3 . are manipulated
Also u can have pre-defined buttons to place the necessary mathematical symbol, rather than writing the formula manually. Then the creation of the formula would be taken place more easily. Also identifying the mathematical operations for each number would be easier
Any way this is not a small task, but a rather complicated one
Srinika
could you give me a simple example for that?
I don't think i understand that.
thanks,
cosider point by point that I have given.
Each is having an example.
Which one u couldn't understand? It is easier to answer in point form
Srinika
I don't understand the string manipulation process. I guess u recommend using collection for that. is that right?
thanks,
Hi srinika,
I just want to develop some tiny ActiveX dll code in VB. Can you give me some steps to build Activex Dll and use it. Give any small example.
santhosh