Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 14046

Calculator mode: Calculator major mode.

5 votes
Accepted

Why is the vsum of remote cells wrong in org tables?

The argument of vsum has to be a vector, so use vsum([remote(TableA, @I$>), remote([TableB, @I$>)]) instead of vsum(remote(TableA, @I$>), remote(TableB, @I$>)). Bonus From your Org document, you can e …
gigiair's user avatar
  • 2,273
3 votes
Accepted

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

The calc-abs (A) function returns the absolute value of a complex number or the Euclidean norm of a vector. …
gigiair's user avatar
  • 2,273
3 votes
Accepted

Gnu CALC: vector/matrix concatenation in horizontal axis?

. ;; Original keys: v t TAB v t TAB | Command: last-kbd-macro Key: none Macro: v t ;; calc-transpose TAB ;; calc-roll-down v t ;; calc-transpose TAB ;; calc-roll-down … | ;; calc-concat …
gigiair's user avatar
  • 2,273
1 vote

How to compute ln in Org-Mode spreadsheet

You can either use the calc syntax or the elisp syntax. | x | calc syntax | elisp syntax | |---+-------------+--------------| | 1 | 0 | 0.0000 | | 2 | 0.6931 | 0.6931 | #+TBLFM … (plist-put org-calc-default-modes 'calc-language 'latex) (plist-put org-calc-default-modes 'calc-symbolic-mode t) | x | calc syntax | elisp syntax | | |---+-------------+--------------+---| | 1 | 0 …
gigiair's user avatar
  • 2,273
1 vote
Accepted

Is it possible to force calc to use the rules of ordinary algebraic calculus when the langua...

I evaluated the following form: (put 'latex' math-oper-table (math-standard-ops)) then this one which evaluates the desired value: (let ((calc-language 'latex))(calc-eval "1/2 + 1/4")); =>\frac{3} … To enable it by default, I put: (with-eval-after-load 'calc-lang (put 'latex' math-oper-table (math-standard-ops))) in my init file. …
gigiair's user avatar
  • 2,273
1 vote

How do I convert a `matrix` in one form to a `matrix` in another form (like `bmatrix` enviro...

I suggest you use Calc. You can set language mode to latex, temporarily by opening a Calc session, or permanently by saving the configuration in the calc.el file. … Enable calc-embedded when the point is on this formula [1,2,3\\4,5,6\\7,8,9] results in \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix} You must exit calc-embedded-mode to continue …
gigiair's user avatar
  • 2,273
1 vote

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

The expression to be evaluated must be a region containing an expression valid for the syntax of calc. … (defun evaluate-in-line (beg end) "Evaluates the math expression from the region with calc syntax. The expression can be ended with => or not." …
gigiair's user avatar
  • 2,273
1 vote
Accepted

How to round on 2 decimals in org mode table using elisp?

You can use this function (defun %.2f(x) "..." (/(round(*100x))100.0)) (%.2f 6.7690001) => 6.77 I'm not sure that the choice of the name of my function is so judicious...
gigiair's user avatar
  • 2,273
0 votes
Accepted

is it possible to have a "calc embedded" indicator in doom-modeline?

Actually, there was an icon to indicate calc-embedded mode, but in the form of an inaudible Unicode character. … I installed the all-the-icons font from M-x all-the-icons-install-fonts and since then I have an icon indicating that I am in calc-embedded mode. …
gigiair's user avatar
  • 2,273