« first day (62 days earlier)      last day (3294 days later) » 

5:39 AM
IN this www-inst.eecs.berkeley.edu/… question 4 says: "By testing the signs of the endpoints of the intervals, it is possible to break mul_interval into nine cases, only one of which requires more than two multiplications."
but i see the pattern below, where I could not understand what 9 cases are?
(4, 16) ---> (1, 2) (4, 8) | (-1, -2) (-4, -8)

(-16, 8) ----> (1, 2) (4, -8) | (1, -2) (4, 8) | (1, -2) (-4, 8) | (-1, 2) (4, -8) | (-1, 2) (-4, -8) | (-1, -2) (-4, 8)

(-16, -4) ---> (1, 2) (-4, -8) | (-1, -2) (4, 8)

(-8, 16) ---> (1, 2) (-4, 8) | (1, -2) (4, -8) | (1, -2) (-4, -8) | (-1, 2) (4, 8) | (-1, 2) (-4, 8) | (-1, -2) (4, -8)
 
3 messages moved from Python
 
 
2 hours later…
7:57 AM
def update_figure(self):
        # Build a list of 4 random integers between 0 and 10 (both inclusive)
        self.yAxe = np.append(self.yAxe, (getCO22()))
        self.xAxe = np.append(self.xAxe, self.i)
        # print(self.xAxe)
        if len(self.yAxe) > 10:
            self.yAxe = np.delete(self.yAxe, 0)

        if len(self.xAxe) > 10:
            self.xAxe = np.delete(self.xAxe, 0)

        self.axes.plot(self.xAxe, self.yAxe, scaley=False)
        self.axes.grid(True)

        self.i = self.i + 1
 
1 message moved from Python
 
0
Q: Memory leak in my python program

Rowan Klein Gunnewiekin my program I call with a threading.Timer every second the function shown below. I got the problem that my program grows bigger every second. Does someone know if the append function(that returns a new array) delete the old array? or is it possible this is the cause of my problem? def update_f...

 
1 message moved from Python
 
 
7 hours later…
3:31 PM
 

« first day (62 days earlier)      last day (3294 days later) »