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:03:00 +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="17113"; 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:03:49 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 1sVWE8-0004HY-Tp for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Jul 2024 15:03:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVWDX-0003Z9-UX; Sun, 21 Jul 2024 09:03:13 -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 1sVWDU-0003Yn-4a for emacs-devel@gnu.org; Sun, 21 Jul 2024 09:03:08 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVWDR-000439-5C for emacs-devel@gnu.org; Sun, 21 Jul 2024 09:03:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1721566980; x=1722171780; i=dimech@gmx.com; bh=f4+v0j5c7iHK1EsyITxEwnVi7eZa5GzlsGas3Gl1BmQ=; 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=mfBsqlMYWc4wZ4UJQ/QXkeDUrwkP0MJAu3KobP+Szj1rdExEjw83/rf9XUEZenNu 6Aze4XQffnD67V854h/sS07NQc8gHmDHTEveW9nUER5/Q/iOb5GhD/Ju95Hn47X2H bXep3UG4Bgl3tQdrqtTyZgIfdoTdWpAw9LSwUFykyvwHig3f/vb1tixJGdlPVSHg+ qk6V07ic5CcCRCkLKbMnDBMP9TyaSfK+n3PGznYZC+MlrqzZ5PIpFHU2hGi1obOAx myWf16Qr2RggWNe1ruEepb7JsPW3X70QpEpLQCdbtpI3D/iee1KKrJetd3F8lcvQx M8P6jiBI1AQFgRy9MQ== 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:03:00 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <871q3n3p75.fsf@dataswamp.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:/n6o498B2GJpHLjMGOP/5mLUG0lUNkkw8XIVzw0GAOW1LclYOSL0lgsAI6E/c3D1yxojs KAV6iu892zyX4JR8w/n6mWtPSTP6m+7rvGQDO+/AQaPepW19omNyE2gltZj773Ax2qyy8spYSoNS FW5wK4C6NHlBtkU+nqBNj6qmIfg14b3YLKzIXuKU1bz8N/59BWgCm5hMtCPU414p3pZtmX5Oqp2n FTt7jLUjdqWkwlsnwjS6X49q/K02tvmSzEwpoStTBqPc3epTNfjNpwmeyFD5/OFT4+PsLy4K6f2l qM= UI-OutboundReport: notjunk:1;M01:P0:PlZC4SfALJo=;DjDFfs3w8XX0qBoQhaMN3R0D3SK 1wi4e0V1vprJksgNnJfjjTkCJk4biHKDBOmjvIa2ZeH3+6lVgf/kiQQ+EJCxedcMIwLJrKs2p gcT06/7yLW6f3V291skcvvD5cxDMUyp8bs6R7sJekQW9FZAm5yqHEU3NLix35eK2+8755ukWl SJETf2sJ6+WV2wU+W2+KljYFLc23GYCcx156mhT0yZ/d7Q1r3Xb52l8fQZCHKyYspkSZPDoFg nki1ybWOD8S1Bo1HLqLbclZusknXHdeMRR85x9k1mwyi+Jiwjl6MopYa0GXhLNnQOFW/n6YMf V1Zesx838jWz3SVFSCBUH2PF+EGsXpXFIPb9nhFuGh5LnTQx+AhZoYEl4K5fDKa5k15o5H+qL GvrRLinEykQeM7bBjZOCz5Ltp9Edke6IMla+8QAMZBlZ7Myo6qggNIKj/03OLDG7i8DsKWvzE ozypH42nfT5hxoorX+vy8k144o/SeWWegkIwabKJ9ZUM6N63zJmLAblRHeWWa8rPkZbh5D/cS UMrKnVuuZxNiKBbW5burnE41NIokDREOdV3qzHM7zKZW7p87y5Q6mwkECJYBvxeCKijcV2Gbr UkVwAH2IEVx7byOqplHqw+JmrDhqqG7moAQDNVyDeLQ6e65F4KsxlYHfGre1gkO+X6sZjfpIH TPVvRipNccKoIx0xRt03YnsB9e7x0UOX49R2V5Uxzw== Received-SPF: pass client-ip=212.227.15.18; 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_H4=-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:321877 Archived-At: Emanuel, looking at calc.el you will find ;; Provide a better implementation for math-sin-cos-raw. ;; Provide a better implementation for math-hypot. You can focus on these two things so you can provide us with better implementations of those two things. Together with the necessary framework for extension and for use by calc. > Sent: Monday, July 22, 2024 at 12:27 AM > From: "Emanuel Berg" > To: emacs-devel@gnu.org > 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. You can > > tell me what functions and operators are missing - maybe > > definitions, actually whatever. > > And applications, like formulas and math functions. > > This - > > (defun distance-point (min max) > (+ min (/ (- max min) 2.0)) ) > > - or special, fun things. This even has the name arithmetic in > it. Well, almost. > > (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.) > > You can also compare Emacs arithmetic capabilities with what > you find in a book. Do we have everything? Or do we want more? > That is where it begins. > > -- > underground experts united > https://dataswamp.org/~incal > > >