I use a map() command to get the values of function for each element of vector. Here is an example of a simple task:
I would like to do the same with piecewise function but it doesn't work. Here is an example:
h:=x->piecewise( 0<=x and x<= 5, f, 5<x and x <= 10, g ) ;
Is it possible to work with piecewise function? Maybe someone has an idea how to do it in different way?