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 15:18:52 +0200 Message-ID: References: <87plrdqnhc.fsf@posteo.net> <87le21qldj.fsf_-_@posteo.net> <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> 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="39992"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Emanuel Berg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 21 15:19:48 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 1sVWTc-000AGc-3t for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Jul 2024 15:19:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVWSp-0008Kq-4d; Sun, 21 Jul 2024 09:18:59 -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 1sVWSn-0008Kb-UI for emacs-devel@gnu.org; Sun, 21 Jul 2024 09:18:57 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVWSl-0007oy-T3 for emacs-devel@gnu.org; Sun, 21 Jul 2024 09:18:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1721567932; x=1722172732; i=dimech@gmx.com; bh=De2kB5EXuccpWo1cWigNfuhjGHiNDUh0WfWUH/JZMhw=; 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=bcB3orlCUwf5dGcVnmlGwoQ/75GayjzY3FQmPPrMUhj3xGjVWhYJm17WypSll32C 3O/tIU1oNF6M3YkJvxuUnxuobo1OalMoxHQbNo+KKmj98Qg3XHVbwOa3EcbmNZCBC AxuHfH5mJxZTkm61dhMgvkvhnPCOVmLlMv+g9VxZGAqQR9H8UfADL9hzsj6U3rDD9 i2QpB+i79Luxbhorw7WQnmkJ0ixfhUIagbD06Ne45wKOvkSwkE5wGakZkSC4xvCv9 dsB46U7p8Mf559nrufdP4rwm8KM0EH8bM5W49d6Vu+xnkvvLnJgr314MyD5vgf+J5 xSlkElqg9BWQyogW0A== 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 15:18:52 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:0umbEqGENBUp/a4pZdWhFr41Y0jqeBUXMxcVTdVYF746HxVsJAUuFwYq0/YQt4xtMYQJA vSdjR3s6GpD0pUFFC9bUFhG32fJPiyawKALUE7OG0rCl3JrjS+uOAcxXPAvR8wSXZz1oRhbJQl0d jurrIT19ToC3Fqr8Gcc7MgSBe1S1kP7gX9kfuLDOOINOuJlr1Wy1YdqyiW2hE7xOqbEdTk9ZLObM hpL5evaomvX7SEFZq4Dcsq8XdERk4iLgWtelWQJRIKMB6tIkk1V8DDEcTHf1OqmUOHku5SvD97nR q0= UI-OutboundReport: notjunk:1;M01:P0:72pwIifYIfc=;/QXJH94sK0LXYg/1Jq4ybjIxZ+Z kz5WTmMMd/M6QBk/Rn2V+M98bpkOKrWNu5Yq74y3Rd/EI82VBtjSH99cE572QM+Ty2RNiaoSc RJkJgZ9Cn2Gl8czbFfo81q3vXN8zCPqebuiIlEJPw9RcG10MBh1BzZX/gV4gr8VihfKlM9gJF hgZApO4s4QTgUyEIzy3bCZNoDLwoZDZ6OjUvJ2iLjJbMW6DnY/5OYxj7FTbfapgnQUyPsVoT8 QNtKYrivDf0dotNCTeGpCm9Mc36DwOOMd/bqlpC2LxJIRqIClmBV3SaBUSUsKF+WtfT8L3Wnd kMSg6suBDyZQjxYAG4NrnbT0xcsNzNJuhxbZgHrj5o3UwRPwQLTbmw60xbp+i2JAWZhI2eRAo Y1KwrJCS398CISRX3xqL7Y4mOWAtXjoI6J/VXqU3tGh/b3Rb1AhzNfpzG2TrrQnBYfnMFRhTA ZkEysqTqy6xhSkKtoLEbzCSYVpVpGG+1FuKeLFPD3wtTICCmx/B/LxByXNi1zwb1CuWm6mU1n CWnD8KeWUBOHHUc/ktwgHHRz8m7Gm9gOLfUEyymBGdoycSg1hHCOzesQOpZrCIxct1egZZP81 Kno0t30EytReK6gzhrlVBjwFuXcp5OP5zx6ghQJQZ9dLoRQ3cGJ/KiHdZhFI0VhKdamX+8l/4 T4P7ikkKcAgZaFPO8373g63V1Wr0+1+RF4y1LMYdtA== Received-SPF: pass client-ip=212.227.15.19; 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:321878 Archived-At: ----- Kristof =C4=90ymek Administrator General - Chilkat Design Build - Naiad Informatics - Gnu Pro= ject Society has become too quick to pass judgement and declare someone Persona Non-Grata, the most extreme form of censure a country can bestow=2E In a new era of destructive authoritarianism, I support Richard Stallman=2E Times of great crisis are also times of great opportunity=2E I call upon you to make this struggle yours as well ! https://www=2Egnu=2Eorg https://www=2Efsf=2Eorg/ > Sent: Monday, July 22, 2024 at 1:03 AM > From: "Christopher Dimech" > To: "Emanuel Berg" > Cc: emacs-devel@gnu=2Eorg > Subject: Adding a generic mathematical library > > Emanuel, looking at calc=2Eel you will find >=20 > ;; Provide a better implementation for math-sin-cos-raw=2E > ;; Provide a better implementation for math-hypot=2E >=20 > You can focus on these two things so you can provide us with better > implementations of those two things=2E Together with the necessary > framework for extension and for use by calc=2E math-hypot is found in file calc-math=2Eel =20 > > Sent: Monday, July 22, 2024 at 12:27 AM > > From: "Emanuel Berg" > > To: emacs-devel@gnu=2Eorg > > Subject: Re: Adding a generic mathematical library > > > > > What parts of arithmetics would you like to have? You are > > > the math guy then, if that is the way you like it=2E You can > > > tell me what functions and operators are missing - maybe > > > definitions, actually whatever=2E > > > > And applications, like formulas and math functions=2E > > > > This - > > > > (defun distance-point (min max) > > (+ min (/ (- max min) 2=2E0)) ) > > > > - or special, fun things=2E This even has the name arithmetic in > > it=2E Well, almost=2E > > > > (defun arith-sum (n) > > (cl-loop > > with sum =3D 0 > > for i from 1 to (1- n) > > do (cl-incf sum i) > > finally return sum) ) > > > > (Hm - there are many ways to solve that, and this is fine by > > all means=2E) > > > > You can also compare Emacs arithmetic capabilities with what > > you find in a book=2E Do we have everything? Or do we want more? > > That is where it begins=2E > > > > -- > > underground experts united > > https://dataswamp=2Eorg/~incal > > > > > > >=20 >