Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Science and Engineering > Mathematics

    tcalc 0.11

    Download button

    No screenshots available
    Downloads: 481  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.4/5)
    18 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Thomas Link | More programs
    GPL / FREE
    April 17th, 2008, 10:12 GMT
    ROOT / Science and Engineering / Mathematics

     Read user reviews (0)  Refer to a friend  Subscribe

    tcalc description

    tcalc is a small Ruby-based RPN-calculator.

    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



    Product's homepage

      


    TAGS:

    RPN calculator | Vim plugin | ruby script | RPN | Ruby | mathematics

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM