answered 13 years ago
For the second point, it seems
fun(x)=a*x+b
is enough.
Are there other ways to define a symbolic function?