MathGroup Archive 2012

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

Search the Archive

Mantaining the same form


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?.

Example:

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.

Thanks



  • 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