diff --git a/README.md b/README.md index 5c1c5ae..ec5369e 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Note that implicit multiplication has a higher priority than mulitiplication and | Logarithm (base e) | `ln` | | Logarithm (base 10) | `log` | | sin, arcsin, cosecant | `sin`, `asin`, `csc` | -| cos, arccos, secant | `cos`, `acos`, `sec` | +| cos, arccos, secant | `cos`, `acos`, `secant` | | tan, arctan, cotan | `tan`, `atan`, `cot` | | hyperbolic sin, etc | `sinh`, `asinh`, `csch` | | hyperbolic cos, etc | `cosh`, `acosh`, `sech` | diff --git a/src/tokens/operator.rs b/src/tokens/operator.rs index ce73f73..bee9cad 100644 --- a/src/tokens/operator.rs +++ b/src/tokens/operator.rs @@ -225,27 +225,27 @@ impl Operator { "!" => {Some( Operator::Factorial )}, "sqrt"|"rt"|"√" => {Some( Operator::Sqrt )}, - "abs" => {Some( Operator::Function(Function::Abs) )}, - "floor" => {Some( Operator::Function(Function::Floor) )}, + "abs" => {Some( Operator::Function(Function::Abs) )}, + "floor" => {Some( Operator::Function(Function::Floor) )}, "ceil" => {Some( Operator::Function(Function::Ceil) )}, - "round" => {Some( Operator::Function(Function::Round) )}, - "ln" => {Some( Operator::Function(Function::NaturalLog) )}, - "log" => {Some( Operator::Function(Function::TenLog) )}, - "sin" => {Some( Operator::Function(Function::Sin) )}, - "cos" => {Some( Operator::Function(Function::Cos) )}, - "tan" => {Some( Operator::Function(Function::Tan) )}, + "round" => {Some( Operator::Function(Function::Round) )}, + "ln" => {Some( Operator::Function(Function::NaturalLog) )}, + "log" => {Some( Operator::Function(Function::TenLog) )}, + "sin" => {Some( Operator::Function(Function::Sin) )}, + "cos" => {Some( Operator::Function(Function::Cos) )}, + "tan" => {Some( Operator::Function(Function::Tan) )}, "asin" => {Some( Operator::Function(Function::Asin) )}, "acos" => {Some( Operator::Function(Function::Acos) )}, "atan" => {Some( Operator::Function(Function::Atan) )}, - "csc" => {Some( Operator::Function(Function::Csc) )}, - "sec" => {Some( Operator::Function(Function::Sec) )}, - "cot" => {Some( Operator::Function(Function::Cot) )}, + "csc" => {Some( Operator::Function(Function::Csc) )}, + "secant" => {Some( Operator::Function(Function::Sec) )}, + "cot" => {Some( Operator::Function(Function::Cot) )}, "sinh" => {Some( Operator::Function(Function::Sinh) )}, "cosh" => {Some( Operator::Function(Function::Cosh) )}, "tanh" => {Some( Operator::Function(Function::Tanh) )}, - "asinh" => {Some( Operator::Function(Function::Asinh) )}, - "acosh" => {Some( Operator::Function(Function::Acosh) )}, - "atanh" => {Some( Operator::Function(Function::Atanh) )}, + "asinh" => {Some( Operator::Function(Function::Asinh) )}, + "acosh" => {Some( Operator::Function(Function::Acosh) )}, + "atanh" => {Some( Operator::Function(Function::Atanh) )}, "csch" => {Some( Operator::Function(Function::Csch) )}, "sech" => {Some( Operator::Function(Function::Sech) )}, "coth" => {Some( Operator::Function(Function::Coth) )},