CONCALC(1)
๐ CONCALC โ console calculator ๐
okay bestie, gather round, because this is the manual page for concalc, the little console calculator that lives in your terminal and does so much more than you'd expect. it's part of the User Commands crew, and it is, genuinely, iconic. ๐งฎโจ
โจ NAME โจ
concalc โ console calculator ๐
๐ธ SYNOPSIS ๐ธ
concalc [options] "expression"
concalc -m script "path"
๐ฆ DESCRIPTION ๐ฆ
so basically, concalc takes the input term you give it, does the math, and hands you back the result as text. simple. slay.
but listen: quote your expression, because otherwise the shell interpretor is gonna have problems with it. ๐ fr, protect your expression.
and if you hand concalc more than one expression? it doesn't get confused, it just puts all of them together. teamwork, periodt. ๐
๐ฅ CALCULATION SYNTAX ๐ฅ
standard calculations
2*(3+4/9)^3
standard operations
+ - * / ^ % sin cos tan asin acos atan sinh cosh tanh asinh acosh
atanh ln log & | ! && || ~ >> << x rnd sqrt curt root integ d/dx
square root and cubic root
sqrt12 curt8
trigonometric functions and logarithms
sin3.64+ln5
other roots
fourth root of nine:
4root9
differential calculation
differential calculation of 2x^2-3x+3 at x=9:
d/dx(2x^2-3x+3,9)
integration
integration of sinx+cosx between -1 and 3.2:
integ(sinx+cosx,-1,3.2)
set variables
save the result of a calculation in variable A:
12*45/2->A
recall variables
multiply the saved value with 2:
A*2
use last result
the last result is saved in the answer memory:
ans+1
โญ CONSTANTS โญ
eโ euler constantpiโ pi; example:sin(pi/2)
๐ NUMBERS ๐
standard
12.34
with exponent
12.23e-5
complex
12i-5
๐ OPTIONS ๐
-o,--output[output length] โ the argument is a number between 2 and the maximal possible output length (normally 18). like, don't be greedy, bestie.-m,--mode[calculator mode] โ the mode can bestd(default, normal scientific calculatons),base(for logic functions and base-n calculatons) orscript(for executing scripts). in scripting mode, the last argument must be the path to the script file. pick your era. ๐-c,--complexโ this option enables complex numbers for the calculation. they are switched off by default, so you gotta opt in.-b,--base[calculator base] โ the argument must be one ofhex(hexadecimal),dec(decimal, default),oct(octal) andbin(binary). this option can only be used when-m baseis set. ๐-a,--angle[angle type] โ the argument must be one ofdeg(degrees),rad(radiant),gra(grade).-v,--versionโ output the version of Concalc. iykyk.-h,--helpโ outputs a short help. your little cheat sheet. ๐
๐ SCRIPTING ๐
the script interpreter of calc uses a C-like programming syntax. the following command are supported. yes, we're coding now, main character energy activated. โจ
if expression
if(condition)
command for condition true;
else command for condition false;
while loop
while(condition)
command that is run while condition is true;
for loop
for(initialisation; condition; count-command)
command that is run while condition is true;
print command
print( output to print out );
getline command
getline; // read a text line from stdin and returns this text
getkey command
getkey; // return the key pressed by the user
// blocks until the user presses any key
keystate command
keystate; // returns the key pressed by the user or 0 if no key was pressed
// nonblocking
sleep command
sleep( time in microseconds ); //Script is stops for the given time
compare operators
==, !=โ equal, unequal>=, <=, >, <โ greather or equal, less or equal, greather, less
set operators
->โ calculator set operator=โ C-like set operator
type converting
(float)โ floating point value(int)โ integer value(string)โ text value(bool)โ boolean value
๐ BUGS ๐
No bugs known! ๐
If you find one, please report it by e-mail to the author.
not me manifesting a bug-free life. but fr, if you catch one, email the author, don't just vibe with it. ๐
๐ซถ AUTHOR ๐ซถ
Rainer Strobel <rainer1223@users.sourceforge.net>
๐ SEE ALSO ๐
http://extcalc-linux.sourceforge.net
and that's the whole page, bestie! ๐ this was the Linux version, dated APRIL 2007 โ yeah, vintage, but the math still eats. go calculate something cute. ๐๐ง๐
๐ฆ where this page comes from
- debian trixie: concalc 0.9.3-1
- ubuntu questing: concalc 0.9.3-1
- ubuntu resolute: concalc 0.9.3-2
- ubuntu stonking: concalc 0.9.3-2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms