feat: support "arcsin" way of writing inverse trig
This commit is contained in:
parent
c483a4dce8
commit
b7ce85c3f4
1 changed files with 3 additions and 3 deletions
|
|
@ -43,11 +43,11 @@ impl FromStr for Function {
|
||||||
"ln" => Ok(Self::Ln),
|
"ln" => Ok(Self::Ln),
|
||||||
|
|
||||||
"sin" => Ok(Self::Sine),
|
"sin" => Ok(Self::Sine),
|
||||||
"asin" => Ok(Self::ArcSine),
|
"asin" | "arcsin" => Ok(Self::ArcSine),
|
||||||
"cos" => Ok(Self::Cosine),
|
"cos" => Ok(Self::Cosine),
|
||||||
"acos" => Ok(Self::ArcCosine),
|
"acos" | "arccos" => Ok(Self::ArcCosine),
|
||||||
"tan" => Ok(Self::Tangent),
|
"tan" => Ok(Self::Tangent),
|
||||||
"atan" => Ok(Self::ArcTangent),
|
"atan" | "arctan" => Ok(Self::ArcTangent),
|
||||||
"sec" => Ok(Self::Secant),
|
"sec" => Ok(Self::Secant),
|
||||||
"csc" => Ok(Self::CoSecant),
|
"csc" => Ok(Self::CoSecant),
|
||||||
_ => Err(s.to_owned()),
|
_ => Err(s.to_owned()),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue