Questions tagged [operations]
298 questions
0
votes
2 answers
Project9.java uses unchecked or unsafe operations
public class Project9
{
public static void main(String args[])
{
InventoryItem[] items = new InventoryItem[3];
items[0] = new InventoryItem("Coffee", 1);
items[1] = new InventoryItem("Pencils", 2);
items[2] =…
0
votes
1 answer
Arithmetic operations in ASM Language
I just need some help. I don't fully understand and I am fairly new to masm32 so if you could explain, that would be great!
MOV AX, 200
ADD AX, 300
MOV RESULT, AX
Will result be equal to 500? I tried adding 3 and 2 and using this to show…

Gionelle Tribiana
- 3
- 2
- 5
0
votes
2 answers
Matrix row operations
I have a matrix A = [1 2 3;2 5 9;2 3 4]. Now I want to make a search on all the elements of the matrix. Any element found greater than 8 should be detected and whole row pertaining to that element should be deleted.
As in this example A(2,3)>8.…

Vivek Kumar
- 3
- 2
0
votes
1 answer
How can/Can I handle math operations between two instances of a class in c#
I have a 2D vector class and I have a function that multiplies vectors, one the adds, divides, ect. I was wondering if instead of calling a function, if it would be possible to control what happens when I use *,/,+, or - . For example, could I…

user2484722
- 21
- 1
0
votes
3 answers
How To Run Eclipse Debugger Mode to See Order of Operations?
In a previous question I had asked about recursion one of the responses recommended that I use debugger mode to see the order of operations. I had a few more order of operations questions, but figured I should use the debugger to run it instead of…

LearnIT
- 336
- 2
- 7
- 23
0
votes
1 answer
Can HP OpenView read app status data stored in SQL Table?
I need to know if HP Operation Manger (formerly OpenView) can read application staus information from a table in SQL server database. Like I am storing the log data from SSIS (SQL Server Integration Services) package in a SQL table and I want this…

Faiz
- 5,331
- 10
- 45
- 57
0
votes
2 answers
how to avoid inaccuracy in multiplications and divisions in python
I am working with python and playing with multiplications and divisions but I can't get the accuracy that I want with this operations. The following example may help to reach my point.
Let a = 3 and b = 4, their euclidean norm (sqrt(a*a + b*b)) is…

Alejandro Sazo
- 796
- 15
- 31
0
votes
3 answers
Matrix Operations?
As I am a SCHEME beginner, I am having a tough time figuring out how to work with matrices.
I am unsure on how to do the following:
A) Given a matrix, return the dimensions of said matrix
EX:// '(2 3 4)
(1 0 6)
should return (2.3) for 2 rows,…

Seebs
- 11
- 1
0
votes
1 answer
WCF Test Client service operations not updated
I am quite new in WCF. I am creating a new WCF service. I initially had 1 operation. But after some time I decided to add two more. The 2 new operations doesn't appear in the Microsoft WCF test client. How do I resolve my problem?
Update : I…

Lawrence Wong
- 1,129
- 4
- 24
- 40
0
votes
1 answer
How to TDD with .Net Data Services and Service Operations
My current solution is to create a class that has my service/data business logic, test that with a local db (mdf) and then wrap that class with identical functions from the data service class.
public class MyDataService : DataService
{
…

Alexander Zanfir
- 544
- 5
- 14
0
votes
2 answers
How to report timeout in Asynchronous call?
I am learning threading.My intension is to pass some values to a method for calculation,if the result will not be returned within 20 ms,i will report "Operation timeout".Based on my understading i have implemented the code as follows:
public…

user184805
- 1,839
- 4
- 19
- 16
0
votes
1 answer
Is it possible to apply user defined functions to series in pandas?
If we have two series s1 and s2 we can apply arithmetic operations to them: s1 + s2 or s1*s2. The arithmetic operation will be applied pairwise (assuming that the two series have the same length) as a result we get a new series. This feature makes a…

Roman
- 124,451
- 167
- 349
- 456
0
votes
1 answer
Invalid operations to binary expression ('id' and 'id')
I have a array fetched from the core data and trying to do some simple calculation but getting errors of Invalid operations to binary expression
pop_cum[i]= (pop_ln_array[i-1] + pop_ln_array[i]);
//getting error at this point of "Invalid operations…

user1489709
- 407
- 4
- 10
0
votes
0 answers
C# File Stream Conflicts with Timer
I'm coding a program for recording security logs in c#. But there are several problems.
First i create a .txt file to record logs. With:
FileStream fs1 = File.Create("C:\\" + filename + ".txt");
fs1.Close();
Then, in a loop i write something in…

Zzap
- 174
- 2
- 3
- 14
0
votes
1 answer
Which functions and operations are allowed in parallel block?
Code:
double x(){return (double)rand()/(double)RAND_MAX;}
double y(){return (double)rand()/(double)RAND_MAX;}
double z(){return (double)rand()/(double)RAND_MAX;}
int d(double x, double y, double z){
if ( ( (pow(x,2)+pow(y,2)) <1 ) && ( z<=1…

gaussblurinc
- 3,642
- 9
- 35
- 64