```emacs-orgmode@gnu.org archives
help / color / mirror / code / Atom feed```
```From: Michael Brand <michael.ch.brand@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Insert calc vector directly into spreadsheet cells?
Date: Mon, 26 May 2014 22:43:39 +0200	[thread overview]
Message-ID: <CALn3zogFQfb-k+mi9LfVrfrmD=HfeZFpq83+xGb+NUVY5hMQhA@mail.gmail.com> (raw)

Hi Steven

On Mon, May 26, 2014 at 9:39 PM, Steven Adrian <sadrian@acumeniacal.com> wrote:
> This is great. I wish I had seen this earlier. I did not know about
> the subscr function, but I had basically gotten to the same point by
> writing an equivalent custom calc function.

With the Calc function defmath? How does it look like?

> 1. I wrote a custom calc function called tailsInARow that uses the
> calc random function to simulate a coin toss and return the number
> of tails in a row. I used this function to fill a 20x20 table of
> values. I then used the calc histogram function in a table formula
> to read the table values, histogram the number of tails in a row,
> then write the histogram to a new table.

Didn't know that Calc has a histogram function. The histogram values
would fit perfectly to the ASCII plot within an Org table:
http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html

> 2. I calculated a rotation matrix as a succession of individual
> rotations about x, y, and z axes. I then wrote the resulting matrix
> to a table. I then wrote a table function to read the matrix, take
> the inverse, and write the result to a new table.

Interesting. How does the "function to read the matrix" look like?

Michael
```

```next prev parent reply	other threads:[~2014-05-26 20:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 15:23 ` Bastien
2014-05-21  7:29   ` Michael Brand
2014-05-26 20:43       ` Michael Brand [this message]
2014-05-27 18:06           ` Michael Brand
```

```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,

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

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

switches of git-send-email(1):

git send-email \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \

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

```Code repositories for project(s) associated with this public inbox