help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Calc


From: Eric S Fraga
Subject: Re: Using Calc
Date: Wed, 05 May 2021 12:39:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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.] ] 
> =>
>
> 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. ]   =>   [ 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]