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: Adding a generic mathematical library Date: Sun, 21 Jul 2024 16:58:44 +0200 Message-ID: References: <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> <86v80yby1r.fsf@gnu.org> 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="35884"; mail-complaints-to="usenet@ciao.gmane.io" Cc: incal@dataswamp.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 21 16:59:27 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 1sVY23-0009Bo-Ko for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Jul 2024 16:59:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVY1S-00038y-IN; Sun, 21 Jul 2024 10:58:50 -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 1sVY1R-00038i-62 for emacs-devel@gnu.org; Sun, 21 Jul 2024 10:58:49 -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 1sVY1O-0001qZ-Vg; Sun, 21 Jul 2024 10:58:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1721573924; x=1722178724; i=dimech@gmx.com; bh=JTglS69hCWCx2IDAOcEPMy5ejc+upxBljupDYFcLOOE=; 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=rlfjdSSKBiSbW1GvT89v+dskq4KG0XgZmzsyUdXcDuWkbTE+Fr1UHcumU3TK1AJL g8nMAuHf5B3CnH7KjBBTHqZewj2k14TQYjrUVEvW4n9CYljGBql5TEjthH7Wzwnm2 pWYAbBRmyhq+MYeG18m7jqXa38/YRx/tE0uVVTlLllqXwJ6YyAYn0g9FMDXXka0Pg DkPDGr7CCymfK1ZI6ucVvfitfpBBGCQEXrGkVhYbvqWT6YVaQ2ejvSWbLLh+8u9wV gglbIvKWsYtOXdph7ATSzMSJSMJfuC0Bq0teRW+I/IfzD3dDNQjDEqNCrxfxehYNQ J47x8v+dBKBuW/IDAA== 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-bs10.server.lan [172.19.170.178]) (via HTTP); Sun, 21 Jul 2024 16:58:44 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <86v80yby1r.fsf@gnu.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:X9T/ehCbqN2QRCAZxoVoAM40d5GuGKEADuz84Mt7JmjOOC4z8fe9LdnQpVmWt82MU5hGE LNHVlK8VCRiBiEH79Zy3//hp9SrwFybgS4gDhX10KIPQLMrgG5R0ihGGg/BeFP6nPVVWGkLwH72g 7x654dGAlPaM7np9lHce1TZ4T2vIq/VUHyGxWSqdO/epRduEfTb1S5DqabfmulA+HqW4gsz5FYLr BltpM0LRBEOfg3IL1Op2BUeliiIWUmJQtgbre9h9t83jQALayJ9ZTXY3RcK7hUHk0U0yq0VrWMMx Lk= UI-OutboundReport: notjunk:1;M01:P0:Mwci2rwKq50=;brFI1gAYxioG1+q8JgpRKZPIr7a x07nSQ9hCFVVAuqG1ypVDfVbGyqG8IzPpGaarumkHUGoX2zVHJoOrtzGzBotas724oHN7pcub tMmWD07NZ41rDQDCx/J8/UuvuSFcgi5McM09Wec8R9OtnB2Ewda5D5gKdsS3UwHqY9PIBxlTw CPXO6tzoBNL7Puy0A1dRrXlSaVRGoRcXTHHlKAHjwn6GdBBEzbUxqmsQrUxSG4LLr2CPWIJC4 fluGjCO2AeKMm6NRPA1kMoy1oFHxppsPccYaEKNom5GZ+N/lt3BNn1sC0gOJ0+oSyZ6H/5Yt6 lQYoVVol2k9DRkq2okfm4vjCy7xLJ66V/TWOb4QLGQtZhIBEGrjdLbmMKxMpk38vv+1q2GHIx d3lUoSJgTcLmGD8hPFg7+Z/YfymmTUqZjg0h32as/jKtKxg5qfjfxfRdlCHBuje0kBs/gN4/i EimgpPmc68ibBNDGzHp0kCWIF3W/bUVT/1jtpKeNSmKYvGY5t8A35aJi0zxoH6ZEpt9jazraU 4p547cCY9fUsn97Ttqqy/F9fAghk125shu6MG+Co7FkHX+mHAzS3KfnzwHW2hA9AFuZU2dRvf YQFXWOfIg+DofL6HoyeTuohGh0FRGgeX1fVuhkhrqjvcF7f6DI2k8MNtkO/z7jnQTE/jO1Fkm lqsICsOO1M17IKaKc60Rb7nAhol80m4qLlkl2BBSIg== 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:321891 Archived-At: > Sent: Monday, July 22, 2024 at 2:49 AM > From: "Eli Zaretskii" > To: "Christopher Dimech" > Cc: incal@dataswamp.org, emacs-devel@gnu.org > Subject: Re: Adding a generic mathematical library > > > 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 standa= rd > > > 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 us= e > > 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. Using Emacs Calc as a foundation for a new mathematical library in Emacs is a practical and efficient approach. Calc is a powerful tool with extensive mathematical capabilities, so building on it allows for leveraging its strengths while focusing on specific needs and functionalities. I rather have the people who work on calc do it as they have much more experience and grasp of what a math library for emacs should do.