Creando tus propias funciones

import numpy as np
def f(x):
    return x**3 - np.log(x)

print(f(3))
print(f(5.1))
Competitive Programmer