Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Executing function in mathematica function problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69962] Re: [mg69931] Executing function in mathematica function problem
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Thu, 28 Sep 2006 06:16:03 -0400 (EDT)
  • References: <200609271006.GAA00287@smc.vnet.net>

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