From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oGi+C12ulGOjlwAAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 17:05:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EHnaCl2ulGN/5wAAG6o9tA (envelope-from ) for ; Sat, 10 Dec 2022 17:05:49 +0100 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 CCB1B28A6A for ; Sat, 10 Dec 2022 17:05:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p42LU-0003qv-Rx; Sat, 10 Dec 2022 11:05:01 -0500 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 1p42LC-0003nH-9H for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 11:04:50 -0500 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p42L8-0006pL-3a for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 11:04:42 -0500 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-3bf4ade3364so90133937b3.3 for ; Sat, 10 Dec 2022 08:04:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=/inQUc4GhCI6TkevivYM6oiJ8/rGF8DjtXogH7284fs=; b=I/430G45yJXmF7aIG3VpK9Sh3aNz2yc0vSCWux3BeCMxaq2FVajBoTcDq6bXYR8sNk SnG6WcRru2UGSo1UjTTG8ISOdNsowdj6Otc1D0+hi1+PjB6tCKsN8nEBYZqLbGnixg0+ uEQuqeXmfBXF719NDzESs2BlQmvC7WC3nI5b4YC65hxGa0Y+lpSP/sTjEVLJOq8yhBT4 1tKaqaFPNeYU9Y1qFAu8h0pB+tq1XzvYPQfpqlTQNVMJxB8JVzscYLIZKCnTyZmNVRgu YnwqpxhuZf5lD8FcFJVg7RgOYTJM05fdwVrxAHxnVuTOxA3RcxNBW8+BFHXm/kvUcP79 FQlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=/inQUc4GhCI6TkevivYM6oiJ8/rGF8DjtXogH7284fs=; b=37BewlSC8vCNALWEGBa9ng1urk26TQCmwey0oYH6ZQOcZ++jt8fPnuiWWHjQ3F1Xke 7L/aAyeODLhAzupMlVQdIW4htGPoSJzYzKnbtp8pVlbkFgYjoQaRK5eTW6Veh4oK4tGj HnlHJkOH+l1voCvN4m5cGBP1o21CAxZBkvLzYxBGLSqPagDUdKyiOJwJhh19XvoaszWF IYK8tfYz5xq7LUIc09yre6L7tIvm4rQgX+pkUW5BhpqIegDXVmbeGk84CQUjTL1DQZcE i2UBmnFwbV/FN8CAwtScsGZr62EEBRH8AzZP7CgkGVhaoEBk9qzJ0R2S8dvqa87XB64h G78Q== X-Gm-Message-State: ANoB5plZDFFkmZpyv/WGjlubQplagV/xGuCDjfwjEHvaWsPsDd34BY+p P2JN7wwuQQYPHCtkkNZjZMM= X-Google-Smtp-Source: AA0mqf7OefhQJGk7n3Z5oTDtyQ+TyqvzDNwI08OYvXw25UNhUHrPaPzYzWsyG5eIef9tM/cJbddH8A== X-Received: by 2002:a05:7500:1d16:b0:ea:40f3:5145 with SMTP id du22-20020a0575001d1600b000ea40f35145mr1033430gab.52.1670688275504; Sat, 10 Dec 2022 08:04:35 -0800 (PST) Received: from [127.0.0.1] ([31.4.226.25]) by smtp.gmail.com with ESMTPSA id c15-20020ae9ed0f000000b006e702033b15sm2282855qkg.66.2022.12.10.08.04.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Dec 2022 08:04:34 -0800 (PST) Date: Sat, 10 Dec 2022 17:04:33 +0100 (GMT+01:00) From: ypuntot To: Ihor Radchenko Cc: Org-mode Message-ID: In-Reply-To: <87edt7s6xh.fsf@localhost> References: <2ff2b255-029d-c0f4-6102-0e4482b53b63@gmail.com> <87edt7s6xh.fsf@localhost> Subject: Re: To convert and simplify units in tables (was:LIterate programming with calc (help)) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: Received-SPF: pass client-ip=2607:f8b0:4864:20::112b; envelope-from=ypuntot@gmail.com; helo=mail-yw1-x112b.google.com 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, FREEMAIL_FROM=0.001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: 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=1670688349; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/inQUc4GhCI6TkevivYM6oiJ8/rGF8DjtXogH7284fs=; b=il5Wkm76QB957eivbcsR9fCuQnm8UFt9I9U2cBEXLvDWQZuFzFCZi7MAhhzu5Dfs0qXhHP lz9+u5lJRY0+xsEdt+qdyVN8dru8Td2Qd56ZuTgDzi2yOzNKJkJ3ynKT6sHR/ui+qxMveb v745qHrNdTG5cY5qfk1AUPqg7AXnsWRuLuWzWRiAAOx5+o1ntPPqRLpo3UNWEvwcrkhGXk RP84gIZIo4j/IifD/A6zXukXcPPBNMSJcsLjTIqTNQF3nDdD2oq6xGVWNDfYc0r1yTsDbm s/DHF26/XvcyXb1hiPak4dhEg5HZFwRxCvFKM7zzuywUvVo88MlKWAjDkUwqRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670688349; a=rsa-sha256; cv=none; b=Z2LoYRkA4Yma9k+KYVFw6k3Bzrt7ePewMoDUpwuJRl2MZXlHuD+8bHbE/6x4gzfHBus5SV F0VqYqgTH1WM2O/Uy0lSghdVOM3JMORXCdegotwDD35ujEPdnazuQwcNDGGisVXh+hdjcF MXloJj59uAP/TZUkjDbyQ2t/cEGfo4H4+tNsz2PpO6A6uRojm8TmCTlslT0iz+nj48OfET st32X5B3nBoV1Y0FY2ejPW3bPlxurtCm+RUuW1U8X/hb92KyRS9hlF3Te5KIPvwMmipWwP 27rxUSa3DrSngLdHNPiW2rqOBAUegzF4b2f/m1eApgFIqfF0mYI2W2KAG5Olpw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="I/430G45"; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="I/430G45"; dmarc=pass (policy=none) header.from=gmail.com; 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: CCB1B28A6A X-Spam-Score: -2.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: hIhiPVK1Xf56 Hi Ihor. I'm null at elisp. Could you please refer to me a simple example of math op= eration and unit simplification in elisp? Thanks :$ 10 dic 2022 14:51:39 Ihor Radchenko : > Ypo writes: >=20 >> (defmath uconvert (v u) >> =C2=A0 "Convert value V to compatible unit U." >> =C2=A0 (math-convert-units v u)) >>=20 >>=20 >> But no luck, "cs" result is an ERROR. Is it feasible to get a value for >> "cs" with no units? >=20 > Note that apart from Calc formula notation, you can use Elisp. That will > avoid all the gotchas Calc has. >=20 > --=20 > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at