From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Elementwise division of two columns in table Date: Tue, 18 Sep 2018 10:20:02 +0100 Message-ID: <87h8inmabh.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2CB5-0002t1-6X for Emacs-orgmode@gnu.org; Tue, 18 Sep 2018 05:20:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2CAy-00012K-Vp for Emacs-orgmode@gnu.org; Tue, 18 Sep 2018 05:20:15 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:33966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2CAw-0000xY-9J for Emacs-orgmode@gnu.org; Tue, 18 Sep 2018 05:20:08 -0400 Received: by mail-wm1-x333.google.com with SMTP id j25-v6so6519895wmc.1 for ; Tue, 18 Sep 2018 02:20:05 -0700 (PDT) In-Reply-To: (Nishan Singh Mann's message of "Mon, 17 Sep 2018 16:36:49 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nishan Singh Mann Cc: Emacs-orgmode@gnu.org 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