Coder Social home page Coder Social logo

tcalc's Introduction


tCalc is a simple calculator written in core Tcl/Tk.


Features

  • On Top
  • History
  • Editable entry
  • Resizable Buttons
  • Full Tcl math support
  • Command Line support
  • Customizable precision
  • Runs in GNU/Linux, Microsoft Windows and Unix (MacOS not tested)

Constants & Functions

Constants Description
c() speed of light
G() gravitational constant
g() gravity acceleration
e()
pi() π
phi() φ
Generic Description Altenative
inv(x) inverse x 1/x
sqrt(x) x
pow(x,y) xy x**y
fmod(x,y) remainder of x/y x%y
hypot(a,b) hypotenuse
quadf(a,b,c) quadratic formula
abs(x) |x|
exp(x) ex
factorial(x) x!
ln(x) ln(x)
log(x) log10(x) log10(x)
logb(base,x) logbase(x)
am(a,b,..) arithmetic mean avg(a,b,..)
gm(a,b,..) geometric mean
hm(a,b,..) harmonic mean
qm(a,b,..) quadratic mean rms(a,b,..)
round(x) nearest integer
ceil(x) next smallest integer
floor(x) previous largest integer
min(x,y,..) smallest number
max(x,y,..) greatest number
median(x,y,..) median number
fib(x) fibonacci number
Trigonometric Description Type
sind(x) sine degrees
cosd(x) cosine degrees
tand(x) tangent degrees
asind(x) arc sine degrees
acosd(x) arc cosine degrees
atand(x) arc tangent degrees
sin(x) sine radians
cos(x) cosine radians
tan(x) tangent radians
asin(x) arc sine radians
acos(x) arc cosine radians
atan(x) arc tangent radians
sinh(x) hyperbolic sine radians
cosh(x) hyperbolic cosine radians
tanh(x) hyperbolic tangent radians
Economy Description
interest(capital,interest,period) calculate simple ROI
cinterest(capital,interest,period) calculate compound ROI
Date/Time Description
days(x,y) calculate days
format: %d%m%Y
hours(x,y) calculate hours
format: %H%M
dec2deg(x,y) decimals to degrees
Convert Description
c2f(x) Celcius to Fahrenheit
f2c(x) Fahrenheit to Celcius
c2k(x) Celcius to Kelvin
k2c(x) Kelvin to Celcius
inch2cm(x) inches to centimeters
cm2inch(x) centimeters to inches
yd2m(x) yards to meters
m2yd(x) meters to yards
ft2m(x) feet to meters
m2ft(x) meters to feet
mi2km(x) miles to kilometers
km2mi(x) kilometers to miles
btu2watt(x) BTU to Watt
watt2btu(x) Watt to BTU

Screenshot

Screenshot


Dependencies

Tcl version 8.6 or later.

Tk version 8.6 or later.

For Microsoft Windows users:

ActiveTcl version 8.6 or later.

For executables go to Releases section, or download the latest.

To run it, after download, right-click->Properties->Unblock.


License

tEdit is licensed under the MIT License.

Read LICENSE for details.


tcalc's People

Contributors

thanoulis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

tcalc's Issues

What about ln ?

Why not ln() instead of log()

and keeping log() == log10()

?

providing the three writings : ln() / log() and also log10()

Typo : 3 / F3

proc tCalc::Bindings {}

bind all <3>
should be
bind all
??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.