emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo Butler <Leo.Butler@umanitoba.ca>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: What is the status of ob-maxima.el? Is this a bug?
Date: Tue, 5 Dec 2023 20:18:34 +0000	[thread overview]
Message-ID: <878r68csiu.fsf@t14.reltub.ca> (raw)
In-Reply-To: <87cyvkk1t7.fsf@ucl.ac.uk> (Eric Fraga's message of "Tue, 5 Dec 2023 17:16:04 +0000")

On Tue, Dec 05 2023, "Fraga, Eric" <e.fraga@ucl.ac.uk> wrote:

> On Tuesday,  5 Dec 2023 at 16:59, Leo Butler wrote:
>> You mentioned returning a value from a maxima code block. 
>
> By this, I mean the value of the last sexp as some other src blocks do
> (elisp? octave? Not sure which...).  It's what I would expect to see if
> I were to specify ":results value".

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?

Also, what would we do with an arbitrary mathematical expression? Return
a printed representation?

>
> And your improvements definitely look good!  Thanks.  I use maxima a lot
> for teaching so will need to reconsider the material on some of my
> slides (next year... :-)).
>
> I also use embedded Calc as it's easier to incorporate directly in text,
> especially in org, but Calc is not quite as capable as maxima as a
> computer algebra system.

Thanks.

I have used Calc, but never really got the hang of it.

Developing a working session for maxima would make it more feasible to
use it directly in text, as you are using Calc.

Leo

  reply	other threads:[~2023-12-05 20:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-05  1:41 What is the status of ob-maxima.el? Is this a bug? Eduardo Ochs
2023-12-05 10:36 ` Fraga, Eric
2023-12-05 11:34   ` Eduardo Ochs
2023-12-05 13:22     ` Fraga, Eric
2023-12-05 16:42   ` Leo Butler
2023-12-05 16:49     ` Fraga, Eric
2023-12-05 16:59       ` Leo Butler
2023-12-05 17:16         ` Fraga, Eric
2023-12-05 20:18           ` Leo Butler [this message]
2023-12-06 14:15             ` Fraga, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878r68csiu.fsf@t14.reltub.ca \
    --to=leo.butler@umanitoba.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).