From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Adding a generic mathematical library Date: Sun, 21 Jul 2024 17:49:04 +0300 Message-ID: <86v80yby1r.fsf@gnu.org> References: <878qy1at52.fsf@dataswamp.org> <87ikwz5nll.fsf@dataswamp.org> <875xsz5g07.fsf@dataswamp.org> <87v80z3wkq.fsf@dataswamp.org> <87ed7n3sav.fsf@dataswamp.org> <878qxv3pz4.fsf@dataswamp.org> <871q3n3p75.fsf@dataswamp.org> <87sew23mwi.fsf@dataswamp.org> <86y15ubyrt.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: incal@dataswamp.org, emacs-devel@gnu.org To: Christopher Dimech Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 21 16:49:29 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 1sVXsO-00092u-BM for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Jul 2024 16:49:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVXs4-00009a-Rj; Sun, 21 Jul 2024 10:49:08 -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 1sVXs3-00009Q-Bf for emacs-devel@gnu.org; Sun, 21 Jul 2024 10:49:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVXs2-0000BK-0c; Sun, 21 Jul 2024 10:49:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/V3+BoVAvZCrFG3P71EloU9xgODbW4jP/O1ZU3K3olU=; b=BX8fj/UHvmc7 HbbKLQmP8m/MGQKzkztnUv4DK4KZLAnXEsYKzOEhsqSRhBw+0xzOvMbPuiwG3gArBXAZS1fP7ij5H 7h/Ii1WROPjhiLFvdgXAf9oD01pzqS07NTXD8dyUcc0LS3ja9S27jGBMDDg7NJG4Jk8XirCckp2jR VbX3I/BtlcFvy/do8ePWE16NufkBvZFLrTKKSUt06muhv2xVHrOstXR/Mf7+GLIcqI/pMVxX6XUvQ wx1NId/ZptWySC7dwV9i8I8qPYsoZ42UswQOKKytw5wk5xlQdNnUMnov5JuzUzuzccB1Eu2wpQd8t edIzzqFwfxH55409ny0hyg==; In-Reply-To: (message from Christopher Dimech on Sun, 21 Jul 2024 16:41:38 +0200) 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:321890 Archived-At: > From: Christopher Dimech > Cc: Emanuel Berg , emacs-devel@gnu.org > Date: Sun, 21 Jul 2024 16:41:38 +0200 > Sensitivity: Normal > > > > If just Eli and Richard could spend a couple of hours > > > explaining what improvements are called for? > > > > I don't know what math-sin-cos-raw is about, but as for math-hypot, > > there's no need to implement anything, since this function is standard > > in any C libm, and we can easily expose it to Lisp if we need to. > > Eli. perhaps there can be a math library that calc can use. We will > then have a generic math library, and calc and other packages could use > some of its functionality. Would that work for you ? But if Emanuel > does not want to touch it, what is the point ! This is too abstract a question. The original issue was not about Calc, it was about a standalone math library. For that, we should first define the scope. One possibility is to expose to Lisp everything in a typical libm, but is that needed? Another possibility is to provide a statistical library (average, median, standard deviation, t-Student, F-test, chi-square, etc.) -- but do we need this? Etc. etc. -- "math library" can be interpreted in many different ways. If we are now talking about improving Calc, someone who knows Calc well should describe what is needed, and we can then discuss that in detail.