From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.devel Subject: as for Calc and the math library Date: Sun, 11 Aug 2024 18:55:11 +0200 Message-ID: References: <87bk20yoya.fsf@dataswamp.org> <86zfpjirkg.fsf@gnu.org> <877ccnj9dp.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28014"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Emanuel Berg , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 11 18:56:03 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sdBrP-00074s-3n for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Aug 2024 18:56:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdBqm-0000KI-8y; Sun, 11 Aug 2024 12:55:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdBqh-0008QI-Iv for emacs-devel@gnu.org; Sun, 11 Aug 2024 12:55:19 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdBqf-0001qF-2f; Sun, 11 Aug 2024 12:55:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1723395311; x=1724000111; i=dimech@gmx.com; bh=KJK0rLhESxziwhNa7hnHn1XfdWShHdf8EpI4uzb7jsY=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject: Content-Type:Date:In-Reply-To:References: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=mGLD5IQ9ENaZgRv00P3BLoDoF/W3vSgYMPcnkgcHt2flGKo2RvIo1Nyp/cotLTgd CS9pHkpNH/2fnx5w2aQniR4OQG3iZdJIm1naL+fijyFARFWvn+IsOA3GryA5P9quM aU5OSyO4cy0/UIMdpYk/N61AWhpTisJRC5+RdvzzaJdG9EE0P5DZvwZWq98NxqntD BpyZzhKMqRpo+tvxAUz08i3kkJ25YQp/bfMhta8rMlqJresCh8clJ4/R3AOTxyPAA cDUjMUePHpNZ4tiKa7+J7rAkjzGDH399BMobtO439Uu75xRaiRU2Buhxox08XY3ih dKvbZjYa1nkaauVWtg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [92.251.79.197] ([92.251.79.197]) by web-mail.gmx.net (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Sun, 11 Aug 2024 18:55:11 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <877ccnj9dp.fsf@localhost> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:j2PUp9i/aM9iB8fwOgKi6g97MqS01/R4tBQk5ytgsYWbDjdqKR52xGzMkGqyXKitg0F+g 5VYxqlUx1kTXAyZwHY5RHSjFNMQqvxHDpAmqAOn/vl7HbftZugtWrf4lqL2oPGzhd11D+JL7ieR/ kZrAK+17ayB7RQ2oucv1y//R4cokEKoKYZKUekqpIHsk2yMyIVHDm+yia7/3/I0LS8XeHl0cght4 db7e0ctUn9q71/QWsre4X/CXUm6L4Vo9H2dn9ACXM7y7EBCNsjQoqMV6/7nUTcbBqOwCO3qMOs+a 2A= UI-OutboundReport: notjunk:1;M01:P0:86WYaGRYTqc=;2HbFmWO5RjuVA5GL9yDXe5KToJM 51rXYE+QtUuxMwHbjZxL2gucdFR1GeY/h7e9VwhznxUGt2nIU016lx8CHDxk3IibaubLXTlpo 6KvdK0bQ/dHUPRuW6Pj1gYtd+DjtETwvqngdkaucLMcaoDo70Jc9sByTpw+wGc+t4FeUq2arV cFzPmA55ZbxUS9m/g1rIEwjowXqPJ1HAAkEKvlRKz8Cyt9Lf6gEMyKUjz6DOFoiZu40shpzaO PfwZbvI01nt11rCTbd0ioQL+RSzKmu9LHeoLiiEJvYZjRgkeqH21GOm0W8enIY0V3cY6/pLLg pOdTQc7pWA7Ne9Im4/jkFt6AMHSO6F6sBdi43GIYcS5wUNg5rbM6BO3eD3UOYZ9KQ1t55EALk zkqVzuXH/YtYf4UVsMveIjsFvo/opnCu56rEGiU9g00jiFfLFn6DsAyA5BXq7qpK/0QiFKY+U QEzFH8v/OJcWn0PkmA18GzQ5+O9NqN/07djtkXDE0o/J2Eld/Ue+oIsrNStK8NXC/O6t5WDk9 fBPbAO5CIsJRwUi3eezvBQHKK6xavuYqTRWAMavquYYN51OD1fefBeG8YkHvHMP4XEPgVvGJ6 PujhM9UoRbFafWYelQY0sh9RY0nQeMJaLf+XcW6M8gel0HRuC1ixBjUMm02V1qXYUm2vLbI98 IhXKFkDDQxqD2Fnrvk+XcmBXBZULD6Tyzuae8uojGg== Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322640 Archived-At: > Sent: Monday, August 12, 2024 at 4:45 AM > From: "Ihor Radchenko" > To: "Eli Zaretskii" > Cc: "Emanuel Berg" , emacs-devel@gnu.org > Subject: Re: as for Calc and the math library > > Eli Zaretskii writes: > > > If Emacs is to have a math library, the library must use high-quality > > mathematical and numerical algorithms that are well-known and > > described in many textbooks on this subject matter... > > I agree with this point, but I suspect that writing such a library from > scratch might be a bit difficult. > > May I suggest an alternative: abstract out GNU Calc math routines to be > available from Elisp without having to read Calc sources. > Such a task would require: > 1. Documenting some Calc data structures > 2. Possibly refactoring some Calc functions to use simpler API. > > It would be a much easier task and can improve the existing > functionality. - Ihor Radchenko That would be my recommendation. Calc already offer robust mathematical routines. Doing a mathematical library is not difficult but required focu= s and the ability to deal with complicated implementation, not just applying direct solutions.