From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Using constants in columns Date: Sat, 17 Oct 2015 20:00:40 +0200 Message-ID: References: <877fmmsz49.fsf@ucl.ac.uk> <87vba6voyi.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnVmc-0001C0-Nx for emacs-orgmode@gnu.org; Sat, 17 Oct 2015 14:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnVmb-000862-RO for emacs-orgmode@gnu.org; Sat, 17 Oct 2015 14:00:42 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:33673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnVmb-00085w-Fh for emacs-orgmode@gnu.org; Sat, 17 Oct 2015 14:00:41 -0400 Received: by wijp11 with SMTP id p11so48598430wij.0 for ; Sat, 17 Oct 2015 11:00:40 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Guido Van Hoecke Cc: orgmode Hi Guido On Sat, Oct 17, 2015 at 1:47 PM, Guido Van Hoecke wrote: > I have not found a way to specify the vector in a constant. You can access the elements of the vector constant suggested by Eric with Calc's subscript function: #+CONSTANTS: vat=[1.15,1.21,1.40] | Amount | VAT | Total | |--------+-----+--------| | 100 | 1 | 115.00 | | 100 | 2 | 121.00 | #+TBLFM: $3 = $1 * subscr($vat, $2); %.2f Michael