From: Eric S Fraga <esflists@gmail.com>
To: Nishan Singh Mann <nishan.singh.mann@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Elementwise division of two columns in table
Date: Tue, 18 Sep 2018 10:20:02 +0100 [thread overview]
Message-ID: <87h8inmabh.fsf@gmail.com> (raw)
In-Reply-To: <CAMr1WcKXPnZRwF-tkf3zffYTdbZAQcpT0RX4fR5eBv8z4OzD8A@mail.gmail.com> (Nishan Singh Mann's message of "Mon, 17 Sep 2018 16:36:49 -0400")
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
next prev parent reply other threads:[~2018-09-18 9:20 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 [this message]
2018-09-18 19:36 ` Nishan Singh Mann
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=87h8inmabh.fsf@gmail.com \
--to=esflists@gmail.com \
--cc=Emacs-orgmode@gnu.org \
--cc=nishan.singh.mann@gmail.com \
/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).