What are your favorite Sage things to show colleagues teaching at the college level?

49 views
Skip to first unread message

Gutow, Jonathan H

unread,
May 16, 2012, 9:21:47 AM5/16/12
to sage...@googlegroups.com
Dear Sagers (Sagees?, Sage Mavins?),

Next week I will be running a 2-3 hour workshop on my campus to introduce Sage to my colleagues in chemistry, physics and mathematics. I'm pretty clear what I want to have in the presentation for the people teaching chemistry and physics (I work at the borderline), but would like ideas on what to show people from mathematics. Please post your favorite examples, functions and features.

Thanks,
Jonathan
Dr. Jonathan H. Gutow
Chemistry Department gu...@uwosh.edu
UW-Oshkosh Office:920-424-1326
800 Algoma Boulevard FAX:920-424-2042
Oshkosh, WI 54901
http://www.uwosh.edu/facstaff/gutow/

Kürsat Aker

unread,
May 16, 2012, 10:55:50 AM5/16/12
to sage-edu
Hi,

A model of the molecule C60 has got to be my favorite example. It can
be construced as the Cayley graph of the alternating group on 5
letters:



A5 = PermutationGroup(["(1,2,3,4,5)", "(1,2)(3,4)"])
C60=A5.cayley_graph()
C60.show3d(vertex_size=0.03, edge_size=0.01, edge_size2=0.02,
vertex_colors={(1,1,1):C60.vertices()}, bgcolor=(0,0,0),
color_by_label=True, iterations=200) # long time


Best,

Kursat

kcrisman

unread,
May 16, 2012, 1:29:55 PM5/16/12
to sage-edu
I always do the following graphic, borrowed from something Stan Wagon
and David Bressoud do in their number theory book (but with Mma):

@interact
def power_table_plot(p=(7,prime_range(50))):
P=matrix_plot(matrix(p-1,[mod(a,p)^b for a in range(1,p) for b in
srange(p)]),cmap='jet')
show(P)

How many number theory theorems can you see? (Ideally the labels
would be slightly different, but it's fun. E.g., the last column
should be all blue - Fermat's Little Theorem.)


If I were you, I'd also crib an interact showing different Riemann
sums for integration or something like that. Everybody has to teach
calculus.

- kcrisman

Andrey Novoseltsev

unread,
May 17, 2012, 11:23:30 AM5/17/12
to sage-edu
On May 16, 11:29 am, kcrisman <kcris...@gmail.com> wrote:
> If I were you, I'd also crib an interact showing different Riemann
> sums for integration or something like that.  Everybody has to teach
> calculus.
>
> - kcrisman

I was deeply satisfied with this interact for multivariate calculus:
http://www.math.ualberta.ca/~novoseltsev/2012Winter215R1/region_plotter
if you just change the order of integration, you can see "cubes" in
cylindrical and spherical coordinates, but adjusting limits shows you
the domain of any iterated triple integral. It also features JMol ;-)

If you like it as well, it is probably better to run it from a
worksheet - Sagecell changed a bit since the time I wrote that script
and not everything there works/looks as intended.

Best regards,
Andrey

Jason Grout

unread,
May 17, 2012, 12:57:25 PM5/17/12
to sage...@googlegroups.com
That is *really* cool. I made a small change to use $ instead of <div
class="math"> to do the integrals:

http://aleph.sagemath.org/?q=254db9b2-c92b-4e5e-8ba5-be629fe7c622

Thanks,

Jason


Jason Grout

unread,
May 17, 2012, 12:58:21 PM5/17/12
to sage...@googlegroups.com
Is that what broke? Or does something else not work right?

Thanks,

Jason


Andrey Novoseltsev

unread,
May 17, 2012, 1:12:03 PM5/17/12
to sage-edu
On May 17, 10:58 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> > That is *really* cool. I made a small change to use $ instead of <div
> > class="math"> to do the integrals:
>
> Is that what broke?  Or does something else not work right?
>

Thanks Jason!

I used div to make integrals big and centered. Actually, if I copy my
code to the code cell on your page colours work just fine even with
div, so I just need to go over new embedding procedure to make sure
that regular fonts are used and not image ones (which also seem to
produce some delay). Other things that got "broken" are spacing for
labels, but it does not show up for that interact. Here on the bottom
"=" are on top of boxes because I deliberately shifted them to
compensate for too much space before: http://www.math.ualberta.ca/~novoseltsev/2012Winter215R1/curldiv

Sorry, I don't mean to hijack this thread ;-)
Andrey

Jonathan

unread,
May 18, 2012, 10:46:00 AM5/18/12
to sage...@googlegroups.com




Sorry, I don't mean to hijack this thread ;-)
Andrey
Andrey,

Not a problem.  It's a good suggestion.   Now if I can only figure out why my updated 5.0 server won't run in secure mode with the new notebook...

Jonathan 

Andrey Novoseltsev

unread,
May 18, 2012, 10:57:44 AM5/18/12
to sage...@googlegroups.com

I think you need  libssl-dev installed before building Sage, as a related package was removed from the distribution due to license issues.

P.S. Why does google need to break perfectly well and concise group interface?.. I really need to figure out Gmain...

John Travis

unread,
May 18, 2012, 11:43:59 AM5/18/12
to sage...@googlegroups.com
On Thursday, May 17, 2012 11:57:25 AM UTC-5, Jason Grout wrote:
On 5/17/12 10:23 AM, Andrey Novoseltsev wrote:
> http://www.math.ualberta.ca/~novoseltsev/2012Winter215R1/region_plotter

That is *really* cool.  I made a small change to use $ instead of <div
Jason

+1  

I'm going to steal this for a bunch of WebWork problems!

JT 

Andrey Novoseltsev

unread,
May 18, 2012, 12:02:34 PM5/18/12
to sage...@googlegroups.com

Thanks ;-) Feel free to steal others from
http://www.math.ualberta.ca/~novoseltsev/2012Winter215R1/
(linked under "Due Date")
As I said before, labels need some adjustments to look better.

Andrey
Reply all
Reply to author
Forward
0 new messages