Plotting functions and sub-functions



On Tue, Aug 12, 2008 at 9:08 AM, Pol <linux_milano at yahoo.it> wrote:

> 1. Define my function:
>     g(x,t):= 1/[(x-t)^2+1];

No, don't use square brackets here; just put in more parentheses.

g(x, t) := 1/((x - t)^2 + 1);

An expression like [foo] is a 1-element list.
Note also that {foo} is a 1-element set.

HTH

Robert Dodier