In Maple, how can I see a function's source code?
To view a function's source code from the Maple prompt, enter:> interface(verboseproc=2); > readlib(function);
For example, to view the uncommented source code for the
plot function, you would enter:
This method lets you view the code for most functions. To view the code for a routine in a package, enter something like:> readlib(linalg:-charpoly);
Note: Most of Maple's source code is viewable, but a small portion is built into the Maple kernel, and is not visible to users.
If you have questions about using statistical and mathematical software at Indiana University, email UITS Research Analytics (formerly known as the Stat/Math Center). Research Analytics is located on the IU Bloomington campus at 410 N. Park Avenue and is open for consultation by appointment Monday-Friday 9am-5pm. For more, visit Research Analytics on the web, or call 812-855-4724 (IUB) or 317-278-4740 (IUPUI).
Last modified on November 13, 2012.