[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: To convert and simplify units in tables
From: |
Fraga, Eric |
Subject: |
Re: To convert and simplify units in tables |
Date: |
Mon, 12 Dec 2022 09:08:32 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Sunday, 27 Nov 2022 at 20:19, Ypo wrote:
> The alternative way I am trying is using an org-table. It is not
> literate programming, but it is a spreadsheet with units ;D
> [...]
> Now, in a more practical case, I have some problems with units:
>
> | $ | E = 2141404.05 kg/cm^2 |
> | $ | s_lim = 275 N/mm^2 |
> | $ | s_lim = 2800 kg/cm^2 |
> | $ | W = 10000 kg |
> | $ | l = 65 cm |
> | $ | I = 25166 cm^4 |
> | $ | Z = 1680 cm^3 |
> | _ | s |
> | | 386.90476 kg cm / cm^3 |
> | _ | cs |
> | | 7.2369231 kg cm^3 / (cm^2 kg cm) |
>
> #+TBLFM: $s=$W*$l/$Z::$cs=$s_lim/$s
org tables do have support for units, based on Emacs Calc. You need to
add the "u" option to the formulas for this support. If I change your
formulas to:
#+TBLFM: $cs=$s_lim/$s;u::$s=$W*$l/$Z;u
everything seems to work just fine.
--
: Eric S Fraga, with org release_9.6-14-g53814a in Emacs 30.0.50
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: To convert and simplify units in tables,
Fraga, Eric <=