Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Adrià Arrufat edited this pageJun 15, 2023 ·3 revisions

Qalculate! is a multipurpose cross-platform desktop calculator.It is simple to use but provides power and versatility normally reserved for complicated math packages, as well as useful tools for everyday needs (such as currency conversion and percent calculation).Features include a large library of customizable functions, unit calculations and conversion, physical constants, symbolic calculations (including integrals and equations), arbitrary precision, uncertainty propagation, interval arithmetic, plotting, and a user-friendly interface (GTK, Qt and CLI).

Creating a quick math prompt

It can be integrated into Kakoune as a drop-in replacement ofbc for a math prompt:

mapglobal normal =': prompt math: %{exec "a%val{text}<lt>esc>|qalc -t +u8 -f -<lt>ret>"}<ret>'

Defining a command with autocompletion

We can also define a command that will perform computations and display the results on the status bar like this:

define-command qalc -docstring"compute equation with Qalculate!" -params .. %{echo%sh{qalc${@}}}

Qalculate has many built-in functions and variables, we can improve theqalc command by generating autocomplete suggestions:

complete-command qalc shell-script-candidates %{    {echo $(qalc +u8 --list-functions | head -n -3);echo $(qalc +u8 --list-variables | head -n -3); } | tr'''\n' | sort -u}
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp