Standard map in matlab

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 04-27-2005
sanctus's Avatar
Resident Diabolist
Hypography Staff Member
Administrator
5 Reel Amazon Slots Champion! Acres of gold Champion! Ant Tracks Champion! Aqua Slug Champion! Arkadium Skeeball Champion! Arkanoid Flash Champion!
Join Date: Mar 2004
Location: Geneva-Bern-Zürich, Switzerland;Oslo,Norway
Posts: 2,509
Blog Entries: 1
sanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to all
Standard map in matlab

I programmed the standard map in matlab and now my PC at home (where I have no internet at moment) is turning since 20 hours to calculate it with many initial conditions. I f any of you has got time, I would be very thankful if someone could tell me how to speed it up.
The standard map is with in my case x an angle theta (tz means thetazero) and y the impulsion: x[n+1]=x[n]+ y[n] and p[n+1]=p[n]+K*sin(x[n+1]) where [..] means indice.

P.S.: the function you launch is variationcond.m
__________________
Administrator

A COUNTRY WITHOUT AN ARMY IS LIKE A FISH WITHOUT A BIKE!!!


I don't believe in god, but I do believe in what others call utopies.
Reply With Quote
  #2 (permalink)  
Old 04-27-2005
alexander's Avatar
Resident USSRian
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
Re: Standard map in matlab

hmm, perhaps you can attatch some code, I'll be glad to take a look at it, probably rewrite it in perl or python and see how it goes...
__________________
And remember that great question that Pierre-Simon Laplace and Sir Isaac Newton, Andrei Markov and David Hilbert, Richard Feynman and Enrico Fermi, Albert Einstein and Edmund Halley did not come to ask throughout all of their dedication and work: "Who the hell is IMing me?"


This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
  #3 (permalink)  
Old 04-28-2005
sanctus's Avatar
Resident Diabolist
Hypography Staff Member
Administrator
5 Reel Amazon Slots Champion! Acres of gold Champion! Ant Tracks Champion! Aqua Slug Champion! Arkadium Skeeball Champion! Arkanoid Flash Champion!
Join Date: Mar 2004
Location: Geneva-Bern-Zürich, Switzerland;Oslo,Norway
Posts: 2,509
Blog Entries: 1
sanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to all
Re: Standard map in matlab

I actually attached it, but didn't verify if it was on...

Actually I can't upload matlab files so I changed in a txt file....
but if you haven't got time it isn't of vital importance as I can let run the machines over the week-end.
Attached Files To view attachments in this forum your post count must be 1 or greater. You currently have 0 posts.
__________________
Administrator

A COUNTRY WITHOUT AN ARMY IS LIKE A FISH WITHOUT A BIKE!!!


I don't believe in god, but I do believe in what others call utopies.
Reply With Quote
  #4 (permalink)  
Old 04-29-2005
alexander's Avatar
Resident USSRian
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
Re: Standard map in matlab

i see about 150000 loops, dont see why that would take so long, do you have to plot it or can you output your points to a file or something?
__________________
And remember that great question that Pierre-Simon Laplace and Sir Isaac Newton, Andrei Markov and David Hilbert, Richard Feynman and Enrico Fermi, Albert Einstein and Edmund Halley did not come to ask throughout all of their dedication and work: "Who the hell is IMing me?"


This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
  #5 (permalink)  
Old 05-02-2005
sanctus's Avatar
Resident Diabolist
Hypography Staff Member
Administrator
5 Reel Amazon Slots Champion! Acres of gold Champion! Ant Tracks Champion! Aqua Slug Champion! Arkadium Skeeball Champion! Arkanoid Flash Champion!
Join Date: Mar 2004
Location: Geneva-Bern-Zürich, Switzerland;Oslo,Norway
Posts: 2,509
Blog Entries: 1
sanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to allsanctus is a name known to all
Re: Standard map in matlab

No I actually need to plot it, but anyway I stick to this code as I got the presentation tomorow (that's why I've been away for a while). A prof told me that a code in matlab is about 200 times slower than if I wrote it in C++ or else, so maybe that's the reason for taking a long time calculating 150000 points.

Anyway, thanks for having looked into it (and I suggest you take just one value of K around 0.75 and then you plot it it is a quite nice figure you obtain-you also have to have a pz in the form of 2*Pi*a with a irrational)-
__________________
Administrator

A COUNTRY WITHOUT AN ARMY IS LIKE A FISH WITHOUT A BIKE!!!


I don't believe in god, but I do believe in what others call utopies.
Reply With Quote
  #6 (permalink)  
Old 05-03-2005
alexander's Avatar
Resident USSRian
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
Re: Standard map in matlab

I've been pretty busy with this new project lately it's pretty cool but is still at alpha, need to do more code work, but when it works, i'll be happy to share
__________________
And remember that great question that Pierre-Simon Laplace and Sir Isaac Newton, Andrei Markov and David Hilbert, Richard Feynman and Enrico Fermi, Albert Einstein and Edmund Halley did not come to ask throughout all of their dedication and work: "Who the hell is IMing me?"


This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Toward an Intelligent Design Science James Putnam Philosophy of Science 110 02-19-2005

» Current Poll
Favorite James Bond?
Sean Connery - 63.64%
7 Votes
George Lazenby - 0%
0 Votes
David Niven - 9.09%
1 Vote
Roger Moore - 9.09%
1 Vote
Timothy Dalton - 9.09%
1 Vote
Pierce Brosnan - 0%
0 Votes
Daniel Craig - 9.09%
1 Vote
Hate 'em all - 0%
0 Votes
Who's James Bond? - 0%
0 Votes
Total Votes: 11
You may not vote on this poll.

All times are GMT -8. The time now is 01:10 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2000-2008 Hypography
Part of the Hypography - Science for Everyone Network