all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Using Calc
Date: Wed, 5 May 2021 13:31:47 +0200	[thread overview]
Message-ID: <trinity-5814b7ed-2eff-4051-9958-79f972fa972c-1620214307349@3c-app-mailcom-bs16> (raw)
In-Reply-To: <878s4twhmh.fsf@ucl.ac.uk>


> 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	other threads:[~2021-05-05 11:31 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-05  5:58 Using Calc Christopher Dimech
2021-05-05  6:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-05 10:23   ` Christopher Dimech
2021-05-05 10:31     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-05 10:42       ` Christopher Dimech
2021-05-05 11:15   ` Christopher Dimech
2021-05-05 11:21     ` Eric S Fraga
2021-05-05 11:31       ` Christopher Dimech [this message]
2021-05-05 11:39         ` Eric S Fraga
2021-05-05 11:48           ` Christopher Dimech
2021-05-05 11:58             ` Eric S Fraga
2021-05-05 12:42               ` Christopher Dimech
2021-05-05 13:00                 ` Christopher Dimech
2021-05-05 14:16               ` Christopher Dimech
2021-05-05 21:37                 ` Nick Dokos
2021-05-05 21:53                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-06  7:18                     ` tomas
2021-05-05 11:58           ` Christopher Dimech
2021-05-05 14:58           ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-05 15:23             ` Christopher Dimech
2021-05-05 16:44             ` Eric S Fraga
2021-05-05 17:25               ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-05 17:33                 ` Gregory Heytings
2021-05-05 18:52                   ` Tassilo Horn
2021-05-05 20:46                     ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-05 21:01                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-06  7:51                       ` Gregory Heytings
2021-05-05 19:52                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-06  4:33                 ` Bob Newell
2021-05-05 14:52       ` Emanuel Berg via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-5814b7ed-2eff-4051-9958-79f972fa972c-1620214307349@3c-app-mailcom-bs16 \
    --to=dimech@gmx.com \
    --cc=e.fraga@ucl.ac.uk \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.