i want a module or function or switch or If (whatever works), what asks if a function is an e function or a polynomial(a hole number one or fractorial), a exponential function, a logarithm function and so on. How can i do this? And where can i find all the build-in-questions for this? I only found PolynomialQ so far. But i am not able to put it in a Switch. Maybe It's better with If? Thanks. The Iam Switch is just here to look good. I wanted to create functionQ like this. The Iam Switch is from the book "Programming with Mathematica" by Paul Wellin.
fuu[x_] := 2 x - 5 x^3 PolynomialQ[fuu[x], x] True Iam[expr_] := Switch[expr, _Integer, "I am an integer", _Rational, "I am rational", _Real, "I am real", _Complex, "I am complex", _, "I am not a number"] functionQ[f_] := Switch[f, _PolynomialQ[f, x], "I am polynomial", _, "mystical"] Head[fuu[x]] Plus Iam[fuu[x]] I am not a number functionQ[fuu[x]] mystical