Questions tagged [operations]

298 questions
0
votes
2 answers

Is it possible to list the cells that contain values in excel?

I am working on an OR problem in Excel, and I am trying to list the cells in the matrix that contain values. For example, if I had the identity matrix, I would like the function to return values A1, B2, C3. The reason being, I want to create…
Dwevon
  • 15
  • 1
  • 3
0
votes
1 answer

Multiple functions in only one

I would like to create a multiple functions inside an one function, in my case the function was named MYsummary, with three functions inside, but doesn't work. Im my code: Artificial data…
Leprechault
  • 1,531
  • 12
  • 28
0
votes
0 answers

Most adequate method for obtaining data

Let us suppose I do have two functions on a grid [X,Y]=meshgrid(x,y), f=f(x,y) and g=g(x,y) and I want to calculate sqrt(f^2+g^2) in two different ways: Expanding f^2 and g^2 symbolically first and then applying V1=(f.^2+g.^2).^(1/2). Using…
Ankara
  • 382
  • 2
  • 8
0
votes
4 answers

generate output from php array

i'm trying to generate a firewall template from a php config i've got this array $config=array('1024','3306','3804','127017'); and i would like this output 1024:3305 3307:3803 3805:127017 as you can see, the first and last value stay the same,…
vandel
  • 23
  • 3
0
votes
0 answers

Operations on base values with Less CSS

Hi I'm new to using Less and trying to make the best of the features it offers. What I would like to do is the following: say I have a few anchor elements in html Blue link Red…
Marcus Baptiste
  • 346
  • 3
  • 9
0
votes
1 answer

% operator giving strange result in swift ios

I am familiar with Mathematics and what the % operator (modulo) gives us for certain values. However, I am following along a Swift code lecture, and the instructor wants to return a value somewhere between 0 and half of the height of the view. He…
CodeMark22
  • 1,199
  • 1
  • 9
  • 11
0
votes
1 answer

String Replace Operation

I am modifying a code that I did not write. The code uses string replace to replace %d with the result number (ex: 100) so %d times becomes 100 times The problem is that I want to do operations on the string replace number. ex: %d + 30, but it…
Display name
  • 177
  • 1
  • 3
  • 15
0
votes
1 answer

OSB operation1 in Service1 to also call operation2 in Service2

I am new on OSB. 1) I have a Service S1 with two methods say : AsyncQueryAccount, SyncQueryAccount . AsyncQueryAccount has input parameters id, name . SyncQueryAccount has input parameters id,name,addToQueue . 2) I have a Service S2 with one method…
0
votes
3 answers

C Programming: Pointer arithmetics instead of index operations

So I am very new to C programming, and for a project, I have been given a quicksort program, which I will link below, and asked to re-write the quicksort program using pointer arithmetics, i.e without any index operations. How would I go about doing…
0
votes
2 answers

Bitwise operations in java

what does this piece of code mean ...Can anyone explain how does this work.. sum += (i & (1<
Subhash
  • 363
  • 1
  • 4
  • 15
0
votes
1 answer

Representing circle numbers as unsigned long integers

I am doing a project where I am doing a lot of computations on the circle S^1, that is, the interval [0,1) with all operations mod 1. It struck me that the double number representation is quite clunky for this purpose, as it contains quite a lot of…
0
votes
0 answers

Erratic behavior with gzip on unix

I am compressing log files daily and very recently I have been seeing some crazy results on the file type of the file after compression. Normally you would expect file 'filename.gz' returning gzip compressed data and some info on the file, but on…
user1490083
  • 361
  • 2
  • 7
  • 21
0
votes
1 answer

Writing a String representation of Python object

I have created a custom class GPSPosition. This class has the standard method str() defined, which would return a long string with all the values of the object returned in a specific format. If I write the string into a file, my GPS Device would be…
user3831696
  • 87
  • 1
  • 6
0
votes
1 answer

How to perform big numbers mathematic in Android?

I'm trying to perform this operations on two number but get NumberFormatException : invalid int : "X" how can i do this? $hash = $orderid * 3; $hash = $hash + 15; $hash = $hash . $userid; $hash = $hash - 120; $hash = $hash / 5; $hash = $hash .…
Mahdi Giveie
  • 630
  • 1
  • 8
  • 25
0
votes
0 answers

Grails: calculation of date intervals within 'Where' closure

i have the following table 'party' with start date und duration attributes: CREATE TABLE `party` ( `idparty` int(11) NOT NULL, `startDate` date DEFAULT NULL, `duration` int(11) DEFAULT NULL, PRIMARY KEY (`idparty`) ) ENGINE=InnoDB DEFAULT…
Kamen Jahr
  • 241
  • 2
  • 7
  • 15