How can I find out the format of a parameter passed to a function?



On Sat, 2011-07-30 at 22:06 +0200, Dieter Kaiser wrote:
> Am Samstag, den 30.07.2011, 20:39 +0100 schrieb Bernard Hurley:
> > Hi,
> > 
> > I am writing a maxima function that needs to know whether a parameter
> > has the form "a[b]". How can I do this?
> 
> Try the test function subvarp:
> 
> (%i9) subvarp(a[b]);
> (%o9) true

Thanks that is just what I needed!

Bernard