emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

To convert and simplify units in tables (was:LIterate programming with c


From: Ypo
Subject: To convert and simplify units in tables (was:LIterate programming with calc (help))
Date: Mon, 28 Nov 2022 19:58:13 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

#+TBLFM: $s=uconvert($W*$l/$Z,kg / cm^2)::$cs=uconvert($s_lim/$s, )

where uconvert is defined as:

(defmath uconvert (v u)
  "Convert value V to compatible unit U."
  (math-convert-units v u))


But no luck, "cs" result is an ERROR. Is it feasible to get a value for "cs" with no units?

Ok, it is enough to add any unit to uconvert, for example: $cs=uconvert($s_lim/$s,m). That simplifies units in adimensional parameters.

Best regards ;D


reply via email to

[Prev in Thread] Current Thread [Next in Thread]