Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/operators/codac2_abs.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace codac2
{
return {
fwd(x1.a),
x1.def_domain && x1.a != 0. // def domain of the derivative of abs
x1.def_domain && !x1.a.contains(0.) // def domain of the derivative of abs
};
}

Expand All @@ -72,7 +72,7 @@ namespace codac2
fwd(x1.m),
fwd(x1.a),
d,
x1.def_domain && x1.a != 0. // def domain of the derivative of abs
x1.def_domain && !x1.a.contains(0.) // def domain of the derivative of abs
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/operators/codac2_acos.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace codac2
return {
fwd(x1.a),
x1.a.is_subset({-1,1}) // def domain of acos
&& x1.a != 1. // def domain of the derivative of acos
&& !x1.a.contains(1.) // def domain of the derivative of acos
&& x1.def_domain
};
}
Expand All @@ -75,7 +75,7 @@ namespace codac2
fwd(x1.a),
d,
x1.a.is_subset({-1,1}) // def domain of acos
&& x1.a != 1. // def domain of the derivative of acos
&& !x1.a.contains(1.) // def domain of the derivative of acos
&& x1.def_domain
};
}
Expand Down
12 changes: 6 additions & 6 deletions src/core/operators/codac2_arith_div.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace codac2
{
return {
fwd(x1.a, x2.a),
x1.def_domain && x2.def_domain && x2.a != 0. // def domain of the derivative of div
x1.def_domain && x2.def_domain && !x2.a.contains(0.) // def domain of the derivative of div
};
}

Expand All @@ -101,7 +101,7 @@ namespace codac2
fwd(x1.m, x2.m),
fwd(x1.a, x2.a),
d,
x1.def_domain && x2.def_domain && x2.a != 0. // def domain of the derivative of div
x1.def_domain && x2.def_domain && !x2.a.contains(0.) // def domain of the derivative of div
};
}

Expand All @@ -128,7 +128,7 @@ namespace codac2
{
return {
fwd(x1.a, x2.a),
x1.def_domain && x2.def_domain && x2.a != 0. // def domain of the derivative of div
x1.def_domain && x2.def_domain && !x2.a.contains(0.) // def domain of the derivative of div
};
}

Expand All @@ -149,7 +149,7 @@ namespace codac2
fwd(x1.m, x2.m),
fwd(x1.a, x2.a),
d,
x1.def_domain && x2.def_domain && x2.a != 0. // def domain of the derivative of div
x1.def_domain && x2.def_domain && !x2.a.contains(0.) // def domain of the derivative of div
};
}

Expand All @@ -169,7 +169,7 @@ namespace codac2
{
return {
fwd(x1.a, x2.a),
x1.def_domain && x2.def_domain && x2.a != 0. // def domain of the derivative of div
x1.def_domain && x2.def_domain && !x2.a.contains(0.) // def domain of the derivative of div
};
}

Expand All @@ -191,7 +191,7 @@ namespace codac2
fwd(x1.m, x2.m),
fwd(x1.a, x2.a),
d,
x1.def_domain && x2.def_domain && x2.a != 0. // def domain of the derivative of div
x1.def_domain && x2.def_domain && !x2.a.contains(0.) // def domain of the derivative of div
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/operators/codac2_asin.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace codac2
return {
fwd(x1.a),
x1.a.is_subset({-1,1}) // def domain of asin
&& x1.a != 1. // def domain of the derivative of asin
&& !x1.a.contains(1.) // def domain of the derivative of asin
&& x1.def_domain
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/operators/codac2_atan2.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace codac2
return {
fwd(x1.a, x2.a),
x1.def_domain && x2.def_domain
&& !(x1.a == 0. && x2.a == 0.) // def domain of the derivative of atan2
&& !(x1.a.contains(0.) && x2.a.contains(0.)) // def domain of the derivative of atan2
};
}

Expand All @@ -79,7 +79,7 @@ namespace codac2
fwd(x1.a, x2.a),
d,
x1.def_domain && x2.def_domain
&& !(x1.a == 0. && x2.a == 0.) // def domain of the derivative of atan2
&& !(x1.a.contains(0.) && x2.a.contains(0.)) // def domain of the derivative of atan2
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/operators/codac2_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace codac2
return {
fwd(x1.a),
x1.a.is_subset({0,oo}) // def domain of log
&& x1.a != 0. // def domain of the derivative of log
&& !x1.a.contains(0.) // def domain of the derivative of log
&& x1.def_domain
};
}
Expand All @@ -78,7 +78,7 @@ namespace codac2
fwd(x1.a),
d,
x1.a.is_subset({0,oo}) // def domain of log
&& x1.a != 0. // def domain of the derivative of log
&& !x1.a.contains(0.) // def domain of the derivative of log
&& x1.def_domain
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/operators/codac2_max.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace codac2
fwd(x1.a, x2.a),
d,
x1.def_domain && x2.def_domain
&& (x1.a != x2.a) // def domain of the derivative of max
&& !x1.a.intersects(x2.a) // def domain of the derivative of max
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/operators/codac2_sign.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace codac2
{
return {
fwd(x1.a),
x1.def_domain && x1.a != 0. // def domain of the derivative of sign
x1.def_domain && !x1.a.contains(0.) // def domain of the derivative of sign
};
}

Expand All @@ -68,7 +68,7 @@ namespace codac2
fwd(x1.m),
fwd(x1.a),
IntervalMatrix::zero(1,x1.da.size()),
x1.def_domain && x1.a != 0. // def domain of the derivative of sign
x1.def_domain && !x1.a.contains(0.) // def domain of the derivative of sign
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/operators/codac2_sqrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace codac2
return {
fwd(x1.a),
x1.a.is_subset({0,oo}) // def domain of sqrt
&& x1.a != 0. // def domain of the derivative of sqrt
&& !x1.a.contains(0.) // def domain of the derivative of sqrt
&& x1.def_domain
};
}
Expand All @@ -75,7 +75,7 @@ namespace codac2
fwd(x1.a),
d,
x1.a.is_subset({0,oo}) // def domain of sqrt
&& x1.a != 0. // def domain of the derivative of sqrt
&& !x1.a.contains(0.) // def domain of the derivative of sqrt
&& x1.def_domain
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/operators/codac2_tan.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace codac2
{
return {
fwd(x1.a),
x1.def_domain && cos(x1.a) != 0. // def domain of the derivative of tan
x1.def_domain && !cos(x1.a).contains(0.) // def domain of the derivative of tan
};
}

Expand All @@ -72,7 +72,7 @@ namespace codac2
fwd(x1.m),
fwd(x1.a),
d,
x1.def_domain && cos(x1.a) != 0. // def domain of the derivative of tan
x1.def_domain && !cos(x1.a).contains(0.) // def domain of the derivative of tan
};
}

Expand Down
Loading