From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ICSyInRmVmNOdAAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 12:18:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KNW3InRmVmNeCgEA9RJhRA (envelope-from ) for ; Mon, 24 Oct 2022 12:18:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6759C3EB47 for ; Mon, 24 Oct 2022 12:18:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omtcw-0002dE-2P; Mon, 24 Oct 2022 05:20:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omtcp-0002c0-MU for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 05:20:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omtch-00031s-FP for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 05:20:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 51C5E240028 for ; Mon, 24 Oct 2022 11:19:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666603193; bh=zJ+T9ViGCgQFflVZx5J0HF9vhrzqQ14ryVcMfR8k4+w=; h=From:To:Cc:Subject:Date:From; b=W4l1xWIjQXVRfn5JJFIhUcbEEEXbHi0ZBrhAO2FG+sRaNVMHPHePqd7+ZGopEJII0 xKS1fr7I+G/RHsLrOFsMmX8Hy6lB/hnWhZgs+LPkQY25rxcBlBgI3dBHq9iIwfMHFS EFJLaapozomBu5ywbAnvs+vgc1g4As64XM89TEmzoisSrEVPLwsKhrRuoyGJcgAxzg JYRgEh/d5Zh8fMh2RPYG2cMiSqJBysRAbU+MgLcIUchwOegQpXhn2tnYBROboD7jhj c9znryePHLPj5yAM1JEgmTHUMHPRdixLzn0V6PiTfVeFGSx/yPwPRu0hZHDEE/BCt4 kSMISGapk95bA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MwqKL0mKKz9rxW; Mon, 24 Oct 2022 11:19:49 +0200 (CEST) From: Ihor Radchenko To: "Fraga, Eric" Cc: Ypo , Org-mode Subject: Re: LIterate programming with calc (help) In-Reply-To: <87r0yxr6wm.fsf@ucl.ac.uk> References: <87r0yxr6wm.fsf@ucl.ac.uk> Date: Mon, 24 Oct 2022 09:20:33 +0000 Message-ID: <87bkq1pogu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666606708; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tdi2kGLl+NfFBe8hDOHEyrkmY/aCVhxN0am9CPuYja4=; b=o/4AlU27ZLiBtZO/wClSh/xVrkUQ2yItLJ8OSuMsCfMgeorhG647LZKsftx8aaF+hst6kY FPtzv8ZXDlCW5oUjhQ0tFZCTJ83XjYWjIBj1ML1+paQRKxx6aU/ce/QZZK1BDAL62S9QAK Vg81jZOUDkqQp4v8iisJBsG2FvRJUgnDPsDcjwlECCI0M2yWS2SJsHRU003hw79veQ51qK aMKpfblCfzUhc71VaCSWjBVLAtfLmnt3SmazCOIkU8tefSYiN0ddhwOoeXTeGmtMwpubdw sZ1mFLspfX65YnDnfQSr5mySqlLRxEaI9s2089J5mvc4jRbCBYPx4KPpCWDCIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666606708; a=rsa-sha256; cv=none; b=QHGdt/em/MoIE97XZP56fzjHoPOIMRBrkGOcEd57meUre1Mxxu/b4JEnQDpDesFpIvwcRf ycPIGLXwS/AXajxE/Nrvu8odJyPW1imWKkvZnMYyXgtBe7s1dT9KvDT/R5U17zABmteKm3 7fuuZmLqwLOtWQYQGol7GqjLBDcNqIheeXjmCUb4KzAG1IsFQ2idoIkH9ce1Lklh01bXsh h8I2Ugx8LjkZwEI6hV2KbAIKW7jTKC01Y2SNHmE6BhFqSuzk5j8YyJm4ROwmleJrawl8Qi JMkIW5Uk7LQwZiBqIT/wm6OEVIEAr3yRPrWs/oXi4rwRdH18LdAsPAANKTpPaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=W4l1xWIj; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=W4l1xWIj; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6759C3EB47 X-Spam-Score: -1.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: fVDl+U/k8Acm "Fraga, Eric" writes: > On Sunday, 23 Oct 2022 at 14:15, Ypo wrote: >> Is it possible to express in a calc block some basic operations with >> variables and non-predefined units? > >> Why A*c won't show an arithmetic result, but ~: A c ~? > > I've never managed to get calc blocks define variables. The equations > you have typed in are "equations" in the mathematical sense, not > assignment statements. I vaguely recall that storing variables in calc is something like variable := assignment (which is actually rewrite rule, but that's how 13.1 Storing Variables section of the calc manual explains variable assignments). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at