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



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

Dieter Kaiser