[Date Index] [Thread Index] [Author Index]
Re: How to parametrize a block of commands?
On 7/17/2010 8:16 AM, Sam Takoy wrote: > > My question is this: could this entire block be turned into a function > "paramtrized" by F and Z. For example, denote that whole block by XXXXX. > Is there something along the lines of > > DiffGeom[F_, Z_] := XXXXX > r[g_] := a Cosh[(g - H/2)/a] > z[g_] := g > DiffGeom[r, z] > > In other words, once I have taught Mathematica to compute these objects > for general surfaces of revolution, I want it to apply it to a > particular surface of revolution. What's the best way to organize this? Use Module or Block Look them up in the Documentation. -- Helen Read University of Vermont