Questions tagged [expression]

Combination of several programming symbols and values intending to produce a result

An expression is code before it gets evaluated. That is, evaluating an expression will give you a result.

Expressions can consists of combinations of variables, constants, operators, function calls, or whatever constructs are available in that language.

Many s have an expression data type, and an evaluation function (often called eval), where calling eval(an_expression) will calculate a result.

Related tags

7598 questions
2
votes
1 answer

Getting all items from dictionary values which are also list of items

let's say I have the following dictionary : public Dictionary> rooms = new Dictionary>(); I need to get all available bookings regardless of the room, using lambda expression. for example I need to do the…
Nour
  • 5,252
  • 3
  • 41
  • 66
2
votes
2 answers

Python Timestamp Regular Expression

Can someone help me with my code where I have written data from a csv file into the timeStamp list? The data in the list is currently formatted like so 03.08.2012 07.11.15 PM. And I need the just the time 07:11:15 PM to be put into the actTime…
scriptdiddy
  • 1,207
  • 3
  • 17
  • 31
2
votes
1 answer

Expression on Func with multiple parameters

I am trying to write an expression that invokes a method that accepts more than one argument as an input and this expression acts as a where clause to the nhibernate queryover engine. Currently I am getting an error saying: System.Exception :…
user917670
  • 873
  • 1
  • 11
  • 22
2
votes
4 answers

Face Animation Synchronised with the speech

I am developing a Interactive Spoken Dialogue System, in which user will say something to the system and system will answer him in voice and generating facial expressions according to the voice. But, i can't get any idea that how can i generate…
roshan_iiita
  • 51
  • 1
  • 7
2
votes
2 answers

reference value in DataColumn Expressions

given an expression like so DataTable1.Columns.Add("value", typeof(double), "rate * loan_amt"); in a datatable with 10000 rows where rate is same for all rows and loan_amt varies When the rate changes, it changes for all currently that means…
Kumar
  • 10,997
  • 13
  • 84
  • 134
2
votes
1 answer

Expected Expression Error when Using UIPopoverViewController

this is my first post here. I'll try to get to the point quickly, as I haven't been able to find an answer to this problem yet. I'm just starting out. I'm trying to load a view as a popover, and I'm following some tutorials online, but I'm getting…
Studio Symposium
  • 287
  • 2
  • 16
2
votes
3 answers

evaluate one variable in an expression with two variables

I want to evaluate f with the mean=7 mean=7 f <- expression(-(x-mean)^2/2) then get a new expression: -(x-7)^2/2 How could I do it? Thanks.
moli
  • 129
  • 2
  • 8
2
votes
1 answer

Get Object from Delegate Filter Expression Expression>

Using lambda delegate Expression> - where my expression takes a Role object (POCO). Looking to use that POCO Role object and map it to a data layer Role object with matching properties. To do that, I need to be able to get the Role object from the…
The Evil Greebo
  • 7,013
  • 3
  • 28
  • 55
2
votes
1 answer

jasper reports - sharing expressions/variables

There is a concern within my organization with regard to having business logic embedded within jasper reports for performing certain calculations. Obviously in order to create reports you need to utilize expressions and variables. Is there a good…
user1043036
  • 83
  • 1
  • 5
2
votes
3 answers

Expression Inside Object - Javascript

I don't think this is possible from what I read, but is there away to check if my map marker is null in the following code? I read something about prototypes, but I'm not sure if that's what I need to use. Here is the code: this.currentLocation =…
mkyong
  • 12,497
  • 12
  • 37
  • 56
2
votes
2 answers

SSRS BIDS Tooltip text formatting

="Project: " + Fields!barname.Value + VbCrLf + "Service: " + Fields!SERVICE.Value Is it possible to make the above text BOLD when I hover over to display the tooltip using the expression language in BIDS, have tried html tags which do not seem to…
JsonStatham
  • 9,770
  • 27
  • 100
  • 181
2
votes
1 answer

Finding Points in Contours

So here is the code that i used to detect the contours: IplImage* DetectAndDrawQuads(IplImage* img) { CvSeq* contours; CvSeq* result; CvMemStorage *storage = cvCreateMemStorage(0); IplImage* ret = cvCreateImage(cvGetSize(img), 8, 3); IplImage*…
Knighk
  • 405
  • 4
  • 12
2
votes
2 answers

Filtering Entity Framework results on SQL Server

First up: we are not doing TPH (table per hierarchy), that would make this a lot simpler. I have about 20 POCOs that all have similar properties in some cases. The similar properties I care about are ___.CreatedDate and ___.UpdatedDate. For some…
Bryan Boettcher
  • 4,412
  • 1
  • 28
  • 49
2
votes
1 answer

C# how to combine two expressions into a new one?

I have two expressions: public static Expression> IsDivisibleByFive() { return (x) => x % 5 == 0; } and public static Expression> StartsWithOne() { return (x) => x.ToString().StartsWith("1"); } And I want to…
Ryan Weir
  • 6,377
  • 5
  • 40
  • 60
2
votes
2 answers

Equation that compute a Neural Network in Matlab

I created a neural network matlab. This is the script: load dati.mat; inputs=dati(:,1:8)'; targets=dati(:,9)'; hiddenLayerSize = 10; net = patternnet(hiddenLayerSize); net.inputs{1}.processFcns =…