From 7008d7ec552f55388a9009acb143c7e9511b5a30 Mon Sep 17 00:00:00 2001 From: Masashi Mizuno <29035331+unageek@users.noreply.github.com> Date: Thu, 15 Apr 2021 01:59:04 +0900 Subject: [PATCH] ceil was missing for rationals --- src/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ast.rs b/src/ast.rs index 03694271..8f559ceb 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -171,7 +171,7 @@ impl Expr { Unary(Asinh, x) => x.eval1(|x| x.asinh()), Unary(Atan, x) => x.eval1(|x| x.atan()), Unary(Atanh, x) => x.eval1(|x| x.atanh()), - Unary(Ceil, x) => x.eval1(|x| x.ceil(None)), + Unary(Ceil, x) => x.eval1r(|x| x.ceil(None), |x| Some(x.ceil())), Unary(Chi, x) => x.eval1(|x| x.chi()), Unary(Ci, x) => x.eval1(|x| x.ci()), Unary(Cos, x) => x.eval1(|x| x.cos()),