MathGroup Archive 2006

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

Search the Archive

NIntegrate with a J/Link Function

I cannot get NIntegrate to work on a Java function I have attached to
Mathematica with J/Link.  The Java function works fine on its own and
inside Plot but NIntegrate appears to be passing it a symbolic value.

Code snippets:

:=Plot[tPort@condtPD[1, dr] , {dr, -6, 6}]  (* works fine, plots
function correctly *)

:= NIntegrate[condtPD[dr] ,{dr,-6,6}]

Fails with message:
"Method named condtPD defined cr.research.conditional.CDnDPortfolio1
was called with an incorrect number or type of arguments. The
arguments, shown here in a list, were {1, dr}."

Can anyone point me in the right direction?

Many thanks

  • Prev by Date: Re: how to iterate
  • Next by Date: Re: how to iterate
  • Previous by thread: Re: Object-Oriented Paradigm in Mathematica?
  • Next by thread: Re: NIntegrate with a J/Link Function