1

TipsTricksandTraps.nb

Report from the Trenches: Tips, Tricks and Traps for Mathematica Programmers Jennifer Voitle [email protected]

Introduction A mindmap of some of the items discussed in this presentation follows. (The mindmap was brainstormed in Inspiration 4.0 and imported into Mathematica.) (mindmap disappeared, sorry!)

Why Program in Mathematica? Off@General::"spell1"D Off@General::"spell"D

ü Notebooks! ü Variety of Programming Styles!

newtemps = Drop[Temperatures,-1] + Deltat dTdt; Temperatures = AppendTo[newtemps,newtemps[[Nd2]] ];

TipsTricksandTraps.nb

Applications

Air Properties Air Property data are in form {T [F], k [BTU/hr-ft-F],rho in {lb/ft^3], mu in [lbm/ft-hr] }

2

TipsTricksandTraps.nb

Temperature = Flatten@Join@Table@100 + 20 i, 8i, 0, 45