creating a mathematica demonstration from scratch

17
CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Upload: clarissa-claudia-hogwood

Post on 15-Dec-2015

217 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Page 2: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Software Requirements

To Create Mathematica Version 8

To View Mathematica is not needed CDF Player browser plug-in I’ve tested IE / Chrome / Safari / Firefox

Page 3: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Manipulate

Manipulate[expression , {u,umin,umax,du}] Add as many parameters as you want

{u,umin,umax},{v,vmin,vmax},…

Add label and initial value {{u,uinitial,”label”}, umin,umax}

Page 4: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

2d Graph

Page 5: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Manipulate Vertical Shift

Page 6: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH
Page 7: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH
Page 8: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

ControlType

The control for a parameter is decided by Mathematica by the context, but this can be overridden

Slider, Slider2D PopupMenu

{{u,uinitial,”label”}, umin,umax},ControlType->PopupMenu

SetterBar {{u,uinitial,”label”},{u_v1,u_v2,…}},ControlType-

>SetterBar

Page 9: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

PopupMenu

Page 10: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

SetterBar

Page 11: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH
Page 12: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Control, Delimiter & Grid

Control Designates the parameter as a control Control[{{u,u_initial,”label”},u_min,u_max}

] Delimiter

Inserts Horizontal Line between controls Grid

Helps to organize your controls Grid[{a11,a12,…},{a21,a22,…},…}]

Page 13: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH
Page 14: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Save Definitions

Will save anything that has been defined outside the scope of the Manipulate command into the Manipulate Command

Page 15: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

ImageSize

Plot option ImageSize -> Full

Page 16: CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Putting on the Web

Authoring to the Wolfram Demonstrations Project

Embedding in a Webpage Save As CDF

Html needed <embed src=“yourfile.cdf” width=“xxx”

height=“xxx”>

Deploy Standalone

Just creates the cdf file Embed in HTML

Creates code to copy and paste to your html file