[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Elementwise division of two columns in table
From: |
Eric S Fraga |
Subject: |
Re: [O] Elementwise division of two columns in table |
Date: |
Tue, 18 Sep 2018 10:20:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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