Questions tagged [calc]
Calculator mode: Calculator major mode.
18
questions with no upvoted or accepted answers
10
votes
0
answers
189
views
Significance arithmetic in calc
I would like to perform significance arithmetic in calc-mode. For example, I want 5000 to have one significant figure, and 5.0e3 to have two significant figures. Calculations should preserve ...
8
votes
2
answers
273
views
Is it possible to make calc autocomplete units?
Is there some extension that can make calc autocomplete units while value entered as algebraic input?
e.g.
' 1 kn<tab>
should be completed to "1 knot".
6
votes
1
answer
134
views
How to group digits in minibuffer when sending input to calc?
Is it possible to send something like 200*100,000 as an input to calc?
Documentation says Long numbers can be hard to read if they have too many digits. Press d g (calc-group-digits) to enable ...
3
votes
0
answers
131
views
Replace formula by computed value
I'd like to select a simple formula like 17+5 and replace that by the computed result, 22 in this case. And I need this to work during keyboard macro execution, to quickly process large portions of my ...
2
votes
0
answers
47
views
Working with units in emacs calc - unable to achieve expected result
I would like to calculate the following quantity:
sqrt{4kTR_S}
expressed in nV / sqrt{Hz}
(Incidentally, this site does not support math in the posts?)
In the above expression, k is Boltzmann's ...
2
votes
0
answers
279
views
Setting org-babel-load-languages in .dir-locals.el
As per the title, I'd like to set the org-babel-load-languages (to contain ditaa and calc languages) for a specific project only.
The only solution I found so far is this one
(
(org-mode .
...
1
vote
0
answers
23
views
How to assign and then use a variable in a list of algebraic equations
In a Calc algebraic expression I would like to do something like this:
[r := 3, 2 * r] =>
and get a result something like this:
[r := 3, 2 * r] =>[3, 6]
What I actually get is this:
[r := 3, 2 ...
1
vote
0
answers
24
views
using siunitx with calc latex-mode
I'm looking for a way to customize the LaTeX language mode in calc so that:3 m/s
gets displayed like
\SI{3}{\meter\per\second} instead of \frac{3 m}{s}. That would be very useful for yanking into a ...
1
vote
0
answers
983
views
Time-formatted output from org-table date- and time calculation?
I have an org-table for my timesheets. Part of it looks this:
| Start | End | End - Start |
| <2020-03-05 10:00> | <2020-03-05 Thu 14:30> | 0.1875 |
#+...
1
vote
0
answers
33
views
Calc vector mapping: shape of result
What determines the shape of the result of a vector mapping (V M)? I had thought it was directly based on the shape of the input, but have a look at this.
k f factors an integer, returning a vector ...
0
votes
0
answers
34
views
Calculate values in org-mode attributes?
Is there a package that lets you calculate values contained (for example) in #+attributes (or some other "variable"-like syntax)? I'm trying to avoid spreadsheets, because my list is ...
0
votes
0
answers
16
views
Rewrite rule changes order of expression
Let's say I have a rewrite rule
L(a + b) := L(a) + L(b)
when we apply this rule to rewrite L(x+y) the result is
L(y) + L(x)
but I would like it to give
L(x) + L(y),
i.e. to keep the same order of the ...
0
votes
1
answer
33
views
Solving set of equations with separate sides
In the calc, how can I solve set of equations where I have the two sides of the equations in separate stack entries? For example, the current stack looks like this:
2: [x, y, z]
1: [1, 2, 3]
(I ...
0
votes
0
answers
32
views
How can I use `utpt` in calc to compute a confidence interval?
I would like to use the "calc" package's utpt function to compute a confidence interval of a series of numbers in a calc vector.
Currently, I'm stuck at the very beginning, with a calc ...
0
votes
0
answers
29
views
Issues when calling vcount in orgtbl
This is a minimal orgtbl example with no problem:
|---|
| a |
| b |
|---|
| 2 |
#+TBLFM: @>$1=vcount(@<..@>>)
But if I insert some particular chars (dot, comma, ...) the result or vcount ...
0
votes
0
answers
166
views
How can I use calc to convert in orgmode table
I am trying to use calc convert in an org mode table.
The gnu manual suggests
$c/$1/$cm
So in my table I tried (for column formula
=$c/$1/$cm also tried =$1/$c/$cm, =$1/$m/$cm etc
Which produces #...
0
votes
0
answers
38
views
Horizontally stack two Nx1 matrices
In Calc I have two bidimensional, Nx1 matrices
' [1 2 3] RET v t RET
if I use the | command I get a 2Nx1 matrix (let's say a vertical stack)
and of course i could
' [1 2 3] RET RET | vt
to get ...
0
votes
0
answers
71
views
How to use emacs calc to grab all x:xx time form from range/buffer to calc the sum of the times?
I have a org-mode buffer full of the clock-ins & clock-outs and I want to sum the intervals which have the form of x:xx, like 0:13 in the following range:
* Tasks
** btc-admin
CLOCK: [2017-06-...