| | I have a list of numbers (example: [-1, 1, -4, 5]) and I have to remove numbers from the list without changing the total sum of the list. I want to ... | This is the best algorithm I could come up with after struggling with a couple of Project Euler's questions.
def get_primes(n):
numbers = set(range(n, 1, -1))
...
| Given two vectors X and Y, I have to find their correlation, i.e. their linear dependence/independence. Both vectors have equal dimension. The result should be a floating point number ... | Today, as I tried to put together a script in Octave, I thought, this may be easier in python. Indeed the math operators of lists are a breeze, but loading ... | I have a list of numbers. I also have a certain sum. The sum is made from a few numbers from my list (I may/may not know how many numbers it's ... | Here is a stumper for you math geeks out there.
I have a python list that is just a sequence that looks like this:
myList=[1,2,3,4,5,6,7,8,9,10,11,12,13,(...etc...),43]
Unfortunately, the data from which the list ... | I've a huge list (60 000+) of coordinates and I haven't found a way for recognizing the outer borders.
The list of coordinates are quite random, but they're defining some really specific ... | | I have output like this:
LL= [['a', 2, 3, 4, 13], ['b', 6, 7, 8, 13], ['c', 10, 11, 12, 13]]
Instead of "13", I would like to get maximum of elements ... | I need to take this list I have created and find the closest two points and print them out. How can I go about comparing each point in the list. New ... | How do I, say, take [111, 222, 333] and multiply it by 3 to get [333, 666, 999]?
| This should be fairly easy, but I'm getting a headache from trying to figure it out. I want to list all the coordinates between two points. Like so:
1: (1,1)
2: (1,3)
In between: ... | I'm having a time series data sets comprising of 10 Hz data over several years. For one year my data has around 3.1*10^8 rows of data (each row has a time ... | |
|