user-defined function templates in Mathematica 7.0

user-defined function templates in Mathematica 7.0

Post by magm » Wed, 14 Jan 2009 09:56:53


Mathematica 7.0 allows user-defined function templates to be easily created!


.....To define a function template for a user-defined function, make
the template the first statement in the usage message for the
function. For example, to define the template f[a,b] for the function
f, you could use the following command: f::usage="f[a,b] is an example
of a function".

It works very well.
Happy templating!
 
 
 

user-defined function templates in Mathematica 7.0

Post by Jean-Marc » Thu, 15 Jan 2009 19:36:04

In article <gkgosl$3ri$ XXXX@XXXXX.COM >, magma < XXXX@XXXXX.COM >



Well, this "new" feature seems to have been introduced ages ago! At
least since Mathematica 3 as far as I can remember correctly. Ever tried
Shift+Ctrl+K (Shift+Cmd+K on Mac) to complete a command? The template
that is displayed comes from this feature. Templates are also accessible
from the Edit menu.

Best regards,
--Jean-Marc

 
 
 

user-defined function templates in Mathematica 7.0

Post by John Jowet » Thu, 15 Jan 2009 19:37:08

This actually worked long before Version 7.
JMJ


ed!