473,231 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

Python Trajectory Module?

Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.

Thanks!
Dec 31 '07 #1
4 2918
sq***********@gmail.com schrieb:
Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.
Maybe the ODE library and it's Python-wrapping PyODE are useful for you.

Diez
Dec 31 '07 #2
On Dec 31, 9:40*am, "squishywaf...@gmail.com"
<squishywaf...@gmail.comwrote:
Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.

Thanks!
Try VPython.

-- Paul
Dec 31 '07 #3
sq***********@gmail.com wrote:
Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.

Thanks!
If you combine the advice of Diez B. Roggish and Paul McGuire:
Download and install VPython.
Download and install PyODE.
Get and run VPython Contributed program:
http://www.vpython.org/contributed/visualjoints.py
which shows a weight on a hinge with another attached to the ball;
quite believable dynamics. Although the code is really not
carefully written, looking at it may give you a sense of how
little work you'll have to do to get some physics action going.
Dec 31 '07 #4
sq***********@gmail.com wrote:
Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.

Thanks!
Depends on how detailed / graphical you've in mind.
You might be interested in this:

http://oase.uci.kun.nl/~mientki/data...reenshots.html

I've put a scanned version of my written notes about the trajectory example.
No need for ODE in my very simple mind, because the functions describing
the solution are already known.

If you want to view the demos / animations,
be sure to view the demo at the bottom first,
because it explains the philosophy behind the program.
Only 1 major feature is not described in this demo (because when I made
the demo I had no solution for it, now I think I have)
and that is :
an integrated help / instruction / assignment / fill-in forms /
judgement, specially for educational puposes.

The program is not yet released,
because I'm now cleaning it up and debugging it (by making demos ;-)
cheers,
Stef


Jan 2 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stephen Ferg | last post by:
I need a little help here. I'm developing some introductory material on Python for non-programmers. The first draft includes this statement. Is this correct? ...
6
by: Jonathon Blake | last post by:
All: I thought I had seen a python library/module that easily enabled one to read / write / create MSAccess databases a couple of years ago. Now, I can't find it, or any reference to such a...
5
by: jeremy.d.brewer | last post by:
Hi, I'm rather new to Python, and I've just written my first Python C module. I was wondering if some more experience Pythonista would look over what I've written and given me some pointers (or...
5
by: Will McGugan | last post by:
Hi folks, I've written a Python chess module that does the following. * Reads / Writes PGN files * Write FEN files * Validates moves * Lists legal moves * Detects check / mate / stalemate /...
1
by: zxo102 | last post by:
Hi everyone, I need your help for using python odbc module. I have a simple table defined as create table A ( userId char(10), courseid char(10), grade integer, primary key(userId,courseId)...
4
by: Luke Miller | last post by:
Hello, I am working on my first python module based on a c program. The module builds and installs OK using dist-utils, and imports fine into python. However, when I try and use the one wrapper...
0
by: Will McGugan | last post by:
Hi folks, I have just posted a python 'netstring' module on my blog. Comments welcome! http://www.willmcgugan.com/2006/06/04/python-netstring-module/ Regards, Will McGugan
2
by: vedran_dekovic | last post by:
Hello, Can you tell me one simple python phone module and if that module have some moudules which need download from internet,then give me urls of that modules
4
by: Frank Aune | last post by:
Hello, I've been playing with the python logging module lately, and I manage to log to both stderr and MySQL database. What I'm wondering, is if its possible to specify the database handler in...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.