MathGroup Archive 2007

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

Search the Archive

Re: simple question


For the responses I got, I realize
that I should have titled "hard question"
this thread!

Cheers
Dimitris

 /  dimitris       :
> Hi.
>
> I have a simple question but I can't find any relevant.
> Suppose a user-defined function with comments [that is (*...*)
> structures]
> added.
>
> Let for example
>
> \!\(Nint[g_ (*function*) , n_Integer, {x_, a_, b_} (*
>       the\ variable\ and\ the\ limits\
>         of\ integration*) , opts___ (*set\ possible\ options\ for\ \
> NIntegrate*) ] := NIntegrate[Evaluate[g\^Range[n]], {x, a, b}, opts]\)
>
> The code has been copy/paste in StandardForm.
> Let me convert it to InputForm. After selecting the cell
> and press Shift+Ctrl+I, I get
>
> In[1]:=
> Nint[g_, n_Integer, {x_, a_, b_}, opts___] :=
> NIntegrate[Evaluate[g^Range[n]], {x, a, b}, opts]
>
> That is, the comments during the conversion have been lost.
>
> Any ideas to "fix" this situation?
>
> Dimitris



  • Prev by Date: Re: comments
  • Next by Date: Re: apparently I don't know how to use Map (or Apply or
  • Previous by thread: Re: simple question
  • Next by thread: MakeExpression problem