Circle and Square

Art, Code, Music, Mathematics

  • About
  • Art:31416kungfu
  • Curated Links
  • Jabberwocky
  • Music
  • OffCenter Apps

Circle and Rectangle

Posted by epsilon on March 4, 2013
Posted in: Art, Code, Mathematics. Tagged: circle, dylan carlson, python, rectangle, square, turtle graphics. Leave a comment
Circle and Rectangle

Circle and Rectangle

Image made by Dylan Carlson using Python’s turtle graphics. This image is made up entirely of copies of a large rectangle rotated around one corner. Click on image to see higher resolution version.


zipTimer: an iPod/iPhone app for pacing piano practice, cooking, workouts, you name it.


Rothko

Posted by epsilon on March 4, 2013
Posted in: Art. Tagged: abstract expressionism, Art, painting, rothko. Leave a comment

20130304-172104.jpg

Posted by epsilon on March 1, 2013
Posted in: 31416kungfu, Photography. Leave a comment

Photo by Dylan

31416kungfu's avatarFilms, photography, art, etc.

DSC02826

View original post

Nautilus

Posted by epsilon on March 1, 2013
Posted in: Art, Code, Mathematics. Tagged: logarithmic spiral, nautilus, python, spiral, technology, turtle graphics. Leave a comment

nautilus

This figure was drawn with Python turtle graphics. A square is repeatedly drawn, then rotated and rescaled. Code at github.


zipTimer: an iPod/iPhone app for pacing piano practice, cooking, workouts, you name it.


Positively electrifying performance!

Posted by epsilon on March 1, 2013
Posted in: Music. Tagged: entertainment, Music, sweet home alabama, tesla coil, video. 1 Comment

From Wikipeida:

A Tesla coil is an electrical resonant transformer circuit invented by Nikola Tesla around 1891. It is used to produce high-voltage, low-current, high frequency alternating-current electricity.


zipTimer: an iPod/iPhone app for pacing piano practice, cooking, workouts, you name it.


Posted by epsilon on March 1, 2013
Posted in: 31416kungfu, Art. Leave a comment

Painting by 31416kungfu.

31416kungfu's avatarFilms, photography, art, etc.

Painted by: 31416kungfu

View original post

Composition

Posted by epsilon on February 26, 2013
Posted in: Music. Tagged: composition, Music, musical composition, Stravinsky. Leave a comment

Composers combine notes. That’s all.

— Igor Stravinsky

Igor+Stravinsky+Leemiller11

Stack machine — Python 3

Posted by epsilon on February 25, 2013
Posted in: Code. Tagged: mul, python, rcl, reverse polish notation, software, stack machine, technology, variables. Leave a comment

Fun stack machine code (Python 3) posted to github in file sm.py.

Examples:
1. Simple instruction: run("1 2 add") ==> 3
2. More complicated code: run("1 2 add 2 3 add mul") ==> 15
3. New instruction: run("defprog cube dup dup mul mul /defprog 3 cube") ==> 27
4. Use variables: run("3 a sto 4 b sto a rcl square b rcl square add") ==> 25
You can also run this at the command line, e.g., python3 sm.py 1 2 add.

Verbosity is on by default, in which case you get a stack trace, e.g.,
[nano] python3 sm.py 1 2 add 3 add
=================================
code: [‘1’, ‘2’, ‘add’, ‘3’, ‘add’]
———
token: 1
stack: [1]
———
token: 2
stack: [1, 2]
———
token: add
in exop, stack: [1, 2, ‘add’]
stack: [3]
———
token: 3
stack: [3, 3]
———
token: add
in exop, stack: [3, 3, ‘add’]
stack: [6]
==============
6

Say python3 sm.py for more information.


zipTimer: an iPod/iPhone app for pacing piano practice, cooking, workouts, you name it.


Blur

Posted by epsilon on February 24, 2013
Posted in: Photography. Tagged: blur, iphone, iphone photo, photography. Leave a comment
Blur

Blur

Accidental photo … did I drop my camera? No memory of this one!


zipTimer: an iPod/iPhone app for pacing piano practice, cooking, workouts, you name it.


Card Game

Posted by epsilon on February 22, 2013
Posted in: Mathematics. Tagged: card game, deck of cards, fair game, gambling, gaming, math problem, odd number, probability, puzzle. Leave a comment

cardsuits2 A Math Problem

The house deals from a huge, essentially infinite, deck of cards composed of spades, hearts, diamonds, and clubs in equal proportions. Each person plays separately against the house. On each round, cards are dealt until a heart appears. The cards are counted. If there are an odd number, the house wins, and the player pays one dollar to the house for each card. If there are an even number, the player wins, and the house pays him $1.04 for each card. Is this a fair game?

Explain.


zipTimer: an iPod/iPhone app for pacing piano practice, cooking, workouts, you name it.


Posts navigation

← Older Entries
Newer Entries →
  • Categories

  • Recent Posts

    • Generative Art
    • BonsaiBot
    • New York City
    • Geometry in New York City
    • Nonsense words in Swift
  • Top Posts

    • Werner Herzog on Imagery
    • Fractal cross
    • Arduino capacitative proximity sensor
  • Pages

    • About
    • Art:31416kungfu
    • Curated Links
    • Jabberwocky
    • Music
    • OffCenter Apps
  • Archives

  • January 2026
    M T W T F S S
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
    « Feb    
  • Category Cloud

    31416kungfu Art Code Film Mathematics Music NYC Photography Politics RPi-Arduino Science Travel Uncategorized Words
Blog at WordPress.com.
Circle and Square
Blog at WordPress.com.
  • Subscribe Subscribed
    • Circle and Square
    • Join 143 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Circle and Square
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...