From 638966ec47b7025b8682b2376a4a231e356190d6 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Sun, 3 Oct 2021 14:44:40 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20undefined=20function:=20'=E2=88=8F'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this fix `prod(1,10,n)` works fine, but `∏(1,10,n)` returns `Undefined function: '∏'.` --- kalk/src/lexer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kalk/src/lexer.rs b/kalk/src/lexer.rs index 2baa48f..fa0f90c 100644 --- a/kalk/src/lexer.rs +++ b/kalk/src/lexer.rs @@ -236,6 +236,7 @@ impl<'a> Lexer<'a> { let value = match value.as_ref() { "Σ" | "∑" => String::from("sum"), + "∏" => String::from("prod"), "∫" => String::from("integrate"), "°" => String::from("deg"), _ => value,