MathGroup Archive 2010

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

Search the Archive

A general problem with numerical functions defined in a messy way

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108682] A general problem with numerical functions defined in a messy way
  • From: ValeX <rjovale at gmail.com>
  • Date: Sat, 27 Mar 2010 05:10:31 -0500 (EST)

let's say that i have a numerical function f[x] which is defined in a
quite messy way.
For example, it could be defined as a Module that contains If, Whiles,
interpolation functions, Import, ..
This function works well without any error if I simply evaluate it,
for example if i write f[5] and hit the enter key.

The (my) problem is that often when i plug such a function in other
routines, like FindMinimum, i get all sorts of errors and it doesn't
work.
Is there a way to tell Mathematica to just compute f[x] and then use
that result for other things?


  • Prev by Date: CalcLink tutorial screencast: advanced applications
  • Next by Date: Adding data to excel sheet (v7.0)
  • Previous by thread: CalcLink tutorial screencast: advanced applications
  • Next by thread: Re: A general problem with numerical functions defined in a messy way