• Home
  • Popular Downloads
  • Contact Us
  • Submit

Softpile

Free Downloads

Main Navigation
  • Home
  • Windows
  • Mac OS X
  • Business
  • Desktop
  • Development
  • Education
  • Games
  • Internet
  • Multimedia
  • Utilities
Home » Linux » tcalc

tcalc

April 17, 2008
tcalc is a small Ruby-based RPN-calculator.
Version: 0.11
License: GPL
Operating System: Linux
Homepage: www.vim.org
Developed by: Thomas Link
tcalc is a small Ruby-based RPN-calculator. It turns out that Ruby is pretty good at maths and deals well with complex or rational numbers etc. Anyway, in certain occasions a postfix syntax and a stack are better suited for calculations than ruby's infix syntax. So, here comes ...

:TCalc[!]

A small ruby-based RPN-calculator, a simple ASCII function plotter, and stack-based playground.

The tcalc.rb script can also be used as a stand-alone calculator (with optional support for curses and readline). Run "tcalc --help" for information on the command-line options.

Input:

Numbers (anything that starts with "-" or a decimal)
Strings (anything that matches /^"(.*?)"$/)

Be aware that the strings and numbers get evaluated by ruby.
You can thus execute ruby code by input like: -1;p'foo'

Methods & constants of the following classes are available:
· Float
· Complex
· Rational
· Integer
· Matrix
· Vector
· Math
· #N (pull the item at position N to the top)

Commands: COMMAND[COUNT][,ARGUMENT]
If COUNT is "#", the top element will be used.
Enter, escape => exit

Tokens are separated by blanks (à la forth). The blanks between the words thus are significant.

Requirements:

· Vim
· Ruby

INSTALLATION:

As VIM-plugin:
Extract the archive's contents to ~/vimfiles (or ~/.vim).

Stand-alone ruby script:
Copy the file ruby/tcalc.rb to your path (you could also rename it to tcalc).

What's New in This Release:

· New words: all?, any?, array_*, and, or, !=
· Curses frontend: Show possible completions; map 127 to backspace, F1
· to 'ls'; improved handling of cursor keys etc.
· Debugger (sort of)
· FIX: Nested blocks & more
mathematics rpn rpn calculator ruby ruby script vim plugin
Free Download 23K
0
  • Share on:

tcalc User Reviews

Sponsored

Categories

  • Linux

Related Downloads

Qalculate! Currency
Qalculate! is a multi-purpose desktop calculator for GNU/Linux.
Draco
Draco is an open-source econometric solution.
rand
Random number generator
VFGEN
VFGEN is a Vector Field File Generator for differential equation solvers and ...
Peklo
Peklo is a graph editor and an environment for visualizing and comparing ...
Copyright © 1999-2017 Softpile Free Downloads
  • Contact Us
  • Submit
  • Privacy Policy
  • Disclaimer
  • Terms of Use