- Cal2X By Jonghyeon -
2007.06.10. Release
Cal2X is simple calculator for GP2X.
Contact : elfrog@naver.com

-------------------------------------------------------
---- Cal2X Manual -------------------------------------
-------------------------------------------------------
0. Roles of Each Buttons
1. Common Calculations
2. Converting Notation
3. Functions
4. Sigma Sum
5. Integral calculus and Differential
6. Graph
7. History
-------------------------------------------------------

0. Roles of Each Buttons
  You can input expressions quickly as you remember some of belows.

  A : +
  B : *
  Y : /
  X : -
  L : (
  R : )

  TAT : Calculate
  Start : Push menu button
  Joystick : Move menu
  Vol- : Move cursor left
  Vol+ : Move cursor right
  Vol- + Vol+ : Shift

  Select + Joystick : Numbers
  Select + Vol- : Number 0
  Select + Vol+ : Point .
  Select + R : show imaginary number
  Select + L : Delete
  Select + TAT : Number 5

1. Common calculations
  It's very easy. If you want to calculate '27*3', just put the expression '27*3'. The number bigger than eighteen ciphers will display as scientific notation.
  You can calculate complex number now such as (1+i)/(3+2i). Complex number calculation in Cal2X math function is supported. (ex: sin(1+i)) conj button make conjugate complex number, sign is '~'. (ex: ~(1+3i) = 1-3i) To see imaginary number from answer, push Select + R buttons simultaneously.
  Remainder sign is '|'. The left number of '|' is a dividend, and right is a divisor. (ex: 5|3 = 2)
  Factorial includes gamma function, x! = gamma(x+1). Since Cal2X uses a table for gamma function, you may spot graph of 'x!' exhbits poor especially in minus axis.
  Comma ',' works partition of each factors and also partition of each expressions as "j=1,j*2". Postfixed expressoins such as 1,2+ can be calculated because of the answers pushed to stack.

2. Converting Notation
  Natural number, only cal2x can convert to other notation. Once answer shows, push BIN for binary notation or HEX for hexadecimal. It also doesn't show result when bigger than eighteen ciphers.

3. Functions
  To use mathematical functions, bracket '()' must follow. (ex: sin(1)) Cal2X uses radian system instead of degree. But you can convert radian to degree putting '(degree, visible when shift button pushed) very next number. (ex: sin(90') = 1) 
  The function 'sqrx' has a form of 'sqrx(exponent, number)'. (ex: sqrx(2, 3) = 1.732...) All of math functions of Cal2X can calculate complex number.

4. Sigma Sum
  Sigma sum means continuously calculate the sequence and adding them all. First factor is where the number starts(determine), and next is where it stops(condition), and the sequence. Below are primary examples. Sigma sum somewhat resembles both of while(), for(;;) in C. 
  	sum(1,10,2) = 20
	sum(i=1,i==10,i) = 55
	sum(i=1,i>9,i^2) = 385
	sum(i=1,10,sum(j=i,10,j*i)) = 1705
  Calculating sum of sequence, sum loops infinitely until the condition matches. So Cal2X ceases sum loops and sends an error message when the loops exceed one million.

5. Integral calculus and Differential
  To do integral calculation, make expression that first and second factor mean scope to calculate, and third factor means expression. (ex: integral(0,3,x^2) = 9) You also can do differential calculation, of which first factor means the number to calculate, and expressoin. (ex: d/dx(2,x^2) = 4) Accuracy is down to four places.

6. Graph
  To draw graph, the expression you want to graph have to contain the unknown number 'x'. And select 'a cubic curve shaped' menu, then very beautiful curve may exhibit if there are no errors. 
  In graph mode, first menu means moving the graph. To move graph, you maintain pushing the first menu and take joystick. Next menu looks like magnifier, they have very the function to zoom in and zoom out the graph. 1:1 menu is to move initial position. And to save screen of the graph, push SCR menu. It'll save the graph to bitmap file as '/save/scr_.bmp'.
  On the graph, a number at Y axis means end point in screen of Y axis and vice versa. The number locating bottom right means central position of graph.
  You can select the coordinate system between Orthogonal, Polar, Complex on conf menu, and also can choose colors of graph. Orthogonal coordinate is f(x)=y graph. In polar graph, x means angle and the result of expression is the length 'r'. Complex coordnate adds one more axis that designates color. x is complex number from each points. And real number of the answer means wave length, and imaginary number brightness. Real number is 0 to 1 that means 400 to 700nm. And in imaginary number, 0 means no light(black) and 1 means very bright(white). But it is very slow to calculate the complex coordinate system because of my poor technique. More over, Cal2X draw complex graph just half so quality is low.

7. History
  2007.06.10. 
    - Complex Number supported
    - Integral and differental calculation
    - Polar and Complex coordinate
    - Some errors in bracket detected and fixed
    - omission of multiply
    - Select + L button works left delete.
  2007.06.06. 
    - remove infinite loop in sum(,,)
    - add logx
    - add radian to degree
    - change sign of mod to '|'
    - use gamma function table at factorial
  2007.06.03. Fisrt Released

-------------------------------------------------------