function defining including solve command
- To: mathgroup at smc.vnet.net
- Subject: [mg32956] function defining including solve command
- From: Takayuki MAKINO <tmakino at spectro.ujf-grenoble.fr>
- Date: Thu, 21 Feb 2002 02:07:13 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
bonjour
I am very sad because the code which I am trying now cannot
work. I wrote a function, the definition of which includes
"solve" command. If simplified, this is as follows.
Fn[x_,y_] := Module[{formulae},formulae=........, solution=Solve
[formulae==0,K];.........;solution[[1]]]
If I do not use the loop structure (for example, Table etc),
it works. But, if this function is located inside the loop,
for example,
y = 7;
Do[Table[N[Fn[x,y],{x,1,3,0.1}]],{i,4}]; (* Bang!!! *)
Always execution of such kind of loop produces an error message,
like "imcomplete! It needs more input". How should I do in such
case? MapThread command? If one writes the code with the
same content without using Function (:=) only with Assignment
(=), one can successfully rotate the loop.
regards best.
- Follow-Ups:
- Re: function defining including solve command
- From: Tomas Garza <tgarza01@prodigy.net.mx>
- Re: function defining including solve command