import tensorflow as tf

                                   + 0.00392377*t**(-8))

        a = 7.5
        return __phi_f(tf.minimum(x, a)) - __phi_f(a) + __phi_g(tf.maximum(x, a))

    N = tf.cast(tf.shape(X)[0], tf.float32)
