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.help Subject: Re: Using Calc Date: Wed, 5 May 2021 13:58:36 +0200 Message-ID: References: <877dkdd8d2.fsf@zoho.eu> <878s4twhmh.fsf@ucl.ac.uk> <874kfhwgt0.fsf@ucl.ac.uk> 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="20711"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eric S Fraga Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 05 13:59:21 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1leGBV-0005IB-59 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 13:59:21 +0200 Original-Received: from localhost ([::1]:54354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leGBU-0000Oa-6n for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 07:59:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leGAs-0000MO-5j for help-gnu-emacs@gnu.org; Wed, 05 May 2021 07:58:44 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:47677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leGAq-0003pe-1W for help-gnu-emacs@gnu.org; Wed, 05 May 2021 07:58:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620215917; bh=TrBCYjz4PxC2HMuK1KEKE2/BbTGEZxK5JyNHXlKcdMY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fiUGc4yWR4mbLgEcIEE6jeISnLs+d5iiV0bCKgS+npJVHJmyr6/Pzwfnc3xRmxg5w B1rQgRalnx6CWS1s1L10ycZp9a59KrDee2hGLs7F5IFuFDxtZbnjK9DFk8+YUKVZbm SXZekaGDF74ZFsQXlBtlAiwoZ3YdZw/LcRzKSx0k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Wed, 5 May 2021 13:58:36 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <874kfhwgt0.fsf@ucl.ac.uk> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:KCSpdsjTNBmDREtsl2F9MihjYF0q93G8jbvWWeVl4pdtPu0O1cJsHxOJ7UY1R1weZdG4D Dpva4ajag5Vb8hGgcEGjWI1lBiiUtGO5N8JC+ytkL1Nx20iMgE1d+z7Vc2dfQrkMrLv59qjrGxTF PFTTKHFcpaYZAWw1uh92tvlDO4OZJe2aulqk+E2lpzSi5Uo/+SC2Hh1ONTf7sUoGgLmBvU9pFyd5 23A0fWFQG+5WERKd6TQlHOAO2QxBknvlwYbwjMQhe0khfmrxBbVEa/wOb11eTJyl2TBJuBVn5hgT QY= X-UI-Out-Filterresults: notjunk:1;V03:K0:iskK5nWTrlU=:47yzVtCoqSvcQVdFakIZw5 ftHtV3p0vBXszAUpj72n/lu3kOzZsYpKkJmhVGU+wCXUSB/uQCB2WIzhmGyY208f79C8E4ah0 pcU+K++FVsi2N74TKGcDjBbMXx3jRhVU123Fc8oUBoMS9k2FedYzeplGHbC8CEmWoAxBK20MG xZ/eeltjQBYyFk6q8I2WpxqWyVmxXdk8myKYaMbskd0qEWYMh2Iaosa0b8+aCOUv97ZgO1DS2 nLnQZI+C2du51+mPssTE3wRBZhOsHOoOxP8pv20gIeOZzI1mBFsNxv114fk0KzEax6n7gT0UE GyB2MmRN2jLw7TrgQmjBMAdlmZUuYZhEvZYtsyHZ6dcfcBZ6rwbkiQ/W/LQhmBO0FoAhjdcOK rvWnEoY92NKgqHtspWHTJ36e2ey85LBADw/JOmPdtZ8ouOpNNs5n6GpsnlkSaMwYbVzzeMw4p GyV1XUPayvdlJJKczO4gQBr/ZhhKGlM8JB0Yfz/WN9TuvQk6fDdQWr33KxFFKj0BXMp0XzeSk cY8/Ofxe9uY+SASp3Oh9x2ZlivRGSPZzGnMikI2mAnuIjiCCARxfKxDK3JRDCnLQl2KdAsiza absnFqhmrWnvsiEZ0qfSoa19yWhjU/rhs4lBA0uHYIEYmAOkQHds+s+MbqQCZ0F+RQioi01wF KoTnQC5me2dUmAQRvXOOBDC9wijJ45Yg5HSjh4Z/Z9/c09a0JfEPZZVZE1WCtYZTeEP3rmhni 7Qo3Q+N2fa2CFEubCszIKFcp1QMC/XGRlhGS2DbRQ1gXnWeWLlyEpeYkVgNm9Hj2pLAN2J51 Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129477 Archived-At: > Sent: Wednesday, May 05, 2021 at 11:39 PM > From: "Eric S Fraga" > To: help-gnu-emacs@gnu.org > Subject: Re: Using Calc > > On Wednesday, 5 May 2021 at 13:31, Christopher Dimech wrote: > > The following gets matrix multiplication > > > > [ [1.,2.,3.] [4.,5.,6.] [7.,8.,9.] ] * [ [9.,8.,7.] [6.,5.,4.] [3., 2.= ,1.] ] =3D> > > > > It is then very easy to end up with very long lines. Is there a > > solution to this? > > I get: > > [ [ 1., 2., 3. ] [ [ 9., 8., 7. ] [ [ 30., 24., 18. ] > [ 4., 5., 6. ] * [ 6., 5., 4. ] =3D> [ 84., 69., 54. ] > [ 7., 8., 9. ] ] [ 3., 2., 1. ] ] [ 138., 114., 90. ] ] =2D------- Doing the following, removes the * [1, 2, 3] * [4, 2, 6] =3D> =2D------- But the next keeps the + [1, 2, 3] + [4, 7, 6] =3D> It would be better if things remain consistent and we keep the * =2D------- And with these two, one can change the values, re-evaluates and get the correct values [1, 2, 3] + [4, 133, 6] =3D> [5, 135, 9] [1, 2, 3] [4, 123, 6] =3D> 268 =2D------- But with the following, [ [ 1., 2., 3. ] [ [ 9., 8., 7. ] [ [ 30., 24., 18. ] [ 4., 5., 6. ] * [ 6., 5., 4. ] =3D> [ 84., 69., 54. ] [ 7., 8., 9. ] ] [ 3., 2., 1. ] ] [ 138., 114., 90. ] ] If you try to change a value, everything gets messed up [ [ 1., 123., 3. ] [ [ 9., 8., 7. ] [ [ 30., 24., 18. ] [ 4., 5., 6. ] * [ 6., 5., 4. ] =3D> [ 84., 69., 54. ] [ 7., 8., 9. ] ] [ 3., 2., 1. ] ] [ 138., 114., 90. ] ] > as a result so not long lines at all? Of course, if your system gets > larger, there will be an issue but then I would suggest you use a > different language (octave for numerics, maxima for symbolic, both > usable via org babel src blocks if you wish). I.e. use the right tool > for the job? > > -- > Eric S Fraga via Emacs 28.0.50 & org 9.4.5 on Debian bullseye/sid > > >