spring model....i want to get the program to return the value of the period of the motion of the pendulum i have tried putting this outside the loop oldVelocity = vector(0,0,0) and this inside the loop before v: oldVelocity = m.v with print statement: if oldVelocity.y/m.v <0: print ("time = ",t) but i get this error: oldVelocity = m.v AttributeError: 'int' object has no attribute 'v' i have also tried: oldVeloctiy = v inside loop and changing the if statement to if oldVelocity.y/v <0: print ("time = ",t) here is my code: from visual import* from visual.graph import* scene.background = …

Member Avatar
Member Avatar
+0 forum 3

Hi all, My head is about to explode and I was wondering if anyone has ever found a solution to my problem. Using MYSQL and PHP I need to gather those people under 5 years of age and break up the ages into 6 month periods whilst keeping a count of how many of each there are. The database of users is very big and I need the fastest possible calculation. Any help will be appreciated. Many thanks

Member Avatar
Member Avatar
+0 forum 1

Hello First of all, I'm new to PHP, and also to Daniweb. I've been looking everywhere for some PHP code to skip to the next line every time my string ($description) has a period in it. So here's an example of what I want to achieve: Text: The car is green. The tree is yellow What I want it to be: The car is green. The tree is yellow. Thanks in advance!

Member Avatar
Member Avatar
+1 forum 3

Hello everyone, Well, I have just been notified that Google PageRank is updated in some periods of time. Well, let's suppose that it will have been updated in August, but my PageRank increased from 3 to 4 now. Will it have effects in my serch terms today, or jut in August when it is updated? My page is: <plug snipped> Thanks in advance, Tibor

Member Avatar
Member Avatar
+0 forum 4

The End.