Help with plotting (Python or sth simmilar)
Page 1 of 1
dingo_d
VIP Member



Posts: 14555

PostPosted: Thu, 6th Jan 2011 21:01    Post subject: Help with plotting (Python or sth simmilar)
So I searched and searched all over and found nothing. Basically I need to draw an energy diagram



And I could do that in photoshop or illustrator in a heartbeat but hey, that's not very sciency grinhurt

So any ideas. I'm desperate Sad


"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson
chiv wrote:
thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found.

Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Thu, 6th Jan 2011 21:09    Post subject:
I don't see the formula of the point you posted, but you can do this sort of thing really easy in C# with drawing. You can do the calculation in a F# library for more intuitive functional programming.
Back to top
dingo_d
VIP Member



Posts: 14555

PostPosted: Thu, 6th Jan 2011 21:34    Post subject:
The program in C that gave me the number of possible degeneracy is

Code:

#include <stdio.h>

int main(void)
{
int a, b, n;
for(n = 0; n <= 10; n++)
{
    for(a = 0; a <= 10; a++)
   {
        for(b = 0; b <= 10; b++)
            if(n == 2*a + b)
            printf("(%d, %d), ", a,b);
   }
   printf("\n");      
}
}


And the picture is different that the one I posted but the idea is the same.


"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson
chiv wrote:
thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found.

Back to top
garus
VIP Member



Posts: 34200

PostPosted: Thu, 6th Jan 2011 21:45    Post subject:
snip
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group