From: Nikos Apostolakis <nikos.ap@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug in the org spreadsheet?
Date: Sun, 13 Apr 2008 02:19:56 -0400 [thread overview]
Message-ID: <87tzi6e0oj.fsf@Sullivan.bcc.cuny.edu> (raw)
Hello group,
it seems that algebraic entries on tables are not always parsed
correctly by org mode, or is it calc's fault? For example in the
following table the the entry @2$4 should be -a^4 - a^2 b^2
| Term | Components | vac | Contribution |
|------+------------+------------+-------------------------------|
| a a | 2 | -a^2 - b^2 | -a^4 - b^2 |
| a b | 1 | 1 | a b |
| b a | 1 | 1 | b a |
| b b | 2 | -a^2 -b^2 | -(b^2 a^2) - b^2 |
|------+------------+------------+-------------------------------|
| | | | 2 a b - a^4 - a^2 b^2 - 2 b^2 |
#+TBLFM: $4=$1*$3::@6$4=simplify(expand(vsum(@-I..@-II)))
I can get the spreadsheet to do what I mean by using parentheses as
in the following table, but IMHO it shouldn't be necessary.
| Term | Components | vac | Contribution |
|------+------------+--------------+-------------------------------|
| a a | 2 | (-a^2 - b^2) | -(a^2 (b^2 + a^2)) |
| a b | 1 | 1 | a b |
| b a | 1 | 1 | b a |
| b b | 2 | (-a^2 -b^2) | -(b^2 (b^2 + a^2)) |
|------+------------+--------------+-------------------------------|
| | | | 2 a b - a^4 - b^4 - 2 a^2 b^2 |
#+TBLFM: $4=$1*$3::@6$4=simplify(expand(vsum(@-I..@-II)))
,----[ M-x version ]
| GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of
| 2008-04-07 on elegiac, modified by Debian
`----
,----[ M-x org-version ]
| Org-mode version 5.23a
`----
Thanks, Nikos
reply other threads:[~2008-04-13 6:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87tzi6e0oj.fsf@Sullivan.bcc.cuny.edu \
--to=nikos.ap@gmail.com \
--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).