473,385 Members | 1,564 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

algorithmic mathematical art

i've long time been interested in algorithmic mathematical art. That
is, mathematical or algorithmic visual art works that are generated by
computer such that the program's source code reflects the algorithmic
essence of the visual quality in the art work. (for detail, see
Algorithmic Mathematical Art at
http://xahlee.org/Periodic_dosage_di...aci_larcu.html
)

Mathematica programers, especially Michael Trott, have been doing
algorithmic mathematical art since the early 1990s. I started my
programing career with Mathematica in 1995, and since late 1990s i've
been searching for such work outside of Mathematica, but it is almost
non-existent. (maybe less than 10 cases that i know of, and most their
code do not capture the algorithmic nature of the rendered art.) The
one most prominent mention of it is in chapter 2 of the book Structure
and Interpretation of Computer Programs by Hal Abelson et al.

anyway, today i ran into this page by Frank Buß
http://www.frank-buss.de/lisp/functional.html
which used the idea in the book to render a traditional Escher's tiling
piece.

I hope this will help the spread of algorithmic mathematical art. If
you find other algorithmic mathematical art, please let me know!

Xah
xa*@xahlee.org
∑ http://xahlee.org/

May 7 '06 #1
4 1893
Xah Lee wrote:
The one most prominent mention of it is in chapter 2 of the book
Structure and Interpretation of Computer Programs by Hal Abelson et al.
Thanks for the interesting book tip, it is available online:

http://mitpress.mit.edu/sicp/full-te...ml#%_sec_2.2.4
anyway, today i ran into this page by Frank Buß
http://www.frank-buss.de/lisp/functional.html
which used the idea in the book to render a traditional Escher's tiling
piece.


I should note that I've used the original paper from Peter Henderson, which
is cited in the book, too:

http://mitpress.mit.edu/sicp/full-te...tnote_Temp_202

--
Frank Buss, fb@frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de
May 7 '06 #2
On 2006-05-07 12:31:47 +0100, Frank Buss <fb@frank-buss.de> said:
anyway, today i ran into this page by Frank Buß
http://www.frank-buss.de/lisp/functional.html
which used the idea in the book to render a traditional Escher's tiling
piece.


I should note that I've used the original paper from Peter Henderson, which
is cited in the book, too:

http://mitpress.mit.edu/sicp/full-te...tnote_Temp_202


A very simple change to the code allows it to run
on most platforms:

1. prefix Frank's code with:

(defvar *ps-file* "/Users/verec/workspace/pictures/eisher.ps")

where you replace the string literal with whatever hard coded path
is right for your platform.

2. change plot so that it reads:

(defun plot (p)
" saves a picture as postscript and shows it"
(with-open-file (s *ps-file*
:direction :output :if-exists :supersede)
(format s "500 500 scale~%")
(format s ".1 .1 translate~%")
(format s "0 setlinewidth~%")
(format s "0 0 moveto 1 0 lineto 1 1 lineto 0 1 lineto 0 0 lineto~%")
(dolist (line (funcall p '(0 0) '(1 0) '(0 1)))
(destructuring-bind ((x0 y0) (x1 y1)) line
(format s "~D ~D moveto ~D ~D lineto~%" (float x0) (float y0)
(float x1) (float y1))))
(format s "stroke~%")
(format s "showpage~%"))
#+nil (sys:call-system "c:/gs/gs7.05/bin/gswin32.exe -g800x800
c:/tmp/test.ps")
)

that is, the hard-coded path now refers to *ps-file*, and the
OS specific call is commented out.

3. evaluate:

(plot *fishes*)

The resulting file is a plain PS file. On OS X you can view
it with Preview, and even convert it to pdf if you so wish:

http://lisp.jfb-city.co.uk/misc/eisher.pdf
--
JFB

May 7 '06 #3
Xah Lee wrote:
i've long time been interested in algorithmic mathematical art. That
is, mathematical or algorithmic visual art works that are generated by
computer such that the program's source code reflects the algorithmic
essence of the visual quality in the art work. (for detail, see
Algorithmic Mathematical Art at
http://xahlee.org/Periodic_dosage_di...aci_larcu.html


Hi Xah
thanks for the interesting links!
I sometimes dabble in computer art.
Nearest example of my stuff to hand are these:

http://ohmslaw.org.uk/images/newtonRaphsonArt/

Those images are based on a variant of the Newton-Raphson root finding
equation (and used on complex numbers - the pictures represents the
Argand plane, i.e. x => real, => imaginary).

I need to find more of my stuff and give it a proper home!
cheerio
lex
May 7 '06 #4
Xah Lee wrote:
i've long time been interested in algorithmic mathematical art. That
is, mathematical or algorithmic visual art works that are generated by
computer such that the program's source code reflects the algorithmic
essence of the visual quality in the art work. (for detail, see
Algorithmic Mathematical Art at
http://xahlee.org/Periodic_dosage_di...aci_larcu.html


Oh, speaking of escher, try the following:
http://occular.livejournal.com/89597.html
Turns out it's in Wolfram's book. Interesting looking.
May 7 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: gelong | last post by:
Hi there, I have a problem in writing a mathematical function using C++ programming. How to write an input that can insert whole equation? Example is the input are x² + 3y - 4z³ = 0. In maple, it...
21
by: ambika | last post by:
Hello, I have a very basic doubt. Why is C called a structured programming language??why structured? C++ is called a Object Oriented language 'cos it obeys the OOP's concepts..Why is C called a...
1
by: Jerry chapman | last post by:
Does C# have the standart mathematical functions such as sin,cos etc.? Or does one have to use pinvoke>
0
by: Juan R. | last post by:
I have updated some basic requirements for a generic mathematical markup language for scientific requirements at the next link. ...
5
by: jeremito | last post by:
I am extending python with C++ and need some help. I would like to convert a string to a mathematical function and then make this a C++ function. My C++ code would then refer to this function to...
0
by: Massi | last post by:
Hi everyone, I'm trying to build (on windows environment) a grid in which every cell contains a mathematical formula, the problem is the following: when I try to put in the cells some mathematical...
13
by: jacek.strzelczyk | last post by:
Hello, I'm looking for a C library that provides the notation of n- dimensional mathematical functions. Or is there any other way to decode that kind of functions in C language? Thanks in...
2
by: Madmartigan | last post by:
Hi Operating system is WinXP using SharpDevelop version 1.1.0 and build 2124. I'm new to C# and have a problem trying to get a user to enter 3 mathematical operators of choice, then 2 numbers...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.