So, I've tried asking this question before but I always get generally waved to the .NET/Link connection, which is really not helpful at the moment. I may indeed need to use this connection, but I am very surprised no one has been able to answer such a basic question with a kind-of step-by-step answer. I have a function of one variable that I have computed in mathematica. It doesn't matter what the function is, so for simplicity it could just be called f[x_]:=Sin[x]. Now, what I want to do is to be able to call this function in a visual basic .NET program, such as:
i = 0
Do until i = 3 {
Print f[i];
i++;
loop}
Obviously, the f[i] is the function I defined in mathematica, and in this case represents Sin[x], so the vb.net program should print the results of Sin[0], Sin[1], Sin[2], and Sin[3]. The actual function is much more complex and can't really be handled by visual studio (vb.net), so I need to access the mathematica function from my vb.net program. Can anyone help answer this question? For some reason no one has been able to so far and I am puzzled by this. Thanks in advance.