|
| 1 | +.Language=English,English |
| 2 | +.PluginContents=Calculator |
| 3 | + |
| 4 | +@Contents |
| 5 | +$^#Calculator for FAR Manager. Version # |
| 6 | +$^#Copyright (c) 1998-2001 Igor Russkih#. |
| 7 | +$^#Copyright (c) 2009-2012 uncle-vunkis#. |
| 8 | +$^#Copyright (c) 2020 FarPlugins Team#. |
| 9 | + |
| 10 | + PlugIn #Calculator# for #Far# Manager. |
| 11 | + |
| 12 | + |
| 13 | + ~how you can use it?~@howuse@ |
| 14 | + |
| 15 | + ~technical information.~@techinfo@ |
| 16 | + |
| 17 | + ~advanced features~@addon@ |
| 18 | + |
| 19 | + ~about this program.~@prog@ |
| 20 | + |
| 21 | + ~about author.~@author@ |
| 22 | + |
| 23 | +@howuse |
| 24 | +$^#How you can use it?# |
| 25 | + |
| 26 | + So, if you didn't understand yet, I'll describe it for you: |
| 27 | + |
| 28 | + In the #Input Line# you can enter any combination of digits, |
| 29 | +words and points, using rules, you know from school(#I hope#). |
| 30 | +Calculator will analyze this expression, and show you the result. |
| 31 | + If you know little more, you can use extended features. |
| 32 | +They are listed in ~Technical Info~@TechInfo@. Pressing #Ctrl-Down# you |
| 33 | +will see history, where are saved recently used expressions. |
| 34 | + |
| 35 | + The Left from the results you can choose shown number system |
| 36 | +with #RadioButtons#. You can press F2 in calculator or select item |
| 37 | +in calculator's main menu - you'll see contertation dialogs. |
| 38 | +There you can convert different values. |
| 39 | + |
| 40 | + |
| 41 | +@unders |
| 42 | +$#Wherefrom it Appears?# |
| 43 | + |
| 44 | + A-a, I don't know really. So, if we can make a little decision |
| 45 | +that my Brains architecture is more complexes, than the Windows 95 |
| 46 | +architecture, the ideas of those programs was created in parallel |
| 47 | +threads of my own brains. |
| 48 | + |
| 49 | + Ou, where you can get #Windows Version#? |
| 50 | + Visit ~http://www.uic.nnov.ru/~~ruiv/files/calc.zip~@http://www.uic.nnov.ru/~~ruiv/files/calc.zip@ |
| 51 | + |
| 52 | +@techinfo |
| 53 | +$^#Technical Information# |
| 54 | + |
| 55 | + The Calculator lets you compute in all popular systems: |
| 56 | + #Decimal#, #Hexadecimal#, #Binary#, #Octal#. |
| 57 | + |
| 58 | + The number showing is like all standard (#C#, #Pascal#, #Assembler#): |
| 59 | + |
| 60 | + #0x#12EF = #$#12EF = 12EF#h# - #Hexadecimal.# |
| 61 | + 1289 = 1289#D# - #Decimal.# |
| 62 | + 123#.#001 = 1#.#23001#e2# = 1#.#23001#e+2# - #Decimal, Exponential.# |
| 63 | + #0#1267 = 1267#O# - #Octal.# |
| 64 | + 0111#b# - #Binary.# |
| 65 | + 'b', 'bb', 'bbbb' - #Symbolic#. |
| 66 | + |
| 67 | + And now about operators, functions and constants. They are fully configurable |
| 68 | +in file #CalcSet.Csr#. How you can do it? Easy. It has the next syntax: |
| 69 | + |
| 70 | + #<calc# version="3.20"#># |
| 71 | + #<use# set="test"#/># |
| 72 | + <!--#<lang# id="en"#/>#--> |
| 73 | + #<set# Name="test"#># |
| 74 | + #<const# syntax="pi" mean="3.14159"#/># |
| 75 | + #<op# syntax="+" priority="8" mean="op0 _plus op1"#/># |
| 76 | + #<func# syntax="sqrt" mean="op0 _pow 0.5"#/># |
| 77 | + #<numeral# syntax="/([0-9]+)/" format="10" mean="op0"#/># |
| 78 | + #<addon# syntax="rad" mean="{(op0 * pi) / 180}" format="10"#/># |
| 79 | + |
| 80 | + #<dialog ru:name="test"># |
| 81 | + #<text# ru:name="один" langid:name="one"#/># |
| 82 | + #<field# ru:name="номер1" langid:name="number1" scale="1"#/># |
| 83 | + #<field# ru:name="номер2" langid:name="number2" scale="2/pi"#/># |
| 84 | + #<field# ru:name="номер3" langid:name="number3" output="{op0+10}" input="op0-10"#/># |
| 85 | + #</dialog># |
| 86 | + |
| 87 | + #</set># |
| 88 | + #</calc># |
| 89 | + |
| 90 | + This is an exemplary scheme - you can add blocks #Set# and #Use# as much, |
| 91 | +as you want. 'Set' Block defines constants, functions, and operators. |
| 92 | +Parameter Syntax sets symbolic name, and Mean parameter - calculating expression. |
| 93 | +Expression can use variables #op0#, #op1#, #op2#... Operators use only first two - |
| 94 | +left and right operators. Functions can have up to ten parameters. |
| 95 | + |
| 96 | + #Mean# Expression can use buildin and previously user-defined elements. |
| 97 | + |
| 98 | + #Format# is a radix value (2,8,10,16) or |
| 99 | + "exp" = exponential format (for addons only) |
| 100 | + "rep" = repeating decimal format |
| 101 | + "con" = continued fraction format |
| 102 | + Default format is "10". |
| 103 | + Also additional flags are available (comma separated): |
| 104 | + - for output: |
| 105 | + "delim" = use current digit delimiter (depends on settings) |
| 106 | + |
| 107 | + |
| 108 | + Build-in operators (in order of precedence): |
| 109 | + #_lor# Logical OR |
| 110 | + #_land# Logical AND |
| 111 | + #_or# Binary OR |
| 112 | + #_xor# Binary XOR |
| 113 | + #_and# Binary AND |
| 114 | + #_neq, _eq# Not Equal, Equal |
| 115 | + #_gt ,_lt# More, Less |
| 116 | + #_shr _shl _ror _rol# Shift right, left, rotate shift |
| 117 | + #_minus, _plus# Plus, minus |
| 118 | + #_mod _div _mul# Mod, Divide, Multiply |
| 119 | + #_pow# Power |
| 120 | + #_not# Bitwise Not |
| 121 | + #_lnot# Logical Not |
| 122 | + |
| 123 | + |
| 124 | +Base functions - #Func(Par)#: |
| 125 | + |
| 126 | + Functions with no arguments |
| 127 | + #_rnd# Random number |
| 128 | + #_finf# Float +Infinity number |
| 129 | + #_fnan# Float NaN number |
| 130 | + |
| 131 | + Functions with one argument |
| 132 | + #_frac# Fraction |
| 133 | + #_floor# Floor of number |
| 134 | + #_ceil# Ceil of number |
| 135 | + #_sin# Sine |
| 136 | + #_cos# Cosine |
| 137 | + #_tan# Tanget |
| 138 | + #_arctan# ArcTangent |
| 139 | + #_ln# Natural Logarithm |
| 140 | + #_factor# Factorial |
| 141 | + #_f2b# Float to binary (IEEE-754) |
| 142 | + #_d2b# Double to binary (IEEE-754) |
| 143 | + #_b2f# Binary to float (IEEE-754) |
| 144 | + #_b2d# Binary to double (IEEE-754) |
| 145 | + #_numer# Numerator of a common fraction |
| 146 | + #_denom# Denominator of a common fraction |
| 147 | + |
| 148 | + Functions with multiple arguments: |
| 149 | + #_if# _if(val,a,b). Return a, if val, else return b. |
| 150 | + #_gcd# _gcd(num,denom). Greatest common divisor |
| 151 | + |
| 152 | + Functional operators |
| 153 | + #_int64# #_uint64# |
| 154 | + #_int# #_uint# |
| 155 | + #_short# #_ushort# |
| 156 | + #_char# #_byte# |
| 157 | + #_double# #_float# |
| 158 | + |
| 159 | + All #Spaces# in entered expression mean nothing, |
| 160 | +so you can use it anywhere. #Symbols register# mean nothing too. |
| 161 | + |
| 162 | + |
| 163 | +@addon |
| 164 | +$^#Advanced Features.# |
| 165 | + In #Far v1.6# and higher the Calc can work in FAR Editor. |
| 166 | +You can call it with #F11-Calculator#. |
| 167 | + |
| 168 | + Also, there is an #advanced feature# of background working. |
| 169 | +With this mode Calc try to calculate any expression in plain text, |
| 170 | +with #Alt=#, #AltH#, #AltO#, #AltB# macroses. |
| 171 | + |
| 172 | + |
| 173 | +@prog |
| 174 | +$^#About this program and so...# |
| 175 | + The Idea of this PlugIn was born from DN's Calculator. So, there |
| 176 | +r some visual aspects.... Also you can find Windows version of this |
| 177 | +#calc# with the same functionality. I don't know, ~which~@Unders@ of |
| 178 | +the ideas came first in my head. |
| 179 | + |
| 180 | + So, doing nothing, I desided to incarnate this Idea. With BG Music |
| 181 | +under the Star Adelaide it was created. |
| 182 | + |
| 183 | + Thanks for using Calc, |
| 184 | + I hope it needs somebody. |
| 185 | + #Igor Russkih# |
| 186 | + ...and a tiny bit by #uncle-vunkis# |
| 187 | + |
| 188 | +@DN |
| 189 | + |
| 190 | + #Hmmmm...# |
| 191 | + |
| 192 | +@author |
| 193 | +$^#Calculator for FAR Manager. Version |
| 194 | + #Igor Russkih#. Copyright (c) 1998-2001. All rights reserved. |
| 195 | + #uncle-vunkis#. Copyright (c) 2009-2012. #. |
| 196 | + #FarPlugins Team#. Copyright (c) 2020. #. |
| 197 | + This program is a #FreeWare#. It Means, that you can do anything with |
| 198 | +it copies, if this actions are not breaks #Author Rights#. |
| 199 | + |
| 200 | + Spinning tales about silence |
| 201 | + About radio silence |
| 202 | + About some kind of asylum |
| 203 | + In the middle of an empty field full of danger |
0 commit comments