Activity for Javaluator

  • Anonymous created ticket #25

    {} breacket is not working , throw error invalid express

  • Anonymous created ticket #24

    "4 3 +" expression is throwing invalid syntax error

  • Fathzer Fathzer modified ticket #23

    how to add factorail

  • Anonymous created ticket #23

    how to add factorail

  • Anonymous posted a comment on ticket #22

    Hi Jean-Marc, Thanks for your feedback. What I would like to use were the operators "==", "<", "<=", ">" and ">=". I'll take a look at the examples you cited. Thank you very much. Adalberto.

  • Fathzer Fathzer modified ticket #21

    Allow reusing tokens

  • Fathzer Fathzer modified ticket #22

    Equality and Relational Operators Evaluation

  • Fathzer Fathzer posted a comment on ticket #22

    Hello, Thanks for the compliments :-) Unfortunately, my answer will not be the one you expect ... As you can see in previous tickets, lot of people want their own evaluator (BigDecimal, boolean, vectors, with more functions, etc... or mixed boolean and numbers - like you if I understood well). Some use Javaluator with their own grammars. That's the reason why Javaluator offers AbstractEvaluator, a generic evaluator, that is doing the hard part (parsing the expression and deals with operators precedence)....

  • Anonymous created ticket #22

    Equality and Relational Operators Evaluation

  • Daniel Obermeier Daniel Obermeier posted a comment on ticket #21

    Thank you! Building a simple token cache and re-using the list of tokens in the overridden tokenize method did the trick.

  • Fathzer Fathzer posted a comment on ticket #21

    Hello, Sorry for answering late, I was very busy these last days ... I agree it should have been better to provide a way to reuse the tokens. But ... The bad news is the tokenize method returns an Iterator, which can't be traversed more than one time. Changing that would introduced a breaking change :-( The good news is it is very simple to subclass your Evaluator class, add attributes to the sub-class to store the tokens in a reusable form (a list for instance), and the expression that corresponds...

  • Daniel Obermeier Daniel Obermeier created ticket #21

    Allow reusing tokens

  • Fathzer Fathzer modified ticket #20

    Error for Scientific Notation

  • Fathzer Fathzer posted a comment on ticket #20

    Version 3.0.3 released yesterday allows you to create a scientific notation tolerant DoubleEvaluator using: new DoubleEvaluator(DoubleEvaluator.getDefaultParameters(), true) Please note the scientifc notation is not supported by default because it reduces the evaluator speed by a factor of 2 :-(

  • Fathzer Fathzer committed [r134]

    version 3.0.3

  • Fathzer Fathzer committed [r133]

    First implementation of scientific notation support in DoubleEvaluator

  • Fathzer Fathzer modified ticket #20

    Error for Scientific Notation

  • Fathzer Fathzer posted a comment on ticket #20

    A problem in the operator detection leads to this bug. Should not consider a + as an operator if previous char is E. Work in progress

  • Anonymous created ticket #20

    Error for Scientific Notation

  • Fathzer Fathzer modified ticket #18

    Is there any way to utilize this evaluator using variables of type in rather than double?

  • Fathzer Fathzer modified ticket #19

    wrong double conversion

  • Fathzer Fathzer posted a comment on ticket #19

    Hello, I think you made a confusion between java.lang.Math.log(x) which is the natural logarithm of x, and log(x) in javaluator, which is the base 10 algorithm of x. In javaluator, as stated in the DoubleEvaluator class documentation, you should use ln(x) to have the natural logarithm of x. Best regards, Jean-Marc Astesana

  • Anonymous posted a comment on ticket #19

    i forgot to mention. after expresion evaluation i get 208.5195006702843 and the correct answer is 23.93

  • Anonymous created ticket #19

    wrong double conversion

  • Fathzer Fathzer posted a comment on ticket #18

    Hello, As you can see in previous tickets, lot of people want their own evaluator (BigDecimal, boolean, more functions, etc...). Some use Javaluator with their own grammars. That's the reason why Javaluator offers AbstractEvaluator, a generic evaluator, that is doing the hard part (parsing the expression and deals with operators precedence). Javaluator provides DoubleEvaluator as an example of how to implement your own evaluator ... and because working with double is really very very common. We do...

  • Anonymous created ticket #18

    Is there any way to utilize this evaluator using variables of type in rather than double?

  • Fathzer Fathzer modified ticket #17

    What should I do to add factorial function?

  • Fathzer Fathzer posted a comment on ticket #17

    Hello, You have a full working example that adds the square root function to DoubleEvaluator here: http://javaluator.fathzer.com/en/doc/tutorial.php?chapter=extending Regards, Jean-Marc Astesana

  • Anonymous created ticket #17

    What should I do to add factorial function?

  • Fathzer Fathzer committed [r132]

    Removes sonar configuration that is useless in recent Sonarqube versions

  • Fathzer Fathzer committed [r131]

    Fixes problems in javadoc

  • Fathzer Fathzer modified ticket #16

    Unable to handle a String contains textual Operator

  • Fathzer Fathzer modified a comment on ticket #16

    Hi, The problem is with the protected Iterator<String> tokenize(String expression). It should cut the expression into tokens following your own grammar. The example in the tutorial states the tokens are separated by blank character, but it is not the case in the example you have. So you'll have to write a customized tokenize method that would return the following tokens in your example: type=PORT AND A AND * true If you need quote and escaped quote, you should handle these customizations yourself,...

  • Fathzer Fathzer modified ticket #15

    TestFunctionSeparatorHidenByBrackets fails

  • Anonymous posted a comment on ticket #15

    Hi, No known bug will survive year 2017 ;-) I released version 3.0.2 that solves the problem. Best regards Jean-Marc Astesana PS : Sorry for the delay, it's a shame ...

  • Fathzer Fathzer committed [r130]

    version 3.0.2

  • Javaluator Javaluator released /Javaluator-v3.0.2.zip

  • Anonymous posted a comment on ticket #16

    Hi, Thank you for your message. I finally resolve it by replacing the value that contains the operator with a String, and put the value in the map with the replaced String as the key. And then during evaluating the operands, I get the value from the map and use the value as the operand. Regards, Wenyuan

  • Fathzer Fathzer posted a comment on ticket #16

    Hi, The problem is with the protected Iterator<String> tokenize(String expression). It should cut the expression into tokens following your own grammar. The example in the tutorial states the tokens are separated by blank character, but it is not the case in the example you have. So you'll have to write a customized tokenize method that whould return the following tokens in your example: type=PORT AND A AND * true If you need quote and escaped quote, you should handle these customizations yourself,...

  • Anonymous posted a comment on ticket #16

    Is there any way to escape the Operator?

  • Anonymous created ticket #16

    Unable to handle a String contains textual Operator

  • Andrey B Andrey B posted a comment on ticket #15

    Good to know this project is alive, at least the author reponds :)

  • Fathzer Fathzer posted a comment on ticket #15

    Hello Christian, You're right, this is a known bug. The test is there to prevent...

  • Christian Gieche Christian Gieche created ticket #15

    TestFunctionSeparatorHidenByBrackets fails

  • Fathzer Fathzer modified ticket #14

    Square Root

  • Fathzer Fathzer posted a comment on ticket #14

    Hello, The main reason is that I think the hard part of evaluating an infix expression...

  • Anonymous created ticket #14

    Square Root

  • Fathzer Fathzer committed [r129]

  • Fathzer Fathzer committed [r128]

    Fixes incompatibilities with sourceforge hosting

  • Fathzer Fathzer committed [r127]

  • Fathzer Fathzer committed [r126]

    Continue framework commonalization with Yapbam

  • Fathzer Fathzer committed [r125]

  • Fathzer Fathzer committed [r124]

    Initial import.

  • Fathzer Fathzer committed [r123]

  • Fathzer Fathzer committed [r122]

  • Fathzer Fathzer committed [r121]

  • Fathzer Fathzer committed [r120]

  • Fathzer Fathzer committed [r119]

  • Pedro Vieira Pedro Vieira posted a comment on ticket #13

    Sir, you did not understand... (laughs) In my particular case, I cannot declare the...

  • Fathzer Fathzer modified a comment on ticket #13

    Here is a version of your testing code that works without any subclass. It uses StaticVariableSet:...

  • Fathzer Fathzer posted a comment on ticket #13

    Here is a version of your testing code that works, without any subclass and that...

  • Pedro Vieira Pedro Vieira posted a comment on ticket #13

    This is what I tried to do: Override the toValue method of DoubleEvaluator as to...

  • Fathzer Fathzer modified ticket #13

    Declare unkwon tokens as variables.

  • Fathzer Fathzer posted a comment on ticket #13

    Hi, Sorry if I didn't understand the question but it seems using StaticVariableSet...

  • Pedro Vieira Pedro Vieira created ticket #13

    Declare unkwon tokens as variables.

  • Fathzer Fathzer committed [r118]

    x

  • Fathzer Fathzer committed [r117]

  • Fathzer Fathzer committed [r116]

  • Fathzer Fathzer committed [r115]

  • Fathzer Fathzer committed [r114]

  • Fathzer Fathzer committed [r113]

  • Anonymous posted a comment on ticket #12

    Thank you very much :-)

  • Fathzer Fathzer modified ticket #12

    Matrix Support

  • Fathzer Fathzer modified a comment on ticket #12

    Hi, My understanding is the problem you have is '+' is not a token delimiter when...

  • Fathzer Fathzer posted a comment on ticket #12

    Hi, My understanding is the problem you have is '+' is not a token delimiter when...

  • Fathzer Fathzer modified a comment on ticket #12

    Here is a copy of a discussion I had with the author of the initial post: I want...

  • Fathzer Fathzer modified a comment on ticket #12

    Here is a copy of a discussion I had with the author of the initial post: I want...

  • Fathzer Fathzer posted a comment on ticket #12

    Here is a copy of a discussion I had with the author of the initial post: I want...

  • Anonymous created ticket #12

    Matrix Support

  • Fathzer Fathzer committed [r112]

  • Fathzer Fathzer modified ticket #11

    DoubleEvaluator is not thread safe

  • Fathzer Fathzer posted a comment on ticket #11

    Hi, Fix was included with version 3.0.1 released today. Thanks again for the bug...

  • Fathzer Fathzer committed [r111]

    v3.0.1

  • Fathzer Fathzer committed [r110]

  • Javaluator Javaluator released /Javaluator-v3.0.1.zip

  • Fathzer Fathzer modified ticket #10

    Cube root of -1

  • Fathzer Fathzer modified ticket #11

    DoubleEvaluator is not thread safe

  • Fathzer Fathzer modified ticket #10

    Cube root of -1

  • Fathzer Fathzer posted a comment on ticket #11

    Thanks, fix will be delivered soon (fixed in development version). Best regards Jean-Marc...

  • Fathzer Fathzer committed [r109]

  • Fathzer Fathzer posted a comment on ticket #10

    Hello, Unfortunately, I think this is a "bug/strange feature" of java.lang.Math,...

  • Fathzer Fathzer modified ticket #9

    Copyright

  • Anonymous created ticket #11

    DoubleEvaluator is not thread safe

  • Anonymous created ticket #10

    Cube root of -1

  • Fathzer Fathzer committed [r108]

  • Fathzer Fathzer committed [r107]

  • Fathzer Fathzer committed [r106]

    Initial import.

  • Fathzer Fathzer committed [r105]

  • Fathzer Fathzer committed [r104]

    Initial import.

  • Fathzer Fathzer modified a comment on ticket #9

    Hello, Javaluator is distributed under LGPLv3 license. I'm not a lawyer, nor an native...

1 >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.