@@ -38,23 +38,23 @@ derivative(::typeof(sign), args::NTuple{1,Any}, ::Val{1}) = 0
38
38
39
39
@register_symbolic Base. signbit (x):: Bool
40
40
derivative (:: typeof (signbit), args:: NTuple{1,Any} , :: Val{1} ) = 0
41
- derivative (:: typeof (abs), args:: NTuple{1,Any} , :: Val{1} ) = IfElse . ifelse (signbit (args[1 ]),- one (args[1 ]),one (args[1 ]))
41
+ derivative (:: typeof (abs), args:: NTuple{1,Any} , :: Val{1} ) = ifelse (signbit (args[1 ]),- one (args[1 ]),one (args[1 ]))
42
42
43
43
function derivative (:: typeof (min), args:: NTuple{2,Any} , :: Val{1} )
44
44
x, y = args
45
- IfElse . ifelse (x < y, one (x), zero (x))
45
+ ifelse (x < y, one (x), zero (x))
46
46
end
47
47
function derivative (:: typeof (min), args:: NTuple{2,Any} , :: Val{2} )
48
48
x, y = args
49
- IfElse . ifelse (x < y, zero (y), one (y))
49
+ ifelse (x < y, zero (y), one (y))
50
50
end
51
51
function derivative (:: typeof (max), args:: NTuple{2,Any} , :: Val{1} )
52
52
x, y = args
53
- IfElse . ifelse (x > y, one (x), zero (x))
53
+ ifelse (x > y, one (x), zero (x))
54
54
end
55
55
function derivative (:: typeof (max), args:: NTuple{2,Any} , :: Val{2} )
56
56
x, y = args
57
- IfElse . ifelse (x > y, zero (y), one (y))
57
+ ifelse (x > y, zero (y), one (y))
58
58
end
59
59
60
60
@register_symbolic Base. ceil (x)
0 commit comments