Brushes new very fun application for the iPhone

Posted in math on November 11, 2009 by isallaboutmath

Now in our hands we have a portable studio that we can use to paint the program for the iPhone is called Brushes

the website is at http://brushesapp.com/ very easy to learn painting application

These are some examples of quick sketches I made after getting the application.

Yoani Sanchez and other bloggers taken by Cuban secret police.

Posted in blog, censorship, cuba, internet, liberty with tags , , on November 7, 2009 by isallaboutmath

The well known Cuban bloggers Yoani Sanchez , Claudia Cadelo and Orlando L Pardo were taken by force by the state security police of the Castro regime,

Yoani on telephone interview mentioned

“Fui secuestrada al peor estilo siciliano, con violencia verbal, física, llaves de inmovilidad, rodillazos”.

(I was sequester in the worst Sicilian mafia style, with verbal and physical violence, they immobilize  and beat us.)

They were trying to participate in a march-performance against no violence that was performed in Vedado at 23th street in front of the Yara movie theater.

After been beaten they were release. It seems the intention was so that they will not be able to participate in the peaceful march against No violence.

This is a video of  the non violent performance executed as planned

Producing a simple 3d Animation with Mathematica 7.0 running in parallel on four kernels.

Posted in Mathematica, math, mathematics with tags , , on October 6, 2009 by isallaboutmath

This is an advance on something I am currently working for www.isallaboutmath.com

I need to produce some Spheres in 3d rotating in space so I figure since I have Mathematica 7.0 and it produces very good 3d images I should be able to use it.

I am going to list the code and explained what it does

p1[\[Theta]_] := RotationTransform[\[Theta], {0, 0, 1}][{0, 3.5, 0}];
a1[\[Theta]_] :=
RotationTransform[\[Theta], {0, 0, 1}][{0, 3.5, -1/2}];
a2[\[Theta]_] := RotationTransform[\[Theta], {0, 0, 1}][{0, 3.5, 1/2}];
r[\[Theta]_] :=
Rasterize[
Style[Graphics3D[{Sphere[{0, 0, 0}, .8], Sphere[p1[\[Theta]], 1/4],
{Orange, Tube[{a1[\[Theta]], a2[\[Theta]]}, 0.04]},
{Blue, Tube[{{0, 0, 0}, p1[\[Theta]]}, 0.04]},
{Red, Tube[{{0, 0, -1}, {0, 0, 1}}
]}}, PlotRange -> 4.5, Boxed -> False, Background -> Black,
ImageSize -> {790, 480}, ViewPoint -> {3, 3, 3},
BaseStyle -> Yellow, Axes -> False, AspectRatio -> 1]
, Antialiasing -> True], RasterSize -> 2500];
DistributeDefinitions[p1];
DistributeDefinitions[r];
DistributeDefinitions[a1];
DistributeDefinitions[a2];
ParallelTable[
Export["planeta" <> ToString[\[Theta]] <> “.png”,
r[N[\[Theta], 4]/100], ImageResolution -> 2500,
ImageSize -> {790, 480}], {\[Theta], 0, 628, 1}]

p1[\[Theta]_] := RotationTransform[\[Theta], {0, 0, 1}][{0, 3.5, 0}];

a1[\[Theta]_] :=

RotationTransform[\[Theta], {0, 0, 1}][{0, 3.5, -1/2}];

a2[\[Theta]_] := RotationTransform[\[Theta], {0, 0, 1}][{0, 3.5, 1/2}];

r[\[Theta]_] :=

Rasterize[

Style[Graphics3D[{Sphere[{0, 0, 0}, .8], Sphere[p1[\[Theta]], 1/4],

{Orange, Tube[{a1[\[Theta]], a2[\[Theta]]}, 0.04]},

{Blue, Tube[{{0, 0, 0}, p1[\[Theta]]}, 0.04]},

{Red, Tube[{{0, 0, -1}, {0, 0, 1}}

]}}, PlotRange -> 4.5, Boxed -> False, Background -> Black,

ImageSize -> {790, 480}, ViewPoint -> {3, 3, 3},

BaseStyle -> Yellow, Axes -> False, AspectRatio -> 1]

, Antialiasing -> True], RasterSize -> 2500];

DistributeDefinitions[p1];

DistributeDefinitions[r];

DistributeDefinitions[a1];

DistributeDefinitions[a2];

ParallelTable[

Export["planet" <> ToString[\[Theta]] <> “.png”,

r[N[\[Theta], 4]/100], ImageResolution -> 2500,

ImageSize -> {790, 480}], {\[Theta], 0, 628, 1}]

The first 3 lines are making rotations around the z axis in 3d space of a point located at (0,3.5,0) and two other points located at (0,3.5,-1/2) and (0,3.5,1/2).

The next line where we define the function r is the meat of the program and where most of the hard work is done we use Rasterize to get an image the argument we use in the function defined represents the angle of rotation of the object we are rotating in our case we will be rotating a sphere and a line.

Since doing this computations is very computer intensive task and Mathematica 7.0 by default give you access to 4 parallel kernels we decided to use the parallel power of Mathematica 7.0.  So we need to distribute the definitions of the functions we have created and that is archive with DistributeDefinitions and can be seen on the next 4 lines.

Finally we get to the ParallelTable this is very much equivalent to Table command in Mathematica but it is executed in parallel!

We use Export to produce an image on a local directory  and in our case we are exporting png images (a type of compressed raster image) we are using also very high resolution as to produce very good quality images.

Since we need to output a sequence of images they need to be name in an increasing and ordered sequence so that the graphics program where we will assemble the animation can pick up the images easily. In our case we use Adobe After Effect CS4 to transform the sequence of images out of Mathematica 7.0 to produce the animation. This method produce images of very good quality. The images in this case will be named planet1.png, planet2.png, …. up to planet628.png

and the rotation of the angle will go from 0 to 6.28 or approximately 2 Pi! so one complete round trip around the center.

This is one image of the animation.

planeta19

The image seems to be a little squash this has to do with Mathematica producing images for video once it gets into Adobe After Effect we can select Interpret Footage with Pixel Aspect Ratio of 0.91 ratio and then the sphere will look round again!

Here is the short animation

The results of this will appear in an upcoming animation for www.isallaboutmath.com about Thales of Miletus.

Making learning Fun. Algodoo.

Posted in math on September 10, 2009 by isallaboutmath

http://www.algodoo.com/wiki/Home

Algodoo is a fantastic software that provides a unique learning experience for kids and adults is derive from Phun a software we describe here a while back.

See prior post on Phun at

http://blog.isallaboutmath.com/2008/06/09/livios-mathematical-creation-with-phun/

Conformal Mappings and Art

Posted in math on September 10, 2009 by isallaboutmath

Follow the link to see some awesome applications of the Conformal mapping to pictures

http://www.flickr.com/photos/sbprzd/sets/72157594172266668/

The Oracle of Wolfram. Wolframalpha.

Posted in Mathematica with tags , , on May 17, 2009 by isallaboutmath

It could be said this is the comming of age of search engine. We have seen yahoo first then google and many other minor stars. Get ready now we have

http://www.wolframalpha.com/ 

What is so different or new about this search engine?

Well to start it uses Mathematica to produce the result of the queries! Mathematica is a wonderful software that allows one to do very sofisticated mathematical computation and that have a lot of information embeded in the system.

Wolframalpha allows one to not just search for information but to find new information from existing information in other words to mined information to ask questions to correlated information.

 I found some cute things from Wolframalpha already.

At one point I guess their servers were overwhelm and I got this answer!

I’m sorry Dave, I’m afraid I can’t do that. (Famous line from Arthur C Clarke 2001 Space Odyssey.

WolframAlpha2

On the other hand I try something simple like getting Pi to 100,000 digits and after paging a few times got this errors that shows part of the inner workings of the system is Mathematica Code !!!

 

wolfram1

To learn more about wolfram alphahttp://www.wolfram.com/products/mathematica/madepossible/wolframalpha.html

Tania Brugera Performance. With Spanish Subtitles.

Posted in math with tags on March 31, 2009 by isallaboutmath

 

Tania Brugera is a Cuban performance artist

See this video where she explain some of her work in English

 

Fab Labs. The future coming…

Posted in math with tags , , on March 31, 2009 by isallaboutmath

This is a wonderful TED talk about the fabrication labs from MIT

http://www.ted.com/index.php/talks/neil_gershenfeld_on_fab_labs.html

the MIT site

http://fab.cba.mit.edu/content/tools/

The magic of life. Cell animation.

Posted in math with tags , , on March 31, 2009 by isallaboutmath

See what is inside of each of us

http://multimedia.mcb.harvard.edu/anim_innerlife_lo.html

 

see also this TED talk

 

http://www.ted.com/index.php/talks/david_bolinsky_animates_a_cell.html

 

to think that from all this a consciousness arises that is able to learn about itself!

Freedom beautiful freedom!

Posted in blog, censorship, cuba, democracy, internet with tags , , , on March 30, 2009 by isallaboutmath

Here is a performance in Cuba. Yoani Sanchez and many others use a minute to express freely

 

 

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

What follows is a translation of what Yoani Sanchez said.

Cuba is an island surrounded by sea and is also an island surrounded by censorship. Some of the information control and especially the Internet have opened up some cracks with blogs. In the wake of alternative blogosphere and is known to a good part of the Cuban population. We are a … accentuate the awakening of public opinion.

The authorities consider the technology as a wild horse to be tame. The independent bloggers want to run freely. Difficulties in disseminating our sites are many. Passed from hand to hand and thanks to flash memory, CDs, the obsolete diskettes the content of the blogs  goes through the island.

Internet is becoming a public forum of discussion where the Cubans are writing opinions. The real island is starting to be a virtual island that is more democratic and more pluralistic. Unfortunately these winds of free expression in the Internet have only just started to show up in our watchful reality.
Let us not wait for the authorization to enter the internet. To have a blog or to write an opinion.

It is time to jump the wall of control.

See this blog post by Yoani

http://desdecuba.com/generationy/?p=472

and this other blog post by Claudia

http://octavocercoen.blogspot.com/2009/03/one-minute-of-freedom-per-person.html