creating a mathematica demonstration from scratch

17
CREATING A MATHEMATICA DEMONSTRATION FROM SCRATCH

Upload: dasha

Post on 23-Feb-2016

60 views

Category:

Documents


0 download

DESCRIPTION

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. Manipulate. Manipulate[expression , { u,u min ,u max ,du }] - PowerPoint PPT Presentation

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