MathGroup Archive 1996

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

Search the Archive

Function & Format


Can anyone tell me how to construct a function that doesn't PRINT
the real result, but any string instead (like "-Graphics-")
(If it is possible !)

Example:

In[1]:= fun[x_]:= x^2

In[2]:= fun[3]

Out[2]= -FUN-

In[3]:= %+1

Out[3]= 10

I don't know if the function Format is useful for that...

Thanks in advance !

-- 
Francois RENARD
CEA Limeil-Valenton
94195 Villeneuve St Georges cedex
renard at limeil.cea.fr


  • Prev by Date: Mathematica Programming for Combinatorial Problems
  • Next by Date: Calculus Wiz
  • Previous by thread: Re: Mathematica Programming for Combinatorial Problems
  • Next by thread: Re: Function & Format