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
3
votes
1 answer

Return value from page evaluation (puppeteer, asnyc programming)

I've got the following problem: I have a page evaluation in puppeteer which includes asnychronous parts. I want to return the value from the asynchronous part to puppeteer, however, it just returns undefined without waiting for the Promise to…
Noah
  • 661
  • 1
  • 8
  • 17
3
votes
1 answer

Getting Field of study (disciplines) hierarchy information from Microsoft academic API

Is there any good way/workaround to get disciplines and subfields hierarchy information? For example, Optics is Sub discipline of Physics and it got subfields like Gemology, Optical physics. Which intern might have another child field of studies?
3
votes
2 answers

Passing js Variable to html file GAS - BASIC

I'm trying to pass a variable (my name in cell A1) from my code.gs to my Index.html and email it. Can someone please tell me what I'm doing wrong or point me in the right direction. Code.gs function doGet() { return…
3
votes
1 answer

Cannot navigate with casperjs evaluate and __doPostBack function

When I try to navigate the pagination on sites with links where href is a __doPostBack function call, I never achieve the page change. I am not sure what I am missing, so after a few hours of messing around I decided to see if someone here can…
rowasc
  • 320
  • 1
  • 3
  • 10
3
votes
4 answers

Need Groovy syntax help for generating a Closure from a String

I'm trying to generate a closure from a string. The code inside the closure references a DSL function build(). The errors I'm getting imply that Groovy is trying to execute the closure instead of just declaring it. What is the correct syntax for…
Jeremy Woodland
  • 3,444
  • 5
  • 17
  • 25
3
votes
1 answer

Evaluate < > in XML+XSL (aka double parsing)

I just exported my whole LiveJournal-Blog with an exporting application to an XML file. Reason for this is to archive it all and preserve for future generations. I want to make a simple layout file for it, so I can read the posts and go all…
3
votes
3 answers

Can I Evaluate An Excel VB Constant That Is In String Format?

Is it possible to Evaluate a String which contains a valid Excel VB Constant's Name to return that Constant's Value? eg Dim ConstantName as String Dim ConstantValue as Long ConstantName="xlValues" ConstantValue=…
mikebinz
  • 370
  • 1
  • 4
  • 17
3
votes
1 answer

How to evaluate Enum in an If statement?

I am trying to implement Enum into my code for the first time. I have a simple custom class that looks like this: public class Application { //Properties public string AppID { get; set; } public string AppName { get; set; } public…
Dbloom
  • 1,302
  • 3
  • 18
  • 45
3
votes
3 answers

Switch statement always resolves to default instead of case

So I've recently been trying out D, as many programmers I know are recommending I learn it over C++. I'm using the DMD Compiler v2.057, and this is my code: while(cliLoopC) { write("?> "); string iPt_ = std.string.tolower(readln()); …
LMS
  • 4,117
  • 5
  • 27
  • 37
3
votes
3 answers

PHP - DOMXpath - Get the result

I have errors when I want to print the result of an evaluate expression with XPath. $url = $xpath->evaluate('//a/@href', $event); echo $url ; I have this error : Catchable fatal error: Object of class DOMNodeList could not be converted to string My…
geekInside
  • 588
  • 2
  • 8
  • 18
3
votes
1 answer

Executing build-in functions from VBA (Excel)

I need to have a capability to execute any kind of build-in functions (such as 'sum' or 'len') from VBA (MS Excel). One of the restrictions that I have is that I may not pass cell ranges as arguments to these functions. Instead of this, I should be…
nhusnullin
  • 51
  • 1
  • 1
  • 3
2
votes
1 answer

struts2 evaluate empty string

I have jsp file to display error message in depends on whether the error string is empty or not.
But whatever errorMsg is, the div section…
user1006080
  • 75
  • 1
  • 4
  • 11
2
votes
4 answers

Evaluating command with Awk

The problem is that: I have different txt files in which is registered a timestamp and an ip address for every malware packet that arrives to a server. What I want to do is create another txt file that shows, for every ip, the first time a malware…
papafe
  • 2,959
  • 4
  • 41
  • 72
2
votes
1 answer

How do I evaluate a Sympy function in Python?

I am facing a major issues in python using sympy. I didn't find any solutions to my problem or at least, I couldn't apply the solutions I found on my problem. import sympy as sp import math as ma import numpy as np E1=72500 A1=15 U01,s,C1,U02 =…
Rasit Er
  • 19
  • 2
2
votes
1 answer

Partially evaluate an expression in R

Sorry. I have an expression: #x^p I want to evaluate this for a given p. p -> 0 # 1 p -> 1 #x p -> 2 #x^2 p -> 3 #x^3 p -> -1 #x^-1 If I type in: p -> 1 eval(p) #1 BUT p -> 1 eval(x^p) Gives the error: #Error in eval(x^p) : object 'x' not…
heh
  • 23
  • 4