Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Modular fibration animated with Sage
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Niles Johnson  
View profile  
 More options Sep 13 2012, 3:45 pm
From: Niles Johnson <nil...@gmail.com>
Date: Thu, 13 Sep 2012 12:45:10 -0700 (PDT)
Local: Thurs, Sep 13 2012 3:45 pm
Subject: Modular fibration animated with Sage

Hello Sage developers!

Some time ago I made an animation of the Hopf fibration using Sage.
 Recently, a graduate of the African Institute for Mathematical Sciences
has finished animating a different map from S^3 to S^2.  Ihechukwu Chinyere
worked with Bruce Bartlett there and made an animation visualizing what he
calls the modular fibration.  This is a map related to the j-invariant of
elliptic curves and to the SO(2) action on SL_2(R) / SL_2(Z).  The generic
fibers are trefoils, and there are two singular fibers which are unknotted
circles.

I'll leave the rest of the explanation to people who understand it better
than me -- here are links to Ihechukwu's essay and a relevant question /
answer on Mathoverflow:

https://sites.google.com/a/aims.ac.za/ihechukwu/links

http://mathoverflow.net/questions/93942/why-s3-k-and-sl2-r-sl2-z-are-...

And here's a link to the video:

http://www.youtube.com/watch?v=eqeqbjec97w

Lastly, there's a heartwarming example of the benefits of open development
here:  I made all of the Sage code for my animation public, and I
deliberately tried to use open-source software for the entire project so
that someone else could easily use the code I wrote.  I had never met
Ihechukwu or Bruce when they started working on this, nor did I know
anything about this modular fibration.  But I'm thrilled with their work!
 I certainly couldn't predict this, and this outcome makes me even happier
that I decided to make the source public :)

enjoy,
Niles


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Grout  
View profile  
 More options Sep 13 2012, 4:10 pm
From: Jason Grout <jason-s...@creativetrax.com>
Date: Thu, 13 Sep 2012 15:09:54 -0500
Local: Thurs, Sep 13 2012 4:09 pm
Subject: Re: Modular fibration animated with Sage
On 9/13/12 2:45 PM, Niles Johnson wrote:

> Lastly, there's a heartwarming example of the benefits of open
> development here:  I made all of the Sage code for my animation public,
> and I deliberately tried to use open-source software for the entire
> project so that someone else could easily use the code I wrote.  I had
> never met Ihechukwu or Bruce when they started working on this, nor did
> I know anything about this modular fibration.  But I'm thrilled with
> their work!  I certainly couldn't predict this, and this outcome makes
> me even happier that I decided to make the source public :)

That's really cool!

I was just playing around with the code a bit, which is really easy
using Sage's load command, for example:

http://aleph.sagemath.org/?q=72ded3ac-afc8-48ec-b991-3f95f27e1323

Some demos of this would make some awesome additions to
interact.sagemath.org!

Thanks,

Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Grout  
View profile  
 More options Sep 13 2012, 6:07 pm
From: Jason Grout <jason-s...@creativetrax.com>
Date: Thu, 13 Sep 2012 17:06:59 -0500
Local: Thurs, Sep 13 2012 6:06 pm
Subject: Re: Modular fibration animated with Sage
On 9/13/12 3:09 PM, Jason Grout wrote:

> On 9/13/12 2:45 PM, Niles Johnson wrote:
>> Lastly, there's a heartwarming example of the benefits of open
>> development here:  I made all of the Sage code for my animation public,
>> and I deliberately tried to use open-source software for the entire
>> project so that someone else could easily use the code I wrote.  I had
>> never met Ihechukwu or Bruce when they started working on this, nor did
>> I know anything about this modular fibration.  But I'm thrilled with
>> their work!  I certainly couldn't predict this, and this outcome makes
>> me even happier that I decided to make the source public :)

I looked at the code some more, and it looked like there was *lots* of
potential for speeding it up.  I first added some imports from the
python math library, which sped it up by a factor of 5-10 on one case
[1].  Then I converted the fib2_param function to use fast_callable (in
a really simple way...) [2].  That sped it up by another factor of 2-4
or so.

You can see the results here:

http://aleph.sagemath.org/?q=530d5d16-a57d-4cef-9eab-7b5dad6445c1

Comment or uncomment the load statements at the top to see the difference.

I put my changes up here: https://github.com/jasongrout/hopf_fibrations

I think there is still a lot of room for speeding this up more, if
someone wanted a fun project.

Thanks,

Jason

[1]
https://github.com/jasongrout/hopf_fibrations/commit/a8bcb7df4455389f...

[2]
https://github.com/jasongrout/hopf_fibrations/commit/0bd6ccf381764cf3...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Grout  
View profile  
 More options Sep 13 2012, 7:12 pm
From: Jason Grout <jason-s...@creativetrax.com>
Date: Thu, 13 Sep 2012 18:11:45 -0500
Local: Thurs, Sep 13 2012 7:11 pm
Subject: Re: Modular fibration animated with Sage
On 9/13/12 5:06 PM, Jason Grout wrote:

> I think there is still a lot of room for speeding this up more, if
> someone wanted a fun project.

And I got another factor of 2 by making the inner function a Cython
"class" [1]:

http://aleph.sagemath.org/?q=8b878cda-030d-4433-9d11-a10153d9d9a3

Okay, that's it for now.  But I still think there is room for
improvement.  On my computer, the initial version took 20 seconds to do
the above benchmark, and the Cython version takes .37s, so a speedup of
about 50x or so.  I don't see that same speedup on aleph, and I'm not
sure why.  Anyways, now it sort of works as an interact:
http://aleph.sagemath.org/?q=3d4f343c-323e-43f6-a8a8-149cfd7217dc

Jason

[1]
https://github.com/jasongrout/hopf_fibrations/commit/9c88cc0e3242ef3e...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Niles Johnson  
View profile  
 More options Sep 14 2012, 8:13 am
From: Niles Johnson <nil...@gmail.com>
Date: Fri, 14 Sep 2012 05:13:06 -0700 (PDT)
Local: Fri, Sep 14 2012 8:13 am
Subject: Re: Modular fibration animated with Sage

Thanks Jason!  I'm not surprised that there's lots of room for speed up --
and I agree it could be a lot of fun for the right kind of person :)

I've been out of the loop for a little while, and I guess I missed
interact.sagemath.org . . . I have a few things I'd like to add!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Lazzarotto  
View profile  
 More options Sep 16 2012, 9:23 am
From: Andrea Lazzarotto <andrea.lazzaro...@gmail.com>
Date: Sun, 16 Sep 2012 15:23:11 +0200
Local: Sun, Sep 16 2012 9:23 am
Subject: Re: [sage-devel] Modular fibration animated with Sage

2012/9/13 Niles Johnson <nil...@gmail.com>

> And here's a link to the video:

> http://www.youtube.com/watch?v=eqeqbjec97w

That's amazing!!! :D

--
*Andrea Lazzarotto* - http://andrealazzarotto.com*
*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruce Bartlett  
View profile  
 More options Sep 17 2012, 9:05 am
From: Bruce Bartlett <brucehbartl...@gmail.com>
Date: Mon, 17 Sep 2012 06:05:39 -0700 (PDT)
Local: Mon, Sep 17 2012 9:05 am
Subject: Re: Modular fibration animated with Sage

Indeed, thanks Jason for showing how to improve the code in this way. I will definitely return to these tips for my next Sage project.

Thanks once more to Niles for making his original Hopf fibration code (http://www.nilesjohnson.net/hopf-production.html) public and for helping Ihechukwu and I with this project.

Bruce Bartlett


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »