building tools with mathomatic embedded in them

Asked by Sunil Nandihalli on 2009-08-25

Hello everybody,
 I would like to know if one can embed mathomatic in one's own tool .. Has anybody done it?

Question information

English Edit question
Mathomatic Edit question
No assignee Edit question
Last query:
Last reply:

Mathomatic has been included in other C programs, for example the Mathomatic iPhone app which is currently sold in Apple's app store; See "". Here the author of the iPhone app (Ben Gotow) simply downloads and compiles the Mathomatic source code in library mode for the ARM processor of the iPhone, and links it to his proprietary GUI code. Since Mathomatic is LGPL, you are free to use the Mathomatic symbolic math library as you wish, only abiding by the terms of the LGPL, if any. Only if you use the Mathomatic name for your product do you need to get permission from me.

The symbolic math library is at least able to be run anywhere the main Mathomatic
application can be run, and does not require an operating system beyond the ability to allocate memory with malloc().
From the Mathomatic User's Manual:
Building from source requires a C compiler with the standard C libraries. If compiled with the GCC C compiler for a Unix-like operating system, no changes need to be made to the source code.

Mathomatic can easily be ported to any computer with at least 1 megabyte of free RAM. In the standard distribution, found on the Mathomatic home page, the maximum memory usage defaults to 200 megabytes (the version command tells this). Maximum memory usage is not reached unless all equation spaces are filled. The default maximum memory usage should be less than the amount of free RAM, and is adjusted by changing the DEFAULT_N_TOKENS define in the C include file am.h and recompiling.

The simple interface for using the symbolic math engine as a linkable library is in the directory "lib" in the Mathomatic source distribution. Please read the file "lib/README.txt" or write me for more information.

George Gesslein II

George Gesslein II suggests this article as an answer to your question:
FAQ #671: “How do I embed Mathomatic in my own program?”.

Can you help with this problem?

Provide an answer of your own, or ask Sunil Nandihalli for more information if necessary.

To post a message you must log in.