亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ee.txt

?? 快速表達式運算
?? TXT
字號:
Fast Expression Evaluator.
========================================================================

This DLL (ee.dll) provides some of 'C' routines that allow you to
incorporate mathematical expressions evaluation into your programs. For
example, using these routines you can evaluate such expressions as:
100/5*(1+2)
LN( PI )
sqrt(p*(p-a)*(p-b)*(p-c))

The main advantage of this evaluator is explained in the following
example. Suppose we ask user to define a function. And we want to
compute value of the function on a number of points. This DLL allows
to make syntactic analysis of the function definition once and then
using "image" of the expression to calculate value of the function on
any number of points. Since the syntactic analysis is made only once
time of calculation decreases by factor 20-30.

Evaluation is performed by two routines: MakeImage and Value. MakeImage
gives string form of an expression, performs syntactic analysis and
produces the image of the expression. Image is a linear sequence of fast
commands. Then if no errors occur value of the expression can be
retrieved by function Value which interprets these commands. Size of
function MakeImage in code is 450 lines while size of Value is 30.

There is also a function called Simplify available. It modifies image by
calculating almost all operations that can be calculated without knowing
values of expression's parameters. For example, 3+sin(5)+x+2^2^5 will be
replaced by 2.041+x+1024.

int MakeImage(void *image, int size, const char *formula,
              char *errorstring, int *errorposition,
              const char *argnames);

image       -- Buffer for image of expression.
size        -- Size of the buffer in bytes. The smallest size that will
               not cause an error is sizeof(int) bytes.
formula     -- String form of expression.
errorstring -- If an error is found the explanation is placed here.
               Otherwise empty string is returned. Must be large
               enough to contain 128 bytes or NULL.
errorposition --
               Zero-based position where an error occurred is returned
               through this pointer. If the position cannot be
               determined (for example, if unpaired parenthesis is found)
               -1 is returned. Also may be NULL. Note: MakeImage parses
               expressions from the end to the beginning.
argnames    -- This string should contain names of arguments of the
               expression divided by spaces. Allowed symbols are like
               in C. May be NULL or empty string.

Return values:
0 (EE_OK)           No errors were found and image is ready for
                    evaluation.
EE_SYNTAXERROR      General syntax error. See 'errorstring'.
EE_UNPAIRED         Unpaired parenthesis is found.
EE_UNKNOWNFUNCTION  Unknown function or wrong use of parentheses.
EE_UNKNOWNARGUMENT  Found an argument that is not included in the list
                    in 'argnames' or unknown constant.
EE_WRONGARGUMENTS   Wrong number of arguments in function.
EE_SMALLBUFFER      No other errors found but the buffer is too small
                    to contain image of the expression. Required number
                    of bytes is returned in *(int*)image.

If no errors are found the size of image is returned in *(int*)image.
Rest bytes can be used for other purposes. In general, size of image
can be calculated by formula:
 SIZE=(2*Nnumbers + Nunary_operators + Ncalls)*16,
where
Nnumbers         -- number of numbers or user's identifiers in
                    expression.
Nunary_operators -- number of unary operators that are not before
                    digits.
Ncalls           -- number of calls of functions that take one argument.

int Value(const void *image, double *presult,
          char *errorstring, int numberofarguments, ... );

image       -- Buffer with image.
presult     -- Returned result is placed here.
errorstring -- If an exception raises during calculation the
               explanation will be written here. Otherwise empty string
               is returned. Must be large enough to contain 128 bytes.
               May be NULL.
numberofarguments --
               Number of arguments that follow. Should be equal to the
               actual number of arguments that passed after this
               parameter.
...         -- Zero or more arguments to the expression. Must be in the
               same order as in 'argnames'. Note: all these arguments
               must be of type double. What do you think
               printf("%f %d",2,3) will print? So use numbers with
               points (e.g. 1.0) or variables of type double or cast
               them to double.

Return values:
0 (EE_OK)      No exceptions were raised and the result is a finite
               number.
EE_PARTIAL     Partial usability. Either there were exceptions during
               calculation or result is infinite. See 'errorstring'. To
               test whether the number is finite use '_finite' function.
EE_UNUSEABLE   Result cannot be represented as a number. E.g. asin(2).

int Simplify(void *image, char *errorstring);

image       -- Buffer with image for simplification.
errorstring -- Buffer for explanation of error. The same as above.

Return values:
This function returns the number of bytes by which the image has become
shorter. If no simplification is possible zero is returned.

Supported functions:

Arguments or returns of all trigonometric functions are in radians.
sin(x)   \
cos(x)   - Return is precise if -9e+18 < x < 9+e18.
tan(x)   /
sinh(x)  \
cosh(x)  - Hyperbolic.
tanh(x)  /
asin(x)    Returns the arcsine of x in the range -pi/2 to pi/2.
           To avoid exceptions x must be in range [-1,1].
acos(x)    Returns the arccosine of x in the range 0 to pi.  x must be
           -1 <= x <= 1.
atan(x)    Returns the arctangent in the range -pi/2 to pi/2.
atan2(y,x) Returns the arctangent of y/x in the range -pi to pi using
           the signs of both parameters to determine the quadrant of the
           return value. x and y must not be both zero.

exp(x)     Returns the exponential value.
ln(x)      Return the logarithm of x. x must be >0.
log(x)     The same as ln(x).
log10(x)   Return the logarithm of x with the base of 10. x must be >0.
pow(x,y)   Returns x raised to the power of y. Well defined not for all
           pairs of x and y. The same as x^y.
sqrt(x)    Returns the square-root of x. x must be >= 0.
mod(x,y)   Returns the floating-point remainder of x/y. y must not be 0.
           The same as x%y.
hypot(x,y) Returns the length of the hypotenuse. Equivalent to the
           square root of x^2+y^2.

deg(x)     Converts radians to degrees.
rad(x)     Converts degrees to radians.

abs(x)     Returns the absolute value of x.
floor(x)   Returns the largest integer that is <= x.
ceil(x)    Returns the smallest integer that is >= x.

j0(x)    \
j1(x)    - Return Bessel functions of the first kind: orders 0, 1 and n,
jn(n,x)  / respectively.
y0(x)    \
y1(x)    - Return Bessel functions of the second kind: orders 0, 1 and
yn(n,x)  / n, respectively. Truncation of n to integer is performed in
           accordance with C rules.

sign(x)    Sign. -1 for x<0; 0 for x=0; 1 for x>0.
step(x)    Heaviside step. 0 for x<0; 1 for x>=0.
max(x,y)   Returns greater number.
min(x,y)   Returns smaller number.

Known constants:
pi =3.1415926535897932385
e  =2.7182818284590452354

Neither functions nor these constants are case sensitive, but user's
identifiers are case sensitive.

Operators are handled in the following priority:
1) Unary (+) and (-) signs.
2) "To the power of" symbol: (^).
3) Times (*), divide (/) and modulus (%).
4) Plus (+) and minus (-).

Note: Because the priority of unary operator is higher than the priority
of "power" operator the expressions like -(3)^2 will evaluate to 8 other
than -8.

Some functions operate with numbers 'infinity' and '-infinity'. So
1/(1/0)=0; atan(1/0)=pi/2; atan(-1/0)=-pi/2; exp(-1/0)=0; sign(3/0)=1.
MakeImage performs strict syntactic check. Let's give  C-style
definition of an expression.

expression:
    simple_number
    function_call
    (expression)
    expression operator expression
    unary_operator expression

operator: one of + - * / % ^

With one exclusion: two sequential unary operators are not allowed.
simple_number is a known identifier or a number that can be read
entirely by the function 'strtod'.

Examples of valid numbers:
1
-2.3
3.
-.40              =-0.4
5.6e+7            =5.6*10^7
-.6E7             =-6*10^6
07.d-0008         =7*10^(-8)
- 00000000.08     =-0.08
9.D-0000100000000 =0
-10000000000000000000000000000000000000000.11    =-(10^40)

To mark exponential part either e, E, d or D can be used. Numbers in
absolute value should be less than 1e308.

Examples of illegal numbers:
1OO         unrecognizable symbol
-2.0e       no exponential part, but 'e' sign is present
3e444       too large
-4e5.6      exponential part must be integer
2 . 3       spaces in numbers are not allowed

Limitations:
Maximum length of expression, arguments or image is 2e9 bytes. Maximum
number of arguments is 100. Maximum depth of enclosed parentheses is
100. But it is also limited by stack of your application. Each enclosed
pair of parentheses takes 60 bytes of stack.

Calculations are performed with numbers of type double. So precision
is not less than 15 digits.

All these functions do not use heap.

Time that MakeImage takes is approximately proportional to the length of
expression. Time that Value takes is approximately proportional to the
length of the image.

Benchmark:
Comparison of calculating speeds between this evaluator and compiled
with volatile variables code was made on Pentium 100.
The expression:

2+2-2+2-2+2+2*2*2+2+2/2+(2+2-2+2-2+2*(2+2/2+2+2/2+2))+2+2-2+2-2+2+2*2*2+
2+2/2+(2+2-2+2-2+2*(2+2/2+2+2/2+2))+2+2-2+2-2+2+2*2*2+2+2/2+(2+2-2+2-2+2
*(2+2/2+2+2/2+2))+2+2-2+2-2+2+2*2*2+2+2/2+(2+2-2+2-2+2*(2+2/2+2+2/2+2))

was evaluated  1000000 times for 45 seconds. The same compiled expression
took 7.1 seconds. The ratio is 6.4
the another expression:

atan(asin(acos(abs(cos(sin(tan(2)))))))+
atan(asin(acos(abs(cos(sin(tan(2)))))))

was evaluated 1000000 times for 45 seconds by Value and for 39 seconds
by machine code. The ratio is 1.16

The file ee.cpp contains an example of usage of these routines. Make
sure to link it with ee.lib. ee.exe is compiled ee.cpp.

Similar application can be found at
http://ftp.digital.com/pub/micro/pc/winsite/win3/programr/calcdll.zip
But it can only calculate expressions without making "image". And its
syntactic analysis is not strict.

This software is free and freely distributable.

If you want to use these routines directly in your application, add your
functions or implement on platforms other than Intel/Windows95/NT mail
me and you will receive the source code of the DLL. Propositions or job
opportunities are also welcome.

November, 29, 1997.

Laptev Eugene.
E-mail:  ztv@imp.kiev.ua
WinTalk: ztv@ztv.imp.kiev.ua

Prekloniaju golovu pered temi, kto zarobatyvaet den'gi nichem.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲美女电影在线| 色88888久久久久久影院野外| 在线观看一区日韩| 国产精品剧情在线亚洲| 国产精品自在在线| 日韩美女视频在线| 男人的j进女人的j一区| 欧美午夜精品久久久久久超碰 | 高清视频一区二区| 久久久精品tv| 日韩成人午夜电影| 91精品国产欧美一区二区成人| 国产精品久久久久影视| 99久久精品免费看国产免费软件| 中文字幕在线一区免费| proumb性欧美在线观看| 日本一区二区三区久久久久久久久不| 亚洲高清视频在线| 欧美日韩精品一区二区三区蜜桃| 国产精品卡一卡二| 91精品福利视频| 午夜伊人狠狠久久| 日韩精品在线一区二区| 成人影视亚洲图片在线| 亚洲美女少妇撒尿| 69av一区二区三区| 国产精品一区二区视频| 国产精品激情偷乱一区二区∴| 一本一本久久a久久精品综合麻豆| 一区二区三区小说| 欧美mv日韩mv| 97精品国产露脸对白| 亚洲一区二区三区四区的| 欧美一区午夜视频在线观看| 国产一区二区不卡| 亚洲成人精品影院| 欧美电影免费提供在线观看| 成人久久视频在线观看| 亚洲午夜精品在线| 精品国产成人系列| 欧美日韩国产一级| 欧美色手机在线观看| 奇米影视一区二区三区| 亚洲欧美另类小说视频| 一区二区成人在线| 国产成人精品亚洲日本在线桃色| 午夜伊人狠狠久久| 免费成人在线视频观看| 日韩国产精品久久久| 热久久久久久久| 18欧美亚洲精品| 日韩欧美aaaaaa| 欧洲色大大久久| 国内精品国产成人国产三级粉色| 日韩久久一区二区| 精品久久国产字幕高潮| 9i在线看片成人免费| 免费成人在线影院| 亚洲制服丝袜一区| 成人免费小视频| 久久一区二区三区国产精品| 欧美蜜桃一区二区三区| 丁香婷婷深情五月亚洲| 国产一区二区成人久久免费影院| 亚洲3atv精品一区二区三区| 亚洲欧洲国产专区| 1区2区3区欧美| 日本一区二区三区四区在线视频| 国产丝袜美腿一区二区三区| 久久人人爽人人爽| 久久亚洲私人国产精品va媚药| 欧美一区二区三区日韩| 欧美理论在线播放| 欧美一级专区免费大片| 欧美一区二区三区爱爱| 久久嫩草精品久久久精品一| 久久久亚洲午夜电影| 国产精品麻豆视频| 一区二区高清免费观看影视大全| 国产精品欧美一级免费| 国产欧美精品国产国产专区| 国产精品国产精品国产专区不蜜| 亚洲毛片av在线| 日韩在线卡一卡二| 午夜精品久久久久久| 久久国产剧场电影| www.色精品| 欧美卡1卡2卡| 国产喷白浆一区二区三区| 一区二区三区欧美久久| 久久99国产精品尤物| 在线一区二区观看| 欧美日韩久久一区| 在线观看三级视频欧美| 欧美xxxx老人做受| 日韩一区精品字幕| 欧美日韩电影在线播放| 亚洲精品免费在线观看| 成人久久久精品乱码一区二区三区 | 精品成人一区二区三区| 亚洲日本丝袜连裤袜办公室| 亚洲福利电影网| 成人小视频免费在线观看| 3atv一区二区三区| 亚洲欧美日韩电影| 国产一区二区三区久久久 | 中文字幕日韩av资源站| 日韩avvvv在线播放| 成人黄色片在线观看| 69久久99精品久久久久婷婷| 国产精品久久久久久久岛一牛影视 | 亚洲欧美二区三区| www..com久久爱| 国产精品天美传媒| 成人一级黄色片| 精品国精品国产| 韩国一区二区视频| 欧美一区二区三区男人的天堂| 午夜精品久久久久久久99樱桃| 日本韩国欧美国产| 亚洲男人的天堂av| 91麻豆精品视频| 中文字幕一区视频| 成人福利视频在线看| 国产午夜精品一区二区三区视频 | 成人免费视频网站在线观看| 久久蜜臀中文字幕| 国产精品一二三| 精品裸体舞一区二区三区| 婷婷夜色潮精品综合在线| 欧美日韩国产片| 婷婷丁香久久五月婷婷| 91麻豆精品国产综合久久久久久| 亚洲mv在线观看| 欧美一级日韩一级| 精品伊人久久久久7777人| 欧美大片一区二区| 黑人巨大精品欧美黑白配亚洲| 欧美一级欧美一级在线播放| 免费成人美女在线观看| 欧美精品一区二区三区久久久| 精品无人码麻豆乱码1区2区 | 日韩国产精品久久久| 久久女同性恋中文字幕| 欧美亚洲国产怡红院影院| 精品一二三四区| 亚洲国产精品视频| 国产精品女同互慰在线看| 欧美一区二区三区播放老司机| 不卡电影一区二区三区| 亚洲欧美日韩在线播放| 这里是久久伊人| 国产精品亚洲午夜一区二区三区| 国产精品毛片高清在线完整版| 欧美日韩国产免费| 国产91在线观看| 午夜av一区二区三区| 国产午夜三级一区二区三| 欧美日韩一区高清| 国产成人啪午夜精品网站男同| 亚洲一二三级电影| 国产亚洲成年网址在线观看| 99精品欧美一区二区三区综合在线| 一区二区三区国产精品| 久久久综合网站| 91精品欧美福利在线观看| 99re成人精品视频| 美女一区二区久久| 一区二区激情视频| 国产午夜精品理论片a级大结局| 亚洲免费观看高清完整版在线观看| 日韩欧美一级二级| 欧美一区日本一区韩国一区| 91色porny| 91亚洲男人天堂| 成人av免费在线观看| 国产真实乱偷精品视频免| 三级欧美韩日大片在线看| 一区二区三区在线免费视频| 国产精品美女久久久久aⅴ| 久久久蜜桃精品| 26uuu亚洲| 欧美激情资源网| 中文一区二区完整视频在线观看| 久久久久久久久一| 精品91自产拍在线观看一区| 日韩欧美一区中文| 欧美电视剧在线看免费| 欧美成人伊人久久综合网| 日韩欧美国产精品一区| 欧美tickling网站挠脚心| 久久久久久久性| 国产精品久久久久婷婷二区次| 国产精品初高中害羞小美女文| 中文字幕一区二区日韩精品绯色| 国产精品国产精品国产专区不片 | 欧美aaa在线| 久久国产免费看| va亚洲va日韩不卡在线观看| 欧美亚洲国产bt|