Quantcast
Channel: NCalc - Mathematical Expressions Evaluator for .NET
Browsing all 58 articles
Browse latest View live
↧

Created Unassigned: get result of formula when values are dynamic/Not Present...

User can input the formula like this:1)a+b+c2)a+b3)a/b+2+d-8/f4)a/b5)and many moreScenario: Values of all the variables are calculated at run time. For first formula I can set the values 0 if there is...

View Article


Created Unassigned: Constant string (escaped) to Function. [28350]

I have a function that I would like to evaluate: RegEx(test, <re>) where re is the string representation of the regular expression that I would like to evaluate. I cannot seem to find a way to...

View Article


New Post: Getting list of variables in an expression...

Be careful, I don't think using EvaluateParameter and EvaluateFunction delegates to record the name will work reliably for a Logical/Binary expression since the expression evaluator uses short circuit...

View Article

Created Unassigned: Max undefined? [28351]

I have defined alot of custom functions but I was hoping to also use some of the built in functions. Right now it seems that t'Max" is an invalid function. Any ideas on how to get it recognized? My...

View Article

New Post: Array of function evaluators or a way to speed up evaluation

Hi, my extended funciton evaluator is of the form private void myEvaluator(string name, FunctionArgs args) { if(name=="A") { // call function to evaluate } else if(name=="B") { // call function to...

View Article


Commented Unassigned: Constant string (escaped) to Function. [28350]

I have a function that I would like to evaluate: RegEx(test, <re>) where re is the string representation of the regular expression that I would like to evaluate. I cannot seem to find a way to...

View Article

Commented Unassigned: Constant string (escaped) to Function. [28350]

I have a function that I would like to evaluate: RegEx(test, <re>) where re is the string representation of the regular expression that I would like to evaluate. I cannot seem to find a way to...

View Article

New Post: TimeSpan value type?

I know you can define a DateTime object like this #2008/01/31#. I want to know if there's the equivalent to define a TimeSpan value? For example, I would like to know the amount of time something was...

View Article


New Post: Decimal parameters and float constants

I have the exact same issue! (X + Y) * 2.23 will fail, if you pass X and Y as decimal parameters! WHY?!

View Article


New Post: Casting to double fails

The code sample in the first post of this thread will also fail, even after your suggested 'fix', if instead of "2" you use "3.5" (for example). i.e. string formel = "x+3.5"; Expression e = new...

View Article

Created Unassigned: Remove debugging call to improve performance [28352]

This is the line that I am referring to. I do not think it is appropriate in a...

View Article

Created Unassigned: Allow to configure CultureInfo [28353]

I see many posts here about dots and comma as the value separator.From what I see, it use the current computer cultureinfo. I have a french Windows (,), and work with numbers written in English (.)....

View Article

Edited Unassigned: Allow to configure CultureInfo [28353]

I see many posts here about dots and comma as the decimal value separator.From what I see, it use the current computer cultureinfo. I have a french Windows (,), and work with numbers written in English...

View Article


New Post: Adding a Parameter in EvaluateParameter delegate

Hi, is there any way I can do something like this:expression.EvaluateParameter += delegate(string name, ParameterArgs args) { // get hold of the parameter string myParam = "[Sub] * [Expression]";...

View Article

New Post: Override ^ operator

I am using NCalc successfully. However, I would like to override the meaning of the ^ operator. Currently it is doing bitwise XOR operation. I want to change it to Math.Pow. Is it possible to do that...

View Article


Created Unassigned: Adding a Parameter in the EvaluateParameter delegate [28354]

Hi, can we have the ability to add new parameters to the the expression when the EvaluateParameter delegate is running. For example:```expression.EvaluateParameter += delegate(string name,...

View Article

Created Unassigned: IsParameterDefined Operator [28355]

I'd like to propose a new operator that I'm calling IsParameterDefined. I'd like to use it with an if() in the following way:if (IsParameterDefined([SomeParameterName]), [SomeParameterName] * 5, 0)if...

View Article


New Post: NCalc.dll has failed the NXCheck check

Hi, I got the following warning when running my application through the Windows Certification program: WARNING 3 Binary analyzer Warning: The binary analyzer test detected the following errors: File...

View Article

Commented Unassigned: Remove debugging call to improve performance [28352]

This is the line that I am referring to. I do not think it is appropriate in a...

View Article

Created Unassigned: nCalcExpression.EvaluateFunction += removes support of...

nCalcExpression.EvaluateFunction += removes support of the pre-existing if() functionFor example: var nCalcExpression = GetNCalcExpression("if(1<2,'true','false')"); nCalcExpression.EvaluateFunction...

View Article
Browsing all 58 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>