MathGroup Archive 2012

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

Search the Archive

Mantaining the same form

  • To: mathgroup at
  • Subject: [mg124039] Mantaining the same form
  • From: Miguel Gil <misvrne at>
  • Date: Sat, 7 Jan 2012 05:15:59 -0500 (EST)
  • Delivered-to:
  • Reply-to: comp.soft-sys.math.mathematica at

At a function in which one parameter is an expression "expr", Mathematica 8.0 evaluates or simplifies the value of "expr" when it is introduced.
How is that Mathematica keep the same form of the "expr" introduced?.


In []: MyFunction [expr_]: = expr;
MyFunction [(Sin [2x], Tan [y]) / (x * Sec [y]^2)]

Out []: (Cos [y]^2 (Sin [2x], Tan [y]) / x

I want to get the same expression (Sin [2x], Tan [y]) / (x * Sec [y]^2)

Clearly, the input expression and modified expression are equivalent, but are not equal. 
For example, if we were to apply the rule of L'Hopital or the theorem Schwarz  the results would be erroneous.


  • Prev by Date: Re: Extension to BinLists Function
  • Next by Date: Re: SortBy won't order irrationals
  • Previous by thread: Re: Sorting point-arrays by rows and columns, cont.
  • Next by thread: Re: Mantaining the same form