MathGroup Archive 2006

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

Search the Archive

Re: Executing function in mathematica function problem


does your procedure from the other system accept symbolic arguments?

On 9/27/06, krzysztof.lisowski at wp.pl <krzysztof.lisowski at wp.pl> wrote:
> Hello,
> I've created simple procedure in another system, which takes one parameter
> (x(1)) as argument function and returns one value.  After compilation,
> with 'mex -l fnc.m' command I've created a shared library.
> In Mathematica's script I load this function with:
>
> link = Install["f:\\f1.exe"];
> F1[0.5] # I have a correct result
>
> Then I define such argument, which are part of a function
> fCE=F1[x1]; f
> C[{x1_}]=fCE;
>
> and execute the Mathematica function FNC[...,fC,...].
>
> The FNC is defined as follow FNC[...,fC_,...]:=Block[{...,
> fCi,...,cog,}
> ....
> bva:=If[cog && Abs[#]>fm, Sign[#]fm, #]&;
> fCi:=(++if; bva[N[fC[#]]]ix)&;
> ...
> ]
> when I try execute such a script I have a error;
> Part::partw: Part 1 of {} does not exist...
>
> Any sugestions...
>
> KL
>
>


-- 
http://chris.chiasson.name/


  • Prev by Date: Re: Re: Copying cell contents?
  • Next by Date: [mglost] [ADMIN] Please resend recent posts
  • Previous by thread: Re: Executing function in mathematica function problem
  • Next by thread: simple timing question