I wrote a function that computes the value of the derivative when passing arguments, but when passing a function with abs() the results are symbols instead of floats. However, the result I need to round to 2 decimal places and I can't figure out how to fix it
from sympy import *
import numpy as np
global x, y, z, t
x, y, z, t = symbols("x, y, z, t")
def req1(f, g, a):
dfg = diff(f + g, x)
res = round(dfg.subs(x, a), 2)
return res