Comments (3)
This seems to be bug related to casing. I have already done the analysis and it is only occurring when you construct a Func accepting a dictionary. When the calculate is called directly on the CalculationEngine object, the bug is not occurring.
CalculationEngine engine = new CalculationEngine();
Dictionary<string, double> variables = new Dictionary<string, double>();
variables.Add("var1", 2);
variables.Add("otherVariable", 4.2);
double result = engine.Calculate("var1+2/(3*otherVariable)", variables);
I will do the necessary modifications to fix the bug and release it as part of version 0.8.4. Currently, all variables in Jace should be case insensitive. Should I also add an option to make them case sensitive? Or are case insensitive variables sufficient for you?
from jace.
Pieter,
I don't really see a need for case sensitivity, at least on the project
that I am working on. Thanks for fixing the bug, and thanks for all of
your great work.
Jordan Neuhart
On Mon, Dec 9, 2013 at 12:05 AM, Pieter De Rycke
[email protected]:
This seems to be bug related to casing. I have already done the analysis
and it is only occurring when you construct a Func accepting a dictionary.
When the calculate is called directly on the CalculationEngine object, the
bug is not occurring.CalculationEngine engine = new CalculationEngine();
Dictionary<string, double> variables = new Dictionary<string, double>();variables.Add("var1", 2);variables.Add("otherVariable", 4.2);
double result = engine.Calculate("var1+2/(3*otherVariable)", variables);I will do the necessary modifications to fix the bug and release it as
part of version 0.8.4. Currently, all variables in Jace should be case
insensitive. Should I also add an option to make them case sensitive? Or
are case insensitive variables sufficient for you?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-30107471
.
email: [email protected]
cell: 402-217-1377
from jace.
Jordan,
Jace 0.8.4 has been released. It fixes your bug.
Kind regards,
Pieter
Date: Mon, 9 Dec 2013 06:57:56 -0800
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Jace] Issue with variable case sensitivity (#1)
Pieter,
I don't really see a need for case sensitivity, at least on the project
that I am working on. Thanks for fixing the bug, and thanks for all of
your great work.
Jordan Neuhart
On Mon, Dec 9, 2013 at 12:05 AM, Pieter De Rycke
This seems to be bug related to casing. I have already done the analysis
and it is only occurring when you construct a Func accepting a dictionary.
When the calculate is called directly on the CalculationEngine object, the
bug is not occurring.
CalculationEngine engine = new CalculationEngine();
Dictionary<string, double> variables = new Dictionary<string, double>();variables.Add("var1", 2);variables.Add("otherVariable", 4.2);
double result = engine.Calculate("var1+2/(3*otherVariable)", variables);
I will do the necessary modifications to fix the bug and release it as
part of version 0.8.4. Currently, all variables in Jace should be case
insensitive. Should I also add an option to make them case sensitive? Or
are case insensitive variables sufficient for you?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-30107471
.
email: [email protected]
cell: 402-217-1377
—
Reply to this email directly or view it on GitHub.
from jace.
Related Issues (20)
- Can we make Random overrideable? HOT 3
- Bitwise operations
- Non base-10 numbers
- Matrix & display function itself
- Override operators HOT 2
- Feature Request: Option to set calc trigonomic functions with degrees (not radian) HOT 1
- Wrong precendence for unitary minus and exponential
- Invalid floating point numbers cause InvalidOperationException
- Problems with ambiguity of e
- Invalid scientific notation leads to IndexOutOfBoundsException instead of ParseException
- Upgrade to NetStandard 2.0 HOT 2
- Interpreter.BuildFormula does not work with constants
- Is this project still being updated? HOT 2
- Runtime Error : Could not load file or assembly System.Runtime HOT 2
- JaceOptions case sensitivity does not get applied to FunctionRegistry or ConstantRegistry on engine constructor HOT 4
- Bug in operators precedence HOT 17
- Request for dynamic variables
- PEMDAS HOT 2
- Introducing _sonic_, a maintained Jace.NET fork/successor HOT 1
- avg function not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jace.