Silverlight Animation using Mathematica

Keehong Song

Pusan National University,
Pusan, Korea

Silverlight vs. Flash

1. Silverlight (a.k.a Flash-killer) is the Microsoft web technology that has the advantage in doing certain types of animation over frame-based Flash simply because it is time-based on top of its flexibility of interaction among heterogeneous applications.
2. From developer’s point of view, Silverlight approach is less demanding in terms of resources than Flash in developing and debugging processes. 
3. The presentation discusses the basic ideas of connecting Silverlight with Mathematica kernel and then presents demos of Mathematica animation in which the WPF technology has the edge over the Flash solution.

Mathematica - Web Browser Connectivity Broker Utility

1. WPF application that 
    . allows Web browser to harness Mathematica functionality on the fly.
. promote s reusability and can be used to develp prototype applications for web server.
. can be used to develop Mathematica applications with minimum Mathematica programming skills.
. requires zero installation.
2. 
Web browser-> Mathematica : "window.external.doMath(Mathematica commands)"
Mathematica -> Web browser: "this.webBrowser.InvokeScript("displayMath", Mathematica output);"
3. techniques of displaying  Mathematica Mathematica and math expression.

list of Mathematica techniques for image files

Export["testxx.jpg",Integrate[1/(x^4-1),x],ImageSize->{400,200}]

ExportString[Integrate[1/(x^4-1),x],"JPEG"];

Show[Import["test.jpg"]]

Show@ImportString[ExportString[Plot[Sin[x],{x,0,2Pi}],"JPEG"]]

Rasterize[Integrate[1/(x^4-1),x],ImageSize->500]

XML`MathML`ExpressionToMathML[Integrate[ArcSin[x],x],"NamespacePrefixes"->{"http://www.w3.org/1998/Math/MathML"->"m"}]

Time - based Animation

Example: Simulation of cars arriving at a traffic signal.

Text - based Graphics

Example: Animated Mathematica graphics in Silverlight