|
From: Andrea R. <ari...@pi...> - 2005-09-22 15:45:29
|
Hi all,
this is probably an already discussed problem, but I've not been able
to find a solution even after googling a lot.
I've a piecewise defined function:
/
| f1(x) if x <= a
f(x) = |
| f2(x) if x > a
\
where f1 and f2 are not defined outside the above range. How can I
define such a function in Python in order to apply (map) it to an
array ranging from values smaller to values bigger than a?
Thanks,
Andrea.
|