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 2221

Calculator mode: Calculator major mode.

3 votes

Define a function in Calc (Embedded)

This probably won't be very satisfying but you can use the anonymous function syntax and call the function with the call function: f := <x : 2 x> call(f, 7) => 14 (Sadly f(7) doesn't work.)
Omar's user avatar
  • 4,852
8 votes
Accepted

Can I use calc-eval to solve an equation?

Yes, for example: (calc-eval "solve([x+y=3, x-y=1], [x,y])") evaluates to: "[x = 2, y = 1]" You might find it more comfortable to use a calc-mode buffer than running calc-eval in the scratch buffer …
Omar's user avatar
  • 4,852
5 votes
Accepted

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

--- so I'll include the source here too: ;;; -*- lexical-binding: t; -*- ;; contents of calc-rref.el (require 'calc-mtx) (defun calc-rref (arg) "Compute the reduce row echelon form of a matrix" ( … #'calc-rref) (provide 'calc-rref) …
Omar's user avatar
  • 4,852