20 static Interval fwd(
const Interval& x1);
21 static ScalarType fwd_natural(
const ScalarType& x1);
22 static ScalarType fwd_centered(
const ScalarType& x1);
23 static void bwd(
const Interval& y, Interval& x1);
30 tan(
const ScalarExpr& x1)
32 return { std::make_shared<AnalyticOperationExpr<TanOp,ScalarType,ScalarType>>(x1) };
42 inline ScalarType TanOp::fwd_natural(
const ScalarType& x1)
46 x1.def_domain &&
cos(x1.a) != 0.
50 inline ScalarType TanOp::fwd_centered(
const ScalarType& x1)
52 if(centered_form_not_available_for_args(x1))
53 return fwd_natural(x1);
55 IntervalMatrix d(1,x1.da.size());
56 for(Index i = 0 ; i < d.size() ; i++)
57 d(0,i) = x1.da(0,i)/
sqr(
cos(x1.a));
63 x1.def_domain &&
cos(x1.a) != 0.
69 x1 = gaol::atan_rel(y, x1);
Interval class, for representing closed and connected subsets of .
Definition codac2_Interval.h:62
Interval cos(const Interval &x)
Returns .
Definition codac2_Interval_operations_impl.h:98
Interval sqr(const Interval &x)
Returns .
Definition codac2_Interval_operations_impl.h:21
Interval tan(const Interval &x)
Returns .
Definition codac2_Interval_operations_impl.h:112