Source: Internet
Author: User

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.

Related Keywords:
Related Article

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

## A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

• #### Sales Support

1 on 1 presale consultation

• #### After-Sales Support

24/7 Technical Support 6 Free Tickets per Quarter Faster Response

• Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.