Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mathematica: Function Documentation [closed]

Has anyone come across a tutorial to create documentation for functions you create in Mathematica? I'm trying to organize some functions that I have written but so far I'm doing a terrible job. I would really like to have a file explicitly for the functions and one for the documentation and somehow add a path to the Mathematica documentation so that Mathematica can also search for it.

Take the documentation for the Sin function for instance:

doc

When you click on the arrows it opens a notebook with information on the Sin function. I tried copying the contents of that notebook and pasting in a fresh notebook so that I can edit it but I can't modify the contents.

I really like Mathematica's format for the documentation and I would like to document my functions in the same way for future reference. Does any one know how to document functions the same way Mathematica does?

like image 462
jmlopez Avatar asked Jun 29 '11 04:06

jmlopez


People also ask

How do I delete Mathematica history?

In Mathematica, you can use ClearAll to recover memory associated with calculations you no longer need. For this to work, you must also remove your output history with Unprotect and Clear[Out] .

What is the use of clear command in Mathematica?

Clear removes values and definitions from a symbol while ClearAll removes attributes, messages and any default options as well as values and definitions from a symbol.


3 Answers

You can use Mathematica's workbench to create documentation.

The videos here are also good in order to start using Wolfram Workbench.

like image 193
Sjoerd C. de Vries Avatar answered Jan 05 '23 02:01

Sjoerd C. de Vries


Perhaps this or this will be useful.

like image 31
acl Avatar answered Jan 05 '23 01:01

acl


I think you're looking for ::usage. Have a look at tutorial/DocumentationConstructs in the Documentation Center.

like image 24
Ron Avatar answered Jan 05 '23 01:01

Ron