use symplex::prelude::*;
#[test]
fn inverse_reciprocal_functions_parse() {
let ctx = Context::new();
let x = ctx.symbol("x");
let inv = &ctx.int(1) / &x;
for (name, want) in [
("asec", inv.acos()),
("arcsec", inv.acos()),
("acsc", inv.asin()),
("acoth", inv.atanh()),
("asech", inv.acosh()),
("acsch", inv.asinh()),
] {
assert_eq!(ctx.parse(&format!("{name}(x)")).unwrap(), want, "{name}");
}
let v = ctx.parse("asec(3)").unwrap().eval_f64().unwrap();
assert!((v - 1.230_959_417_340_774_7).abs() < 1e-15, "{v}");
}