Posts tagged: sage
-
Playing catch with Poison
December 21, 2017
My friend asked me this: Put balls into $n$ buckets uniformly at random and count $h$ the number of buckets with at least one ball in them. What is the expected value of number of balls $k$?
-
Ulam spiral
November 11, 2017
So, bored in a math talk Ulam starts writing integers in a spiral and circling primes. He soon notices something weird:
-
Miroslav and the separating wand
April 08, 2017
In a huge graph, it is hard to determine a bottleneck by just looking at it, or doing any type of search. And by a bottleneck, I mean part of graph that is not very much connected to the other part....
-
Step-by-step reduction
September 20, 2016
One of the things that I always tell my students is to check their solutions when they are done solving a problem. That by itself can mean several things, depending on what the problems is. Of course...
-
Generating not-so-much-random matrices
September 16, 2016
I've been using sage for a while now. I've also been teaching linear algebra for a few years. One of the problems in teaching linear algebra is coming up with a handful of examples of matrices that...
-
Gershgorin Disks
September 15, 2016
Gershgorin circle theorem roughly states that the eigenvalues of an $n \times n$ matrix lie inside $n$ circles where $i$-th circle is centred at $A{i,i}$ and its radius is the sum of the absolute...
-
Linear approximation and Taylor polynomials
June 16, 2016
For a given function $f(x)$ around a point $a$, if you zoom in close enough on the graph of the function, you can't tell the difference between the curve and the tangent line to the graph of the...
-
What to do with a long list?
April 22, 2016
I mean a list in SAGE. The answer is to
-
A full matrix with given eigenvalues
April 18, 2016
In Theorem 3.1 of "The combinatorial inverse eigenvalue problems: complete graphs and small graphs with strict inequality, W. Barrett, A. Lazenby, N. Malloy, C. Nelson, W. Sexton, Electronic Journal...
-
On the last digits of conscutive prime numbers
March 23, 2016
If you have a prime number $p$ (other than two and five) then the last digit of $p$ is 1, 3, 7, or 9. If for some reason we believe that prime numbers are randomly distributed (after all, the last...
-
Multiplication graph
February 03, 2016
I was watching this random video on youtube (which by the way is not the best video) that I thought maybe I can do the same thing. So, I started coding in Sage. Here is a what I want to do:
-
Sagemath for calculus
December 01, 2015
I have used several geogebra applets in my calculus class, but there's always things that you wanna do that there's no applet out there for, or you can't modify them etc. So, I decided to write my...
-
What would you do in CS Education Week?
November 17, 2014
Well, I'm planning on taking my Statistics students to a computer lab and introduce SQL to them through Khan Academy's Hour of Code program. What would you do?