emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nishan Singh Mann <nishan.singh.mann@gmail.com>
To: Emacs-orgmode@gnu.org
Subject: Re: Elementwise division of two columns in table
Date: Tue, 18 Sep 2018 15:36:15 -0400	[thread overview]
Message-ID: <CAMr1WcKbtOZiZoyq=r52H48JXXmhGs+cWsevdm4yhC+5XrhZ_w@mail.gmail.com> (raw)
In-Reply-To: <87h8inmabh.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

This works. Thanks Eric.

On Tue, 18 Sep 2018 at 05:20 Eric S Fraga <esflists@gmail.com> wrote:

> On Monday, 17 Sep 2018 at 16:36, Nishan Singh Mann wrote:
> > Given a table of the form
> > | a | b | c |
> > |[2,3] | [4,6] | formula
> >
> > What is the formula for column C such that elementwise division is
> > performed to obtain [2,2]. I realize I've to use the (calc-map OPR)
> > function but I am not an expert in elisp. Thanks for reading.
> > Regards,
> > Nishan
>
> Try
>
> | a     | b     | c          |
> | [2,3] | [4,6] | [0.5, 0.5] |
> #+TBLFM: @2$3=map(div,$1,$2)
>
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.1.11-620-ga548e4
>
-- 
Nishan Singh Mann

[-- Attachment #2: Type: text/html, Size: 1126 bytes --]

      reply	other threads:[~2018-09-18 19:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17 20:36 Elementwise division of two columns in table Nishan Singh Mann
2018-09-18  9:20 ` Eric S Fraga
2018-09-18 19:36   ` Nishan Singh Mann [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to='CAMr1WcKbtOZiZoyq=r52H48JXXmhGs+cWsevdm4yhC+5XrhZ_w@mail.gmail.com' \
    --to=nishan.singh.mann@gmail.com \
    --cc=Emacs-orgmode@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).