All Downloads are FREE. Search and download functionalities are using the official Maven repository.

calasql-operations_3.0.1.9.source-code.HyperbolicMathOps.scala Maven / Gradle / Ivy

package scalasql.operations
import scalasql.core.Expr
import scalasql.core.SqlStr.SqlStringSyntax

trait HyperbolicMathOps {

  /** Calculate the hyperbolic sine */
  def sinh[T: Numeric](v: Expr[T]): Expr[T] = Expr { implicit ctx => sql"SINH($v)" }

  /** Calculate the hyperbolic cosine */
  def cosh[T: Numeric](v: Expr[T]): Expr[T] = Expr { implicit ctx => sql"COSH($v)" }

  /** Calculate the hyperbolic tangent */
  def tanh[T: Numeric](v: Expr[T]): Expr[T] = Expr { implicit ctx => sql"TANH($v)" }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy