I want to write a .NET program calling Mathematica as a computing engine. But here is a problem that argument a1 is not a constant and its value depends on a1=str1+str2. There is a mathematica function(fun1) I need to call and the argument of fun1 is a string. In Mathematica, I program like fun1["@150"]. But now, the problem is coming. Firstly, I think I can call fun1 like this:
Dim ml As IkernelLink = MathLinkFactory.CreateKernelLink()
ml.Evaluate("fun1[a1]")
But I found it is wrong, because in Mathematica the argument of fun1 is essentially a string. But here we also can not use ml.Evaluate("fun1["a1"]"). How can I solve this problem?
"fun1[a_]:=Print[a];"in some way. In constructs a new kernel. – William Oct 27 '14 at 14:43FrontEndor have it installed in a package somewhere. This is somewhat related and demonstrates how the Kernel doesn't hook in with the FrontEnd and doesn't always work. – William Oct 27 '14 at 16:43