Logo by Browallia (anonymous IP: 3.147.57.197,2256) | ||||||||||||||
| ||||||||||||||
Audio (343) Datatype (51) Demo (203) Development (602) Document (24) Driver (97) Emulation (148) Game (1011) Graphics (500) Library (118) Network (234) Office (66) Utility (932) Video (69) Total files: 4398 Full index file Recent index file
Amigans.net OpenAmiga Aminet IntuitionBase
Support the site
|
Hex2 0.2 ======== Simple calculator with variables support Type the formula into the edit and press enter or "calc" button. The currently defined variables are shown as list with various formats. Double click to and entry to add that variable or its value to the formula edit at the current cursor position. Syntax: ******* = assign a variable, if no variable is given, "result" is used e.g. "a=1" "a=b+3" Numbers ------- you can use '.' or ',' as decimal separator 0..9 decimal numbers e.g. "42" result=42 "1.54e3", "-134.44", "12,33e-4" $0..9 A..F hexadecimal numbers e.g. "$42" result=66 %0,1 binary numbers e.g. "%0110" result=6 Pi the number Pi e.g. "pi" result=3.14159265358979 Operations ---------- + add numbers together e.g. "3+2" result=5 - subtract number e.g. "3-2" result=1 * multipy numbers e.g. "3*2" result=6 / divide numbers e.g. "3/2" result=1.5 integer divide e.g. "32" result=1 % divide modulo e.g. "3%2" result=1 ^ raise to the power e.g. "3^2" result=9 & bitwise and e.g. "3&2" result=2 | bitwise or e.g. "3|2" result=3 # bitwise xor e.g. "3#2" result=1 < bitwise shift left e.g. "3<2" result=12 > bitwise shift right e.g. "5>2" result=1 Trigonometic Functions ---------------------- sin sine function, parameter in degree e.g. "sin(90)" result=1 cos cosine function, parameter in degree e.g. "cos(90)" result=0 tan tangent function, parameter in degree e.g. "tan(45)" result=1 sinr sine function, parameter in radiant e.g. "sinr(pi/2)" result=1 cosr cosine function, parameter in radiant e.g. "cosr(pi/2)" result=0 tanr tangent function, parameter in radiant e.g. "tanr(pi/4)" result=1 asin arcsine function, parameter in degree e.g. "asin(1)" result=90 acos arccosine function, parameter in degree e.g. "acos(0)" result=90 atan arctangent function, parameter in degree e.g. "atan(1)" result=45 asinr arcsine function, parameter in radiant e.g. "asinr(1)" result=1.5707963267949 acosr arccosine function, parameter in radiant e.g. "acosr(0)" result=1.5707963267949 atanr arctangent function, parameter in radiant e.g. "atanr(1)" result=0.785398163397448 other functions --------------- round() round using IEEE754 rounding rules e.g. "round(-1.5)" result=-2 "round(1.5)" result=2 ceil() round always upwards e.g. "ceil(-1.1)" result=-1 "ceil(1.1)" result=2 floor() round always downwards e.g. "floor(-1.1)" result=-2 "floor(1.1)" result=1 int() cut away the after point decimals e.g. "int(-1.1)" result=-1 "floor(1.1)" result=1 abs() absolute value e.g. "abs(-42)" result= 42 "abs(42)" result=42 fak() factorial (1*2*3*...*n) e.g. "fak(5)" result=120 sqrt() square root e.g. "sqrt(9)" result=3 rand() random between 0 and parameter e.g. "rand(100)" result=54 swap() change 32 bit endianess e.g. "swap($12345678)" result=2018915346 ($78563412) exp() exponential (e^n) e.g. "exp(5)" result=148.413159102577 ln() natural logarithm e.g. "ln(5)" result=1.6094379124341 lg() logarithm base 10 e.g. "lg(100)" result=2 lb() logarithm base 2 e.g. "lb(8)" result=3 History ------- 0.2 - added swap() - integer division '' and integer modulo '%' - Overflow bugfixes |
Copyright © 2004-2024 by Björn Hagström All Rights Reserved |