var('x')
f=x**4;show(f)
for x in range(1,2*pi):
    if f(x)==f(-x):
        print "even function"
        break
    elif f(x)==-f(-x):
        print "odd function"
        break
    else:
        print "neither odd nor even"
        break

* Solution by:

Kreyszig-10.4-4-U (last edited 2010-12-18 07:17:39 by Jrachit)