A Java project shocould link to Maple using those math methods. Step as following.
1. In the maple, get the bin lib path. in Windows XP, input:
> Kernelopts (bindir );
And I get the answer: "D: \ Program Files \ maple 11 \ bin. Win"
2. Set the path into the windows system path. You can check it with "Echo % PATH %" command.
3. Create the Java project, and import the packages: externalcall. jar and jopenmaple. jar in % maple % \ Java dictionary.
4. build and run.
I use the % maple % \ samples \ openmaple \ Java \ jcmaple for test. And that's perfect!
Run the sample and input a recursive equation set to get the solution.
> Eq [1]: = D (0) = d [0];
Eq [1]: = D (0) = d [0]
> Eq [2]: = D (k + 1) = D (k) + 1;
Eq [2]: = D (k + 1) = D (k) + 1
> Eq [3]: = L1 (m + 1) = L1 (m) + 1;
Eq [3]: = L1 (m + 1) = L1 (m) + 1
> Eq [4]: = L2 (n + 1) = L2 (n) + 1;
Eq [4]: = L2 (n + 1) = L2 (n) + 1
> Eq [5]: = L1 (0) = L1 [0];
Eq [5]: = L1 (0) = L1 [0]
> Eq [6]: = L2 (0) = L2 [0];
Eq [6]: = L2 (0) = L2 [0]
> P: = rsolve (convert (EQ, set), {d (K), L1 (M), L2 (n )});
P: = {d (K) = K + d [0], L1 (m) = M + L1 [0], L2 (n) = N + L2 [0]}
Maple can convert procedures and data into the ages such as C, Java, basic and so on, however it can not convert the kernel funtions like the "rsovle ". as a result, it's the only way to use its API.
OK, I'll use it to solve my complex problems for bug-finding in the software.