MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: With[{software=Mathematica}, Frustration]


I'm probably not paying enough attention, but what's wrong with the
following?

Print[
  With[{a = 2., b = 3.}, 
    Evaluate[StringForm["a = `1`, b = `2`, c = `3`, Sin[c] = `4`", 
	a, b, c, Sin[c]]]
    ]
  ]

This could be turned into a function:

myPrint[a_, b_] := Evaluate[
  StringForm["a = `1`, b = `2`, c = `3`, Sin[c] = `4`", a, b, c, Sin[c]]
  ]

myPrint[2., 3.]

--Mark.


  • Prev by Date: Inconsistency in Misc`Units`
  • Next by Date: FindRoot and Derivatives
  • Previous by thread: Re: With[{software=Mathematica}, Frustration]
  • Next by thread: Re: Re: With[{software=Mathematica}, Frustration]