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

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

Re: Using Calc


From: Christopher Dimech
Subject: Re: Using Calc
Date: Wed, 5 May 2021 13:31:47 +0200

> Sent: Wednesday, May 05, 2021 at 11:21 PM
> From: "Eric S Fraga" <e.fraga@ucl.ac.uk>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Using Calc
>
> On Wednesday,  5 May 2021 at 13:15, Christopher Dimech wrote:
> > But then the task is to do the computations with org babel.
> >
> > E.g. Vector addition, dot product, cross product.
> >
> > [1,2,3] [4,5,6] +
>
> Or use Embedded Calc and type C-x * u on a line that looks like this:
>
>    [1,2,3] + [4,5,6] =>
>
> with blank lines before and after.

Great.  The following work

[1,2,3] + [4,5,6] =>

[1,2,3] * [4,5,6] =>

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?


> --
> 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]