All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
sinh.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_FWD_SCAL_FUN_SINH_HPP
#define STAN_MATH_FWD_SCAL_FUN_SINH_HPP
#include <stan/math/fwd/core.hpp>
namespace stan {
namespace math {
template <typename T>
inline
fvar<T>
sinh(const fvar<T>& x) {
using std::sinh;
using std::cosh;
return fvar<T>(sinh(x.val_),
x.d_ * cosh(x.val_));
}
}
}
#endif
core.hpp
stan::math::fvar::d_
T d_
Definition: fvar.hpp:15
stan::math::cosh
fvar< T > cosh(const fvar< T > &x)
Definition: cosh.hpp:13
stan::math::fvar::val_
T val_
Definition: fvar.hpp:14
stan::math::sinh
fvar< T > sinh(const fvar< T > &x)
Definition: sinh.hpp:14
stan::math::sinh
var sinh(const var &a)
Return the hyperbolic sine of the specified variable (cmath).
Definition: sinh.hpp:49
stan::math::fvar
Definition: fvar.hpp:13

[ Stan Home Page ] © 2011–2015, Stan Development Team.