Skip to content

Commit

Permalink
Fix typo (#4146)
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Jul 25, 2022
1 parent adeca47 commit b326afd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions polars/polars-lazy/src/dsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ impl Expr {
}
}

/// Compute the arcsine of the given expression
/// Compute the inverse sine of the given expression
#[cfg(feature = "trigonometry")]
pub fn arcsin(self) -> Self {
Expr::Function {
Expand All @@ -1261,7 +1261,7 @@ impl Expr {
}
}

/// Compute the arccosine of the given expression
/// Compute the inverse cosine of the given expression
#[cfg(feature = "trigonometry")]
pub fn arccos(self) -> Self {
Expr::Function {
Expand All @@ -1276,7 +1276,7 @@ impl Expr {
}
}

/// Compute the arctangent of the given expression
/// Compute the inverse tangent of the given expression
#[cfg(feature = "trigonometry")]
pub fn arctan(self) -> Self {
Expr::Function {
Expand Down Expand Up @@ -1336,7 +1336,7 @@ impl Expr {
}
}

/// Compute the hyperbolic sine of the given expression
/// Compute the inverse hyperbolic sine of the given expression
#[cfg(feature = "trigonometry")]
pub fn arcsinh(self) -> Self {
Expr::Function {
Expand All @@ -1351,7 +1351,7 @@ impl Expr {
}
}

/// Compute the hyperbolic cosine of the given expression
/// Compute the inverse hyperbolic cosine of the given expression
#[cfg(feature = "trigonometry")]
pub fn arccosh(self) -> Self {
Expr::Function {
Expand All @@ -1366,7 +1366,7 @@ impl Expr {
}
}

/// Compute the hyperbolic tangent of the given expression
/// Compute the inverse hyperbolic tangent of the given expression
#[cfg(feature = "trigonometry")]
pub fn arctanh(self) -> Self {
Expr::Function {
Expand Down
4 changes: 2 additions & 2 deletions py-polars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ parquet = ["polars/parquet"]
ipc = ["polars/ipc"]
is_in = ["polars/is_in"]
json = ["polars/serde", "serde_json"]
trigonemetry = ["polars/trigonometry"]
trigonometry = ["polars/trigonometry"]
asof_join = ["polars/asof_join"]
cross_join = ["polars/cross_join"]
pct_change = ["polars/pct_change"]
Expand All @@ -56,7 +56,7 @@ all = [
"is_in",
"json",
"repeat_by",
"trigonemetry",
"trigonometry",
"asof_join",
"cross_join",
"pct_change",
Expand Down
24 changes: 12 additions & 12 deletions py-polars/src/lazy/dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,62 +366,62 @@ impl PyExpr {
self.clone().inner.abs().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn sin(&self) -> PyExpr {
self.clone().inner.sin().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn cos(&self) -> PyExpr {
self.clone().inner.cos().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn tan(&self) -> PyExpr {
self.clone().inner.tan().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn arcsin(&self) -> PyExpr {
self.clone().inner.arcsin().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn arccos(&self) -> PyExpr {
self.clone().inner.arccos().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn arctan(&self) -> PyExpr {
self.clone().inner.arctan().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn sinh(&self) -> PyExpr {
self.clone().inner.sinh().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn cosh(&self) -> PyExpr {
self.clone().inner.cosh().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn tanh(&self) -> PyExpr {
self.clone().inner.tanh().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn arcsinh(&self) -> PyExpr {
self.clone().inner.arcsinh().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn arccosh(&self) -> PyExpr {
self.clone().inner.arccosh().into()
}

#[cfg(feature = "trigonemetry")]
#[cfg(feature = "trigonometry")]
pub fn arctanh(&self) -> PyExpr {
self.clone().inner.arctanh().into()
}
Expand Down

0 comments on commit b326afd

Please sign in to comment.