All the above tests can be combined into one with an extra for-loop:

    for func in [cheb2ap, ellipap, ...]:
        ...