From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kF9CCmCDcGV7dwEAauVa8A:P1 (envelope-from ) for ; Wed, 06 Dec 2023 15:21:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kF9CCmCDcGV7dwEAauVa8A (envelope-from ) for ; Wed, 06 Dec 2023 15:21:20 +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 916075F0EC for ; Wed, 6 Dec 2023 15:21:19 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=XMuHeaVf; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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" ARC-Seal: i=2; s=key1; d=yhetil.org; t=1701872480; a=rsa-sha256; cv=pass; b=o9NHKg61ETyAYWSYSSGfyWeOBzzZz8U5m/UW61Wg5nc2evzylCEDPvbI/ww8JMqXvI9qHQ Meov8Lg2CiRdHQZp+fF5mbrF8HUHVGpCfK7ocrCt32VB+zuKjTz7pXUv8ZM6tHlP9cpQt9 ppx6vQIaVqlgtHfJsnDva3q8dib2tukDqvr6Sq/7zzblUJVNGHlt8qWdnw/aX/y2Zupj2i 6DcC20qHbeVSQyf7NXij6GwwD4+quRGHVdwlmDWA0eDqxsvriwX1D3wb2466V5FcvgSWlP /yseiLk3WWLz6evJvQAVttJHrYutHna3A5+EypTwX2/PWg4zYCZgdnipvy55Lw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=XMuHeaVf; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701872480; 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=79sV+Qwz9u2Y3jr+I9ZYOmgOrD25vxfm9tJMdTyYkiU=; b=XB4ksKL4K0D7vhs0AgJ+Gil5s/EYYiNUXx+1xc46qqxSSzzKiy5IPMBFcBRanexXOd4uQf hXj8hS8XawLwUR/pXOqypWkqAuupp5ziOr+YNJcttIUGzHgodpn2mj3oH9exeDmS0O/BNT tCZTdeRDNP6z1we1lyG+hqv2z0/ZRSpHzVKdGpURjtmbNQmy5sD0t2BdCiU5vZVPS/4Hej xhJxuGsSnz6+bmLg5bwERULOWjSg4g/6VuEN9rsCzcioJDTRZGyBaNYo8hZ6ouK8c0NHgJ EAK20F1A3IiAY4291OnBFrZ7cKQOPn5rls+mSxwGMFQW9M6Wn4FCxtc6xIX/Mw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAsl7-0001I9-Qx; Wed, 06 Dec 2023 09:20:17 -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 1rAsl5-0001Hp-IB for emacs-orgmode@gnu.org; Wed, 06 Dec 2023 09:20:15 -0500 Received: from mail-he1eur04on072f.outbound.protection.outlook.com ([2a01:111:f400:fe0d::72f] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAsl2-0002cZ-VN for emacs-orgmode@gnu.org; Wed, 06 Dec 2023 09:20:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cLX9iVGQBHeh5JelwmagBz385FG7a/kiFGbEMGj5u0sKbsbbMj9VCudOTUYWucniM+f7ngcRnKHBUEy+R6Ivy7Xzw+v++v4EGSAt3IfTD5+YFIiOozk8I+gNioF2nlkF3ZCEui3Hdw7/miQAS41EzKCQGbuUGAuJUsxZv9NCE8DhXGkDAW0KxJn5QtbixYRSCU/eEXubwiKvqzAyE2TvM7mriEqNaCGZ1D0JTDFD5Ta7SOLWYrmnUV4GVY6j3zUD7xruW62uu7tYbsA1j07K70gC6d5cRcjcwDxqFI5shXmpzWXfBP3sx3QP1Vb9KVAJqxUnmAdMly6fypiOVZlU4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=79sV+Qwz9u2Y3jr+I9ZYOmgOrD25vxfm9tJMdTyYkiU=; b=FhWUxDctpFr/fPgohbO6PTkfi3m4x1mdza47MC2tg3e5t+83bbLqPpZI/Kfb2GX71MXNrxGiT7rJoHm6WLwtbZN15//flrjUOPkTeD26yxwtDQPZ6yBQpK2j8JPX/YxvtK3ho6RUcj03N/Sma2WAtcS4kY92dcKIWnVQMCkjK6Pm4W70fdPiUbgS3q8rw1mC1GGhdzodynNtXXeQOUuqxrje6x9F2e1ITxas2Km2YO3wvXf9g/RwvzBQOLHbZSMqPybJIKZQrQypHUomoyjtpOj2+1p7OtuCgilNqdp8ubn/Di8JoE2+pG3FzP5b93pCv70SpOknXcNM9v/8hudODw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=79sV+Qwz9u2Y3jr+I9ZYOmgOrD25vxfm9tJMdTyYkiU=; b=XMuHeaVf1RFfyFey+MIGzG3FHO4IYs/44Px+3AuBXtMc4EhyAbb39Xcx2aE6Ipcurs13ly2/uPNB6y6AlDKx71Lzs5coX4H9ej0bqUSdILZd5OmloH8pdg+pNrtpzCg1AKAQRrLx6afBCSvz0KtWXjALQwREFa5fdCSE7/PC54U= Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4fa::21) by PAXPR01MB10166.eurprd01.prod.exchangelabs.com (2603:10a6:102:24a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.25; Wed, 6 Dec 2023 14:15:06 +0000 Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::8a25:ed9d:ca1f:a0dd]) by AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::8a25:ed9d:ca1f:a0dd%4]) with mapi id 15.20.7046.034; Wed, 6 Dec 2023 14:15:06 +0000 From: "Fraga, Eric" To: Leo Butler CC: Org Mode List Subject: Re: What is the status of ob-maxima.el? Is this a bug? Thread-Topic: What is the status of ob-maxima.el? Is this a bug? Thread-Index: AQHaJxyEtUv0vecnFE21+rVO1QPnsg== Date: Wed, 6 Dec 2023 14:15:06 +0000 Message-ID: <874jgv8ljr.fsf@ucl.ac.uk> References: <877cltq6kc.fsf@ucl.ac.uk> <87fs0geh47.fsf@t14.reltub.ca> <87lea8k310.fsf@ucl.ac.uk> <87y1e8d1qo.fsf@t14.reltub.ca> <87cyvkk1t7.fsf@ucl.ac.uk> <878r68csiu.fsf@t14.reltub.ca> In-Reply-To: <878r68csiu.fsf@t14.reltub.ca> (Leo Butler's message of "Tue, 5 Dec 2023 20:18:34 +0000") Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: gnus (Emacs 30.0.50) x-url: http://www.ucl.ac.uk/~ucecesf/ mail-followup-to: Org Mode List x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS4PR01MB10249:EE_|PAXPR01MB10166:EE_ x-ms-office365-filtering-correlation-id: a2c1d518-b00c-4601-df51-08dbf665bf4f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /tfOT006xVo5Xo6Ie2h/rGIB4xHiX8dOa/1nI7Fu3ihl/SJVVClUibQzF7SI4PA2K8q+nYvSJLSP0+l7Z76bbTNVHkqPtodEQiUVfUgydnkqlqg819IO+aSVFQAHrsafOCuL0jHSvaSq3NSO/ckH1ZB3B8sWZiVf1OdAapoePXBtm/d+XnU41xt8oVMriHsWH9jBTR53g0+s8IGbH0r4kCkxlNgvq6IDa/3eg83rZIt7O8VbDYA846Cryej4bAMbO7frYJOy7Nea3cRtp2xz6r85nws7X/HZ3ueILc/3VByJMNwRZ6gTuYXJFCB8QVHPc7g6CMGg6EWmSvPERYRIVKGro0ZMZebQ2t1laXlNGtZHpA4rWNrSenyLc3kyIst5qrxgASr02Awn7sbE9dDbOE8bzifkSLWPu1uC2bmegdd7wDH6RtehIR3ceB8TkDYbf+/bsDEA0zeCQsO4hL+JPslVElaktyVoimZBRO8HPy7A8fLn5pddcr0n0oIr9Y2LiHrIHC0jLCDDbQal1bXI+x1CFZqjamhmmoTDRnklp/no3H5BydhuCaKijC5jSI51F1xq5T0Lnp74Wlj1y6xtyQ3ht7eyjaZ5oal3yO7Z9UbA2PZ8h4Tz+UPpn7zPUObd x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR01MB10249.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(346002)(376002)(366004)(39860400002)(396003)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(26005)(36756003)(38100700002)(41300700001)(122000001)(6512007)(2616005)(38070700009)(6506007)(71200400001)(2906002)(6486002)(5660300002)(786003)(86362001)(316002)(76116006)(66946007)(6916009)(66556008)(66476007)(66446008)(64756008)(91956017)(478600001)(4326008)(8936002)(8676002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?ekOGby0O16lLG9zhQ8sKFmxDh5hBEtuFo7elk8LGlcSWv/J7vEGPeE+VY5?= =?iso-8859-1?Q?udDJPy2Im7svten0w+AmffIsGuYbIfNx8Lk98f/T4ysoZkO655cWWTwgmb?= =?iso-8859-1?Q?0XQKw8Mpy2UuvjJAFyZgLnuafiyxlkLOdrMUOxxfXrCPsOSs5Ltl17/sxh?= =?iso-8859-1?Q?ZpP0qdjOO0pjEdstx2Ijqc8BEV0B9Ky0GG0WjAXldc5hWCKmrqYH+Vm/3e?= =?iso-8859-1?Q?IKVwra/hKpYhOPwNNxe64q1E2Ezrm8a2D4x7cp/R9TqUQq2c2h1kVyOC8P?= =?iso-8859-1?Q?/R+7N415g17m1cBLj6PgdUTBMOaf2YW0D6FiHPMlRbZrbXHJH0KUsJ2xo3?= =?iso-8859-1?Q?Muzlj2qS0UFnR3l4Bmh09PFxvHofw1sk4Is68C91PjtxmmR5hS+jO4r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2WoW1kb9s7G6dJTXHPciFaVofsXjfp6H4n48afPQ8?= =?iso-8859-1?Q?Z0CQjcwvsdPdY2bmI4cOrnRvqb0FeZBWGEfGSkfMD2F9WeNcmDVbRwTZaz?= =?iso-8859-1?Q?i2WILbUkg4h6xFcmekg0/L5Qwo1mCW4VdCF8Jm+xHO6z7OnBRYPHBEFLkG?= =?iso-8859-1?Q?GV9EWPcHyDtCS2KWjOX5LppZs/RI7NgfIZdNC8OnpICYnVAiZ3NRfMB+eH?= =?iso-8859-1?Q?LSFLk4elNEzTtLMVRiqK6lPoWy3AJuSqGpIJKhEcS1yPXgQFjaaebM/DYE?= =?iso-8859-1?Q?52HniXc6XZei6J+s0+cGLswcRu/OfpUz6Uj3Fp2QlUySpxkxNMJ+OKIhMG?= =?iso-8859-1?Q?BD/N+Wy0LrKLAnnKRgoTTFi4l8jndOkyR4?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS4PR01MB10249.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2c1d518-b00c-4601-df51-08dbf665bf4f X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2023 14:15:06.4687 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ef4k8MxgcqxfAN0G9l3sw4BvS7oyNGzhnM4kl1dd1uo0gX84bdxVOt/Sadl5TeqYi2SljUG5Wgyt1HmlgHiwqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR01MB10166 Received-SPF: pass client-ip=2a01:111:f400:fe0d::72f; envelope-from=e.fraga@ucl.ac.uk; helo=EUR04-HE1-obe.outbound.protection.outlook.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -11.71 X-Spam-Score: -11.71 X-Migadu-Queue-Id: 916075F0EC X-TUID: 4/rMx+0wD8IQ Hi Leo, On Tuesday, 5 Dec 2023 at 20:18, Leo Butler wrote: > I think it should be easy to provide this for a few data types (matrix, > string, maybe list), but I think the conversion from a Lisp sexp to an > ELisp sexp will need a lot of assumptions. E.g. how to convert the > Maxima list: > > [[a,b],[c,d,[e,f]]] > > Or maybe such cases are not important? Good question. I am not sure what the best approach would be. My own use case often does involve results which are vectors of vectors of values or expressions (solutions to system of equations). I typically simply output directly using either print or grind, as in #+begin_src maxima :results output=20 for i: 1 thru length(solution[1]) do grind(solution[1][i])$ #+end_src where "solution" is the result of the computation in my (elided) example and I only care about the first solution. I haven't really thought about how the final "value" should be output. I'm happy to explore alternatives. > Also, what would we do with an arbitrary mathematical expression? Return > a printed representation? This might actually be the easiest, of course. > Developing a working session for maxima would make it more feasible to > use it directly in text, as you are using Calc. It would indeed be more feasible but not necessarily a benefit (to me), as such. I use Calc for pedagogical aspects, showing step by step calculations, and it has some benefits over Maxima for this, especially for engineering topics because it "understands" units (e.g. kg, J, m^2). Further, I have total control of the formatting by having defined my own embedded Calc format, lines that start with #+calc: which I can interpret during the export process in org. I use maxima to solve more detailed problems so that students can see the outcome of the algebra to compare with their own work. And there's the psychological/philosophical benefit of doing everything I can in Emacs itself! :-) But, having said that, consistency in the tools used is beneficial so doing step by step calculations with maxima instead of Calc could be a good thing for the students. It would be nice to have that option. Thank you, eric --=20 : Eric S Fraga, with org release_9.6.7-661-g34ee6f in Emacs 30.0.50=