MathGroup Archive 1990

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

Search the Archive

Use of Literal


I want to define a function of Mathematica built-in function.  I can do this
but to evaluate it seems a little awkward.  I must be doing something wrong!?

In[1]:= f[Literal[Integrate[g_,x_]]]:=Integrate[g,x] + Sin[x]

In[2]:= f[Integrate[q[t],t]]

Out[2]= Integrate[q[t], t] + Sin[t]

In[3]:= %/.q[t]->t^3

         4
        t
Out[3]= -- + Sin[t]
        4

In[4]:= "However................"

In[5]:= r[t]:=t^3

In[6]:= f[Integrate[r[t],t]]

           4
          t
Out[6]= f[--]
          4

In[7]:= "or....";

In[8]:= r[t_]:=t^3

In[9]:= f[Integrate[r[t],t]]

           4
          t
Out[9]= f[--]



  • Prev by Date: DSolve
  • Next by Date: DSolve
  • Previous by thread: Re: DSolve
  • Next by thread: Re: Use of Literal