I tried to do this conditional function
import sympy as sp
y1=sp.Symbol('y1')
Xal=4*y1/T
raizl=sp.sqrt(1+Xal**2)
if 0<Xal<=1:
Pl=T+8/3*(y1**2/T)
else:
Pl=T/2*(raizl+(1/Xal)*sp.log(Xal+raizl))`
Using sympy but I have an error that is:
"cannot determine truth value of Relational"
but idk the reason why
Pl=sp.Piecewise((T+8/3*(y1**2/T), 0<Xal<=1), (T/2*(raizl+(1/Xal)*sp.log(Xal+raizl)), True))
I'll try to correct the error "cannot determine truth value of Relational"