MathGroup Archive 1998

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

Search the Archive

How to change the argument of a function?



I want to define a function that in the course of doing something, also
changes the value of its argument, for example: f[x_]:=Module[{},
x=2*x;
x
]
When I run the function, I get the error: "Set::setraw : Cannot assign
to raw object  ...." Can this be done in some way?


--------------------
Vilis O. Nams
Dept of Biology, NSAC
Box 550, Truro, NS,  Canada
vnams @ nsac.ns.ca
-------------------




  • Prev by Date: choose with replacement
  • Next by Date: Q: Contour integral
  • Prev by thread: Re: choose with replacement
  • Next by thread: Re: How to change the argument of a function?