uCalc Console Calculator 1.0
www.ucalc.com

uCalc Console Calculator is a powerful calculator with a simple console
interface.  It uses the same parser/language builder engine as other uCalc
products.  The code that represents the math "language" used in this
calculator can be mostly found in uCalc.uc and dependent files, which are
in the zip files for some of the other uCalc products.  Some additional code
beyond uCalc.uc was added to the executable for the Solve() and Sum() functions.
Those two are based on code found in the demo for uCalc Fast Math Parser.
There is also some code for implied variable definition (so you don't have to
explicitly declare variables before use), based somewhat on the error handler in
Basic.uc.  The uCalc(), uCalcStr(), and uCalcVoid() functions are used in the
construction of the calculator but are de-activated, and are made unavailable
to the end-user of this calculator.

Here are some things you can enter at the command line:

5-4*(7.25+2.75)

Solve(x^2 + 50 = 150)

Solve(x^2 + 50 = 150, -1000, 0)

Sum(x^2 + 25, 1, 50)

n = 25

n*2+10

g(x) = x - 1

Factorial(x) = IIf(x>1, x*Factorial(x-1), 1)

Factorial(g(12) - 5) + 10

TriangleWave(x) = (8/pi^2)*Sum((-1)^((n-1)/2)/(n^2)*Sin(n*x), 1, 100, 2, n)

#Def Const: Tab As String = Chr(9)

uc_For(x, 1, 10, 0.25, WriteLn(Str(x) + Tab*4 + Str(TriangleWave(x))))

#Def Func: Area(Length, Width) = Length * Width
#Def Func: Area(side) = side ^ 2

Area(5, 10) + Area(3)

#B11011111 OR #B10111001

#H1EFF + 25

"Hello " * 3

Rand(25, 100)

Max(1,5+4, 3+2, 89.7, 123/7, -5, 17.5)

#Def Var: UserName As String

UserName = "John"

UpperCase("Hello " + UserName)
