home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / CHIPCD_2_2000.iso / software / shareware / textcalc / data1.cab / Program_Executable_Files / Help.txt < prev    next >
Text File  |  1999-10-31  |  10KB  |  326 lines

  1. //[Quick Start]
  2. A basic concept in TextCalc is to first "select" an expression
  3. or a block of data and then "apply" an operation to it.
  4.  
  5. //Computing Expressions
  6. //---------------------
  7. For example, to compute an expression, place the cursor 
  8. on the blue line below and press F1 or click the 
  9. "Compute Expression" button.
  10.  
  11. 5+3-7+8
  12.  
  13. To compute multiple expressions at once, select the following 
  14. block of text and press F1 or the "Compute Expression" button.
  15.  
  16. 72*32
  17. 8*9+43-10
  18. (3+2)*4/2*sin(3.141592653589793/6) 
  19. -2*3+4
  20. 4^2
  21. 5+3/2+1
  22. sqrt(sqr(3)+sqr(4))
  23.  
  24. To remove the results after evaluation, press CTRL-Z 
  25. or select Edit:Undo from the menu. For a list of functions 
  26. and operators supported, please see the section
  27. "Functions supported" below.
  28.  
  29.  
  30. //Summing numbers
  31. //---------------
  32. To sum the list of numbers below, place the cursor
  33. of the line and press F12 or click the "Sum" button.
  34. All numbers (in blue color) on the line will be summed.
  35.  
  36. 3 5 -4 3 21 281 43 43 54 32 54 543  
  37.  
  38. You can also sum a selection. Select the block of text
  39. below,  including the non-numeric words in black, and 
  40. click "Sum".
  41.  
  42. Salary : $2700.3
  43. Interest  :  $140.3
  44. Mantainence : $312.2
  45.  
  46.  
  47. As you can see, only numbers (colored in blue) will be added. 
  48. This operation applies not only to "Sum" but also to other
  49. statistical functions like
  50. Average, Count Items, Sum of Squares, Root mean squares,
  51. Median, Find max and min values, Mean Deviation from Mean,
  52. Standard Deviation and Variance. All these can be accessed
  53. from the "Calculate" menu.
  54.  
  55.  
  56. //Applying Numbers
  57. //----------------
  58. You can apply an expression to a list of numbers easily.
  59. To convert the following from kg to pounds, select the block 
  60. of text below and press F11 or click the "Apply Numbers" button. 
  61. A dialog will appears. To multiply each of the following
  62. by 2.2 (1Kg = 2.2 pounds), enter 2.2 into the 
  63. "Multiply by factor" textbox and press the "OK" button.
  64.  
  65. Sugar 1.2    Salt 7.3
  66. Milk  4.2    Honey 8.8
  67. Flour 3.4    
  68.  
  69. In the Apply Dialog, apart from "Multiply by factor", you can
  70. also "Add a value" or "Apply Expression" to each number. 
  71.  
  72. The "Apply Expression" option is very powerful, you can type any
  73. expression to evaluate every number in the list. For example,
  74. to compute the squareroot of each number in the list below,
  75. place the cursor on the blue line and press F11. Select 
  76. "Apply Expression", and in the textbox, type sqrt(x) 
  77.  
  78. (Note: x is the variable that represent the original number 
  79. in the list you selected.)
  80.  
  81. and click the "OK" button in the dialog box.
  82.  
  83. 4 9 16 25 36 49 64 81
  84.  
  85. When applying numbers, you have the option to 
  86. 1)let results replace the original data   or
  87. 2)insert results next to the original data.
  88.  
  89.  
  90. //Formating Numbers
  91. //-----------------
  92. The operation for formatting of numbers is the same as applying
  93. numbers. For example to add a dollar sign before each number
  94. below, select the block of text and choose 
  95. "Calculate:Format Numbers" from the menu. A dialog will appear.
  96. Enter the $ (dollar sign) in the textbox next to "prefix" and
  97. click the "OK" button. 
  98.  
  99. Sugar 1.2    Salt 7.3
  100. Milk  4.2    Honey 8.8
  101. Flour 3.4    
  102.  
  103. When formatting numbers, you can set the "prefix", "suffix"
  104. and the "number of digits after decimal point" for each number 
  105. you selected.
  106.  
  107.  
  108. //Extracting numbers
  109. //------------------
  110. The operation for extracting numbers is the same as applying
  111. numbers. Simply select the data and choose 
  112. "Calculate:Extract Numbers" from the menu. 
  113. All numbers (colored in blue) in the selecton will be extracted.
  114.  
  115.  
  116. //Hex, Dec and Oct Conversions
  117. //----------------------------
  118. Hex, Dec and Oct conversions is very similar to applying 
  119. numbers. As usual, you can select a single line by placing
  120. the cursor on the line or select a block of text if
  121. data is more than one line. 
  122.  
  123. While the "Sum" or "Apply Numbers" operations will 
  124. automatically seek out the numbers that are colored in blue,
  125. Hex, Dec and Oct indentify the objects for conversion using
  126. separators. 
  127.  
  128. A separator is any character that separates a word. For example
  129. the space separates 22 33 44 55, while the comma separates 
  130. 88,99,43,23,77. The default separator for conversion
  131. is whitespace (space, tab  and newline).
  132.  
  133. For example, to convert the following hex numbers to decimal,
  134. place the cursor on the line below and click the "DEC" button.
  135.  
  136. 3F 12 1A 323 25 bC ee
  137.  
  138. To convert from decimal to hex, select the block below
  139. and click the "HEX" button.
  140.  
  141. 12
  142. 10
  143. 5
  144. 21 34
  145. 77
  146. 88
  147.  
  148. Other conversions from dec to oct, oct to dec, hex to oct,
  149. oct to hex (accessible from the "Conversion" menu) 
  150. uses the same method for conversion. 
  151.  
  152. If you need to use other separators to separate each number 
  153. for conversion, you can choose "Calculate:Computing Options"
  154. from the menu. A dialog will appear. 
  155.  
  156. Under the "Hex/Dec/Oct Conversion Options", select the
  157. "any of the characters" checkbox. Enter , (comma) as the 
  158. separator in the textbox next to "any of the characters".
  159. Click "OK". From now on, you can convert any line with comma
  160. as the separator. For an example, test the following line
  161. by converting it from hex into decimal. Place the cursor 
  162. on the line below and click the "DEC" button.
  163.  
  164. 3F,12,1A,323,25,bC,ee,C
  165.  
  166.  
  167. //Text Functions
  168. //--------------
  169. Apart from performing calculation, TextCalc also offers some
  170. useful text utility functions. You can add a word to
  171. the beginning of every line by using "Add First Word".
  172. For example, select the block of text below, then choose 
  173. "Text:Add First Word" from the menu. Click "OK" when a
  174. dialog appears.
  175.  
  176. Hello World!
  177. ABCDEFG HIJKLMNOP
  178. 1 3 5 7 9 11 13
  179. Good Morning! Good Night!
  180.  
  181.  
  182. Other text operations include
  183. "Add Last Word" :  Add a word to the end of each line.
  184. "Remove First Word" : Remove the first word of each line.
  185. "Remove Last Word" : Remove the last word of each line.
  186. "Keep First Word" : Keep only the first word of each line. 
  187. "Keep Last Word" : Keep only the last word of each line.
  188. "Make Into One Line" : Make selection into one long single line.
  189.  
  190.  
  191.  
  192. //TextCalc Advantages
  193. //-------------------
  194. TextCalc, being both a Calculator and a Text Editor,
  195. and has several advantages over conventional calculators.
  196.  
  197. 1)You can put comments besides your answer
  198. and expressions. 
  199. 2)You can save and reuse your results and expressions. 
  200. 3)You do not need to write your answer down on a paper
  201. before computing another expression, as you can leave 
  202. the previous result in the editor.
  203. 4)You can open an existing text data file 
  204. and perform calculations on it.
  205. 5)You can apply an expression to many numbers at one go.
  206. For example, 1 2 3 4 5 will be changed to 2 4 6 8 10.
  207. 6)You can sum, average, convert into hex etc. a list of 
  208. numbers easily.
  209.  
  210.  
  211.  
  212. //Math Functions supported in TextCalc
  213. //------------------------------------
  214. These functions are supported in TextCalc:
  215. ( )   Brackets, indicates high precedence sub-expressions
  216. ^     To the power of
  217. *     Multiplication
  218. /     Division
  219. +     Addition
  220. -     Subtraction
  221.  
  222. sin   Sine       //e.g sin(3.14159)   arguments are in radians
  223. cos   Cosine     //e.g cos(3.14159)   arguments are in radians
  224. tan   Tangent    //e.g tan(3.14159)   arguments are in radians
  225. sinh  Hyperbolic sine     //e.g sinh(1)
  226. cosh  Hyperbolic cosine   //e.g cosh(1)
  227. tanh  Hyperbolic tangent  //e.g tanh(2)
  228. asin  Arcsine              //e.g acos(1)      results is in radians
  229. acos  Arccosine              //e.g acos(0.5) results is in radians        
  230. atan  Arctangent          //e.g atan(4)      results is in radians
  231. ln    Natural logarithm      //e.g    ln(20)    
  232. log10 Log to base 10  //e.g log10(1000)        
  233. sqr   Square          //e.g sqr(5)
  234. sqrt  Squareroot      //e.g sqrt(64)    
  235. abs   Absolute value  //e.g abs(-3)
  236. deg2rad Convert degrees to radians   //e.g deg2rad(30) 
  237. rad2deg Convert radians to degrees   //e.g rad2deg(3.141592654)
  238. remainder   find the remainder of    //e.g remainder(17,5)
  239. div   Perform integer division  //e.g div(17,5)  result is 3
  240. exp   e (2.71828182846) to the power of  //e.g exp(10)
  241. root  Compute root //e.g root(8,3) computes the cube root of 8  
  242. log   Compute logarithm to a base 
  243. //e.g log(1024,2) computes the logarithm of 1024 to base 2
  244. fact  Compute factorial //e.g fact(5)
  245. nPr   Permutation of  //e.g npr(4,2) 
  246. nCr   Combination of  //e.g ncr(5,3)
  247.  
  248.  
  249. //Operators precedence:
  250. //---------------------
  251. When computing an expression, some operators will be evaluated 
  252. before others. E.g for
  253.  
  254. 2+3*4
  255.  
  256. multiplication will precede addition, so 
  257.  
  258.   2+3*4 
  259. = 2+12
  260. = 14
  261.  
  262.  
  263. The precedence for the operators are:
  264. -------------------------------------
  265. ( ) brackets                        (Highest precedence)
  266. unary -
  267. ^ power of
  268. * /    multiplication and division  
  269. + -    addition and subtraction     (Lowest precedence)
  270.  
  271.  
  272. //About The Text Editor
  273. //---------------------
  274. The text editor is able to recognize numbers and strings
  275. enclosed inside double quotes "" . Numbers are colored
  276. blue, while strings are colored red. Any line with
  277. double slash infront // will be turned green. 
  278. Futhermore, any block of text within /*  and */ will
  279. also be turned green.
  280.  
  281.  
  282.  
  283. //Bugs and Limitations
  284. //--------------------
  285. 1)Currently, all spaces inside an expression will be 
  286. removed/trimmed before evaluation. For example, if 
  287. you have an expression 23 45 + 1 47 *89 + sqrt(9), 
  288. then the expression passed to the parser will be 
  289. 2345+147*89+sqrt(9). 
  290.  
  291. Another example:
  292. sqr      t(9)+3 00 . 230 will be interpreted as
  293. sqrt(9)+300.230
  294.  
  295. 2)TextCalc cannot recognize numbers of the form 3.2e2
  296.  
  297. 3)Hex/Dec/Oct conversion is limited to positive integers
  298. only.
  299.  
  300.  
  301.  
  302.  
  303. //Acknowledgements
  304. //----------------
  305. This product is made possible because it uses code from 
  306. certain individuals. We are grateful to 
  307.  
  308. Andrei Stcherbatchenko for his wonderful
  309. Crystal Edit - syntax coloring text editor!
  310.  
  311. Zoly Farkas for his powerful
  312. Expression Evaluator! 
  313.  
  314. Chris Maunder for his most useful
  315. HyperLink!
  316.  
  317.  
  318.  
  319. //-------------------
  320. //Filename : Help.txt
  321. //-------------------
  322.  
  323.  
  324.  
  325.  
  326.