"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "README" between
wcalc-2.4.1.tar.gz and wcalc-2.5.tar.gz

About: Wcalc is a natural-expression command-line calculator.

README  (wcalc-2.4.1):README  (wcalc-2.5)
Hello! Hello!
This is Wcalc 2.4.1! This is Wcalc 2.5!
1. What's New 1. What's New
2. Intro 2. Intro
3. Installation 3. Installation
4. License 4. License
5. Known Bugs 5. Known Bugs
6. Contact Info 6. Contact Info
************** **************
* What's New * * What's New *
************** **************
CHANGES: CHANGES:
- Removed official support for the GUI - Color support!
- Generic SI unit conversion!
IMPROVEMENTS: IMPROVEMENTS:
- Clarity and corrections in documentation - Improved documentation
- Flex/Lex handling improvements - Increased precision for e constant
- Better output (handling of print_ints, big/small numbers, etc.) - More robust prefs parsing
- More flexibility in building against GMP and MPFR - Prettier list output
- Modernize the source code file layout - Better detection of libreadline variants
- Print variable description in variable list - Support for newer versions of autotools
- Fix output reinterpretation for octal and binary with delimiters - Support for \assert command
- Use -u option to print list of available units - Automatic testing infrastructure (via `make check`)
BUGFIXES: BUGFIXES:
- Fix behavior with long HOME values - Fix 0 parsing bug (2.4.1 regression; thanks Arun Prakash Jana!)
- Avoid potential segfault in number display - Plugged memory leaks
- Fix 0-precision exponent calculation during display - Fixed segfault when parsing hierarchical expressions
- Fix display of large exponents - Fixed handling of Euler constant
- Don't use PATH_MAX
- Fix Debian bug 600255
- Fix \bits command
- Fix history filename handling
********* *********
* INTRO * * INTRO *
********* *********
Wcalc started as a project written for my C++ class at Ohio University (CS 240B) , way back on January 14th, 2000. I made it to be a "natural language" calculato r - in that it would successfully interpret any valid mathematical expression. A s you can imagine, being a beginner programmer, the code was rather heinous, to say the least! Wcalc started as a project written for my C++ class at Ohio University (CS 240B) , way back on January 14th, 2000. I made it to be a "natural language" calculato r - in that it would successfully interpret any valid mathematical expression. A s you can imagine, being a beginner programmer, the code was rather heinous, to say the least!
I reworked it after learning lex and yacc (powerful string parsing tools for C p rogrammers - if you're a C programmer and you don't know them... go google!) in November 2001. Then I thought to myself - I have MacOS X, the standard calculato r leaves something to be desired, and they say Cocoa programming is easy... what the heck, I'll give it a shot. Wcalc, the GUI version, turned out to be a prett y neat calculator. The GUI version, however, has been abandoned in favor of the CLI. I reworked it after learning lex and yacc (powerful string parsing tools for C p rogrammers - if you're a C programmer and you don't know them... go google!) in November 2001. Then I thought to myself - I have MacOS X, the standard calculato r leaves something to be desired, and they say Cocoa programming is easy... what the heck, I'll give it a shot. Wcalc, the GUI version, turned out to be a prett y neat calculator. The GUI version, however, has been abandoned in favor of the CLI.
Wcalc takes "expressions" and calculates the answer. My goal was to make the exp ressions relatively intutive - no reverse polish, or anything like that. So, by way of a record, here is what Wcalc can do: Wcalc takes "expressions" and calculates the answer. My goal was to make the exp ressions relatively intutive - no reverse polish, or anything like that. So, by way of a record, here is what Wcalc can do:
skipping to change at line 93 skipping to change at line 90
Wcalc has a few built-in constants: Wcalc has a few built-in constants:
e pi Na k Cc ec R G g Me Mp Mn Md u amu c h mu0 epsilon0 e pi Na k Cc ec R G g Me Mp Mn Md u amu c h mu0 epsilon0
muB muN b a0 F Vm NAk eV sigma alpha gamma re Kj Rk Rinf muB muN b a0 F Vm NAk eV sigma alpha gamma re Kj Rk Rinf
Eh Gf Mmu Mt Mh Malpha n0 c1 c2 G0 Phi0 K Eh Gf Mmu Mt Mh Malpha n0 c1 c2 G0 Phi0 K
random irandom rand irand random irandom rand irand
Wcalc supports user-defined variables. You define a variable like this: Wcalc supports user-defined variables. You define a variable like this:
mynewvariable=5 mynewvariable=5
Then you can use it in an expression like this: 1+3*mynewvariable/4 Then you can use it in an expression like this: 1+3*mynewvariable/4
You can also define "active" variables. In the GUI, just type an expression into the appropriate spot of the variable list. In the command-line, when you assign a variable, put it in single-quotes, like this: You can also define "active" variables. When you assign a variable, put it in si ngle-quotes, like this:
twicepreviousanswer='a * 2' twicepreviousanswer='a * 2'
In expressions, these work just like regular variables, except the value is calc ulated when it's used, not when it's defined. In expressions, these work just like regular variables, except the value is calc ulated when it's used, not when it's defined.
Some special notes about variables - two things are reserved: Some special notes about variables - two letters are reserved:
a - this variable represents the last answer, and may be used in expressions. a - this variable represents the last answer, and may be used in expressions.
q - this variable is reserved in the command-line version (it means quit), and c annot be used in expressions. q - this variable is reserved in the command-line version (it means quit), and c annot be used in expressions.
Also, built-in constants cannot be re-defined, although they are treated as vari ables in all other cases. Also, built-in constants cannot be re-defined, although they are treated as vari ables in all other cases.
********* *********
* Bases * * Bases *
********* *********
When you type a number into Wcalc, the number is normally assumed to be in decim al form. However, if the number has a prefix, it may be interpreted as a differe nt form number. Specifically: When you type a number into Wcalc, the number is normally assumed to be in decim al form. However, if the number has a prefix, it may be interpreted as a differe nt form number. Specifically:
skipping to change at line 122 skipping to change at line 119
This prefix affects only the number it prefixes, and none of the other numbers i n the expression. This prefix affects only the number it prefixes, and none of the other numbers i n the expression.
Answers are, by default, displayed in decimal form. This can be changed in the p references window - and display of the prefixes can be toggled in the preference s window as well. You can also change the display using the \hex, \oct, \bin, or \dec commands. Answers are, by default, displayed in decimal form. This can be changed in the p references window - and display of the prefixes can be toggled in the preference s window as well. You can also change the display using the \hex, \oct, \bin, or \dec commands.
You can, however, print a number in any base (without a prefix) by using the \ba se command. You can, however, print a number in any base (without a prefix) by using the \ba se command.
**************** ****************
* Installation * * Installation *
**************** ****************
Installing the regular (GUI) version of Wcalc is easy - copy it to your Applicat There are pre-built packages available for download for several Linux and BSD d
ions folder! To install the command-line version on OSX, use the .pkg file. istributions. Otherwise, the source for Wcalc is available on SourceForge from t
he Wcalc home page. Install as you would usually install from source. If you're
For people who may install and use Wcalc on other Unix systems, there are other really new to this sort of thing, there's some information in the INSTALL file.
packages available for download. The source for Wcalc is available on SourceForg
e from the Wcalc home page. Install as you would usually install from source. If
you're really new to this sort of thing, there's some information in the INSTAL
L file.
*********** ***********
* License * * License *
*********** ***********
Wcalc is made available under the GNU Public License (GPL), version 2, or (at Wcalc is made available under the GNU Public License (GPL), version 2, or (at
your option) any later version of that license. The full text of the License is your option) any later version of that license. The full text of the License is
in the file titled COPYING as distributed with the source, or is available in the file titled COPYING as distributed with the source, or is available
here: http://www.gnu.org/copyleft/gpl.html here: http://www.gnu.org/copyleft/gpl.html
 End of changes. 7 change blocks. 
28 lines changed or deleted 21 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS