The 2024 Developer Survey results are live! See the results

# Questions tagged [calc]

Calculator mode: Calculator major mode.

102 questions
Filter by
Sorted by
Tagged with
26 views

### how to map/remap t < or t [ in calc?

In calc, t [ jumps to the beginning of the trail. But in a regular buffer, M-< jumps to the beginning. I'd like t < to do what t [ does now. How can I do that in a use-package :bind declaration? ...
• 655
20 views

### calc-expand function return nil in script mode

I would like to write a function that evaluates a polynomial (given by the list of its coefficients) for a given value of the variable. When the variable is in literal form, I would like the result to ...
• 2,253
35 views

• 2,253
556 views

### Complete a calculation ("2+3=...") inside a buffer

I have a calculation in my org-mode buffer: 7700*1/100 + 18000*2/100 I'm looking for the quicker way of completing it, and displaying it like this: 7700*1/100 + 18000*2/100 = 437 My current way of ...
• 523
517 views

### I can't get the most basic calc-mode gnuplot example to work

I would like to graph functions and datasets from calc-mode. (That's a reasonable thing to do in 2021, right?) Following the directions at Basic Graphics and Vectors as Lists, I started calc-mode, ...
• 97
121 views

### How to fill in a formula into adjacent cells in org-mode spreadsheet?

For example, in the following table |------------+------------+-----+-----+-----+-----+-----+-----+-----+-----| | Pobability | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | | Odds ...
• 1,395
218 views

### How to compute ln in Org-Mode spreadsheet

Is there a formula to compute the natural logarithm of a number in Org-Mode spreadsheet? For example, to compute ln(1), Excel or Calc formula is =ln(1), what would it be in Org-Mode? The result should ...
• 1,395
1 vote
131 views

### In Emacs Calc, how do I find the distance between two points (x1,y1) and (x2,y2)?

I'm trying to calculate the euclidean distance between two points (x1,y1) and (x2,y2) which is sqrt( (x2-x1)^2 + (y2-y1)^2 ) Is there a way to calculate this easily with Emacs calc? (I looked in the ...
• 288
167 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 #...
298 views

### org mode sum time from remote table with org-lookup-all

I have two tables #+NAME: tasks | name | spent | |--------+--------| | task 1 | | | task 2 | | | task 3 | | | task 4 | | | task 5 | | #+NAME: works | date ...
174 views

### How does if() work in org spreadsheets?

I got the impression from the manual that | a | | | b | | #+TBLFM: $2=if($-1==a, 1, 0) should produce "1" in the first row and "0" in the second. But instead I ...
709 views

• 535
1k views

### Specify precision using calc in org mode spreadsheets

According to the org mode documentation for calc syntax you can append printf formatters to specify the number of decimal places to display ‘$1+$2;%.2f’ Same, format result to two decimals. Is there a ...
• 556
149 views

### Is there a row-reduced echelon form for calc mode?

If i have the matrix [ [1, 3, -1, -1], [1, 5, -1, -4], [-3, 6, 2, 11] ] is there some RREF routine built in calc? Note, i don't want to write out of the equation with variables x,y,z and then use ...
• 137
100 views

### How to make quick-calc output a result rounded with just 1 digit precision—1/7 = 0.1, not 0.142857142857?

The title basically already says it all. Just one addition. I need quick-calc to act like that for just 2 times a week. Usually I prefer the standard 12 digit precision. I know how to achieve this ...
1 vote