Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Dc (computer program)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Cross-platform reverse-Polish calculator program}} {{lowercase|title=dc (Unix)}} {{Infobox software | name = dc | logo = | screenshot = | screenshot size = | caption = | author = [[Lorinda Cherry]], [[Robert Morris (cryptographer)|Robert Morris]]<br />([[AT&T Bell Laboratories]]) | developer = Various [[open-source software|open-source]] and [[commercial software|commercial]] developers | released = | latest release version = | latest release date = | programming language = [[B (programming language)|B]] | operating system = [[Unix]], [[Unix-like]], [[Plan 9 from Bell Labs|Plan 9]] | platform = [[Cross-platform]] | genre = [[Command (computing)|Command]] | license = | website = }} '''dc''' (''desk calculator'') is a [[cross-platform]] [[reverse Polish notation|reverse-Polish]] calculator which supports [[arbitrary-precision arithmetic]].<ref>{{man|1|dc|die.net|an arbitrary precision calculator}}</ref> It was written by [[Lorinda Cherry]] and [[Robert Morris (cryptographer)|Robert Morris]] at [[Bell Labs]].<ref name="reader" /> It is one of the oldest [[Unix]] utilities, preceding even the invention of the [[C (programming language)|C programming language]]. Like other utilities of that vintage, it has a powerful set of features but terse syntax.<ref>{{cite web |url=http://plan9.bell-labs.com/7thEdMan/vol2/dc |title=The sources for the manual page for 7th Edition Unix dc |access-date=2004-06-23 |archive-date=2004-08-23 |archive-url=https://web.archive.org/web/20040823221918/http://plan9.bell-labs.com/7thEdMan/vol2/dc |url-status=dead }}</ref><ref>{{cite web |author=Ritchie, Dennis M. |date=Sep 1979 |url=http://cm.bell-labs.com/cm/cs/who/dmr/hist.html |title=The Evolution of the Unix Timesharing System |url-status=dead |archive-url=http://webarchive.loc.gov/all/20100506231949/http://cm.bell-labs.com/cm/cs/who/dmr/hist.html |archive-date=2010-05-06 }}</ref> Traditionally, the [[bc (programming language)|bc]] calculator program (with [[infix notation]]) was implemented on top of dc, now the implementation of GNU dc bases on bc.<ref>{{cite web |url=https://www.gnu.org/software/bc/ |title=GNU bc |access-date=2025-01-25 }}</ref> This article provides some examples in an attempt to give a general flavour of the language; for a complete list of commands and syntax, one should consult the [[man page]] for one's specific implementation.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)