本文整理汇总了C#中Argument.setArgumentName方法的典型用法代码示例。如果您正苦于以下问题:C# Argument.setArgumentName方法的具体用法?C# Argument.setArgumentName怎么用?C# Argument.setArgumentName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Argument
的用法示例。
在下文中一共展示了Argument.setArgumentName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: runTest1
//.........这里部分代码省略.........
1.0986858055 + /*Lengyel'sconstant[31]*/
3.27582291872181115978768188245384386 + /*Lévy'sconstant*/
1.20205690315959428539973816151144999 + /*Apéry'sconstant*/
1.30637788386308069046861449260260571 + /*Mills'constant*/
1.45607494858268967139959535111654356 + /*Backhouse'sconstant[32]*/
1.4670780794 + /*Porter'sconstant[33]*/
1.5396007178 + /*Lieb'ssquareiceconstant[34]*/
1.70521114010536776428855145343450816 + /*Niven'sconstant*/
2.58498175957925321706589358738317116 + /*Sierpiński'sconstant*/
2.68545200106530644530971483548179569 + /*Khinchin'sconstant*/
2.80777024202851936522150118655777293 + /*Fransén-Robinsonconstant*/
0.5 + /*Landau'sconstant*/
2.29558714939263807403429804918949039 + /*Parabolicconstant*/
0.56714329040978387299996866221035555 + /*Omegaconstant*/
0.187859 + /*MRBconstant*/
1.045163780117492784844588889194613136522615578151 + /* l2(2) */
0.596347362323194074341078499369279376074 /* Gompertz Constant */
;
if ( MathFunctions.abs(value - reg) <= 0.00001 )
testResult = true;
mXparser.consolePrint(value + " reg ... " + reg + " --> ");
break;
case 124:
m = new Argument("m",4);
n = new Argument("n", "m-1", m);
x = new Argument("x",3);
H = new Function("H","if(m>1, 2*x*H(n,x)-2*n*H(n-1,x), if(m>0, 2*x, 1) )", m, x, n);
H.setParametersNumber(2);
k = new Argument("k",5);
expStr = "der( H(k,x), x) - 2*k*H(k-1,x)";
exp[testId] = new Expression(expStr, x,k );
exp[testId].addDefinitions(H);
syn1 = exp[testId].checkSyntax();
m.setArgumentName("m");
if ((syn1) && (exp[testId].getSyntaxStatus() == Expression.SYNTAX_ERROR_OR_STATUS_UNKNOWN))
testResult = true;
mXparser.consolePrint(exp[testId].getErrorMessage() + " reg ... " + "Syntax status unknown." + " --> ");
break;
case 125:
expStr = "2==2";
mXparser.consolePrint(expStr + " ...... ");
exp[testId] = new Expression(expStr);
value = exp[testId].calculate();
reg = 1;
if ( value == reg )
testResult = true;
mXparser.consolePrint(value + " reg ... " + reg + " --> ");
break;
case 126:
expStr = "2 != 3";
mXparser.consolePrint(expStr + " ...... ");
exp[testId] = new Expression(expStr);
value = exp[testId].calculate();
reg = 1;
if ( value == reg )
testResult = true;
mXparser.consolePrint(value + " reg ... " + reg + " --> ");
break;
case 127:
expStr = "2 ~= 3";
mXparser.consolePrint(expStr + " ...... ");
exp[testId] = new Expression(expStr);
value = exp[testId].calculate();
reg = 1;
if ( value == reg )
testResult = true;