Questions tagged [evaluate]

execution of evaluations of expressions or evaluation functions. Use tag evaluation for rules, algorithms, and strategies of the evaluation.

What is it?

Evaluation is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.

This tag may should be used for the execution of evaluations.

Related tags

  • Prefer the tag if the question is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.
  • For more specific questions use tag

See also:

470 questions
9
votes
1 answer

VB.Net- Evaluating Mathematical Expression in a String

Is there a method that allows me to evaluate a mathematical expression in a string? Example (Not actual Code): Input = "2+2" Output = SomeMethod(Input) Output = 4 Update: Nevermind, I found a way around it by using DataTable.Compute.
Walker
  • 4,879
  • 3
  • 20
  • 16
9
votes
1 answer

bash: How to evaluate PS1, PS2, ...?

Possible Duplicate: Echo expanded PS1 Is there any way to 'evaluate' PS1, PS2, etc from within a bash script? Although, I can use alternate means to get all elements of my current PS1, I would really like to be able to reuse its definition…
Harry
  • 3,684
  • 6
  • 39
  • 48
8
votes
2 answers

How to call constructor in gdb for pretty-printers

When debugging with GDB I would like to set a convenience variable to a newly constructed value. I am programming using the Qt framework, so i would like to create a QString, but this is irrelevant to the question, since I would like to know how to…
ar31
  • 3,576
  • 1
  • 25
  • 22
8
votes
3 answers

tar pre-run to evaluate expected size or amount of files

The problem: I have a back-end process that at some point he collect and build a big tar file. This tar receive few directories and an exclude files. the process can take up to few minutes and i want to report in my front-end process (GUI) about…
yanger
  • 227
  • 1
  • 3
  • 14
8
votes
5 answers

On PhantomJS I can't include jQuery and without jQuery I can't post form data

I am having trouble running jQuery in PhantomJS. I have found this answer, which talks about no variable is available inside evaluate function but the question is about a node module and on my example I only call console.log inside evaluate…
newway
  • 647
  • 1
  • 13
  • 21
7
votes
4 answers

String Expression to be evaluated to number

I need to write a TSQL user defined function which will accept a string and return a number. I will call the function like dbo.EvaluateExpression('10*4.5*0.5') should return the number 22.5 Can any one help me to write this function…
PraveenVenu
  • 8,217
  • 4
  • 30
  • 39
7
votes
2 answers

How can I create functions that handle polynomials?

I have these problems about polynomials and I've spent about 4 hours on this, but I just can't get it. I'm new to Python and programming and I've tried working it out on paper, but I just don't know. Write and test a Python function negate(p) that…
confusedstudent
  • 139
  • 2
  • 3
  • 9
7
votes
2 answers

How to concat two strings and use the result as a variable name in coldfusion?

I have a form which has many fields in the format of name="field-1" name="field-2" name="field-3" name="field-4" etc.... On the form action page, I would like to be able to use a loop and be able to use the index of the loop to concat with a…
d.lanza38
  • 2,525
  • 7
  • 30
  • 52
6
votes
1 answer

XPathExpression not evaluatng in the proper context?

I'm trying to parse some XML from the USGS. Here's an example The "parameterCd" parameter lists the 3 items of data I want back. I may or may not get all 3 back. I'm doing this on an Android using the javax libraries. In my code, I initially…
Pete
  • 6,585
  • 5
  • 43
  • 69
6
votes
4 answers

How can I stop using evaluate() function?

I have a table with values under a column named:str_condition values in this column can be : variables.bit_male / application.bit_male / isdefined('session.int_user_id') The value can be complex as it can be. I need to use the value of the values in…
6
votes
1 answer

Algorithm to evaluate value of Boolean expression

I had programming interview which consisted of 3 interviewers, 45 min each. While first two interviewers gave me 2-3 short coding questions (i.e reverse linked list, implement rand(7) using rand(5) etc ) third interviewer used whole timeslot for…
5
votes
1 answer

Evaluating cells in parallel in Mathematica

I have this many hundreds of cell long Mathematica file and I want to use parallel evaluation. I have a 2 processor x 4 core each machine with 16 Gb memory. My Mathematica license allows me to run at most 2 master kernels with 1 of the master could…
Hsn
  • 291
  • 2
  • 6
5
votes
2 answers

Android - while debugging, can't evaluate getString() from resources

so, I'm trying to debug my app, and i'm evaluating expression with following code line: resources.getString(R.string.my_string); I should get my string from strings.xml, but I get an error: Method threw…
5
votes
5 answers

How to coerce AWK to evaluate string as math expression?

Is there a way to evaluate a string as a math expression in awk? balter@spectre3:~$ echo "sin(0.3) 0.3" | awk '{print $1,sin($2)}' sin(0.3) 0.29552 I would like to know a way to also have the first input evaluated to 0.29552.
abalter
  • 9,663
  • 17
  • 90
  • 145
5
votes
0 answers

How to get accuracy of each class in Tensorflow Estimator

I'm using Estimator in Python3 based on Premade Estimator from example (https://www.tensorflow.org/get_started/premade_estimators). I normally train the network and then evaluate. As the result of classifier.evaluate(...) I get python dictionary,…
Martin Special
  • 141
  • 1
  • 7
1
2
3
31 32