Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

New Free Tools on Dev Shed!

#1
May 4th, 2013, 06:49 AM
 spaceharry
Registered User

Join Date: May 2013
Posts: 1
Time spent in forums: 18 m 20 sec
Reputation Power: 0
Numerical Vector Movement Problem

Hi there

I hope I am in the right forum for this. I am searching the web for some time now to find the right piece of code for this two dimensional numerical vector movement problem.

At time 0 I have 2 movement direction vectors of 2 objects which are unaffected by themselves.

At time 1 the vector then start to attract themselves with some given force F and movement from time 0 should be numerical implied in time 1.

So in math it looks like this:

S_1n = W_1n

S_2n = W_1n + W_2n + F_1n

with
-S_1n beeing the way of the n object makes at time 0
-S_2n beeing the way of the n object makes at time 1
-W_1n beeing the direction vector of the n vector
-F_1n the attraction of the n vector

Philipp

#2
May 4th, 2013, 03:31 PM
 salem
Contributed User

Join Date: Jun 2005
Posts: 4,259
Time spent in forums: 2 Months 4 Weeks 1 Day 14 h 47 m 13 sec
Reputation Power: 1827
My first thought would be to use something like this
http://www.gnu.org/software/gsl/
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper

#3
May 4th, 2013, 09:58 PM
 b49P23TIvg
Contributing User

Join Date: Aug 2011
Posts: 4,157
Time spent in forums: 1 Month 3 Weeks 2 Days 8 h 41 m 50 sec
Reputation Power: 455
Mass

The sum of all forces on an object equals the time rate of change of its momentum. Unless it's a photon, it has mass. You need mass in your equations!

For photons, p = h \nu / c . The frequency changes as the photon moves through a gravitational field. Gosh, and where does the energy go/ come from? Or does the rate of time change for the various observers? Dunno, I didn't take the general relativity class.

However, explain weight. Why didn't Mr. Einstein consider this? Clocks run at different rates at different gravitational potentials. Clocks run differently between your head and feet. Causing the gravitational force.

Don't trust my poor interpretation. Read the original:

Mark Lawrence, Quantum Time
quantumrelativity.calsci.com/QuantumTime.pdf‎
__________________
[code]Code tags[/code] are essential for python code!

 Viewing: Dev Shed Forums > Programming Languages > C Programming > Numerical Vector Movement Problem