bc & dc
bc
dan dc
2 kalkulator yang sering saya gunakan ketika membutuhkan akses dari terminal.
Contohnya
$ bc
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
Kemudian Anda dapat mengetik pertanyaan Anda:
2
2
5+5
10
Setelah selesai, Anda bisa keluar dengan tanda Ctrl+ C.
Uji jalan
Kalkulator ini kaya fitur.
scaling
scale=5
193 * 1/3
64.33333
persamaan
principal=100
ir = 0.05
years = 5
futurevalue = principal * (1 + ir)^years
futurevalue
127.62800
contoh anda
8*6-4
44
8*(6-4)
16
kalk
Jika Anda menginginkan sesuatu yang sedikit lebih interaktif, ada calc
.
Contoh
$ calc
C-style arbitrary precision calculator (version 2.12.4.4)
Calc is open software. For license details type: help copyright
[Type "exit" to exit, or "help" for help.]
; 10+10
20
; 8*6-4
44
; 8*(6-4)
16
;
Anda dapat menggunakan panah atas / bawah untuk menelusuri perintah sebelumnya dan juga memiliki bantuan interaktif.
; help
Memberi Anda ini:
For more information while running calc, type help followed by one of the
following topics:
topic description
----- -----------
intro introduction to calc
overview overview of calc
help this file
assoc using associations
builtin builtin functions
command top level commands
config configuration parameters
custom information about the custom builtin interface
define how to define functions
environment how environment variables effect calc
errorcodes calc generated error codes
expression expression sequences
file using files
history command history
interrupt how interrupts are handled
list using lists
mat using matrices
...
Referensi