diff --git a/crates/nu-command/src/math/cos.rs b/crates/nu-command/src/math/cos.rs index 80606c76a..95a97ea8c 100644 --- a/crates/nu-command/src/math/cos.rs +++ b/crates/nu-command/src/math/cos.rs @@ -48,7 +48,7 @@ impl Command for SubCommand { fn examples(&self) -> Vec { vec![ Example { - description: "Apply the cosine to pi", + description: "Apply the cosine to π", example: "math pi | math cos", result: Some(Value::test_float(-1f64)), }, diff --git a/crates/nu-command/src/math/tan.rs b/crates/nu-command/src/math/tan.rs index c03956a62..b756ce574 100644 --- a/crates/nu-command/src/math/tan.rs +++ b/crates/nu-command/src/math/tan.rs @@ -48,7 +48,7 @@ impl Command for SubCommand { fn examples(&self) -> Vec { vec![ Example { - description: "Apply the tangent to pi/4", + description: "Apply the tangent to π/4", example: "(math pi) / 4 | math tan", result: Some(Value::test_float(1f64)), }, diff --git a/crates/nu-command/src/math/tanh.rs b/crates/nu-command/src/math/tanh.rs index 679e1d1fd..89d4352a7 100644 --- a/crates/nu-command/src/math/tanh.rs +++ b/crates/nu-command/src/math/tanh.rs @@ -45,7 +45,7 @@ impl Command for SubCommand { fn examples(&self) -> Vec { vec![Example { - description: "Apply the hyperbolic tangent to 10*pi", + description: "Apply the hyperbolic tangent to 10*π", example: "(math pi) * 10 | math tanh", result: Some(Value::test_float(1f64)), }] diff --git a/crates/nu-command/src/math/tau.rs b/crates/nu-command/src/math/tau.rs index efbd93071..d18e8458e 100644 --- a/crates/nu-command/src/math/tau.rs +++ b/crates/nu-command/src/math/tau.rs @@ -29,9 +29,9 @@ impl Command for SubCommand { #[allow(clippy::approx_constant)] fn examples(&self) -> Vec { vec![Example { - example: "(math tau) / 2", - description: "Compare π and τ", - result: Some(Value::test_float(std::f64::consts::PI)), + example: "math tau | math round --precision 2", + description: "Get the first two decimal digits of τ", + result: Some(Value::test_float(6.28)), }] }