|
[Date Index]
[Thread Index]
[Author Index]
Executing function in mathematica function problem
- To: mathgroup at smc.vnet.net
- Subject: [mg69931] Executing function in mathematica function problem
- From: "krzysztof.lisowski at wp.pl" <krzysztof.lisowski at wp.pl>
- Date: Wed, 27 Sep 2006 06:06:18 -0400 (EDT)
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
Prev by Date:
Re: How to remove just the outermost braces of a list?
Next by Date:
Re: How to remove just the outermost braces of a list?
Previous by thread:
Re: Indefinite integration problem on ArcTanh(f(Cos))
Next by thread:
Re: Executing function in mathematica function problem
|