MathGroup Archive 2006

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

Search the Archive

Packages--Problem in evaluating functions from my own package!!!

  • To: mathgroup at
  • Subject: [mg67521] Packages--Problem in evaluating functions from my own package!!!
  • From: abdou.oumaima at
  • Date: Thu, 29 Jun 2006 00:10:01 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Hi to All,

I create a package for two importantes functions of my thesis. But when I load my package, sometimes I can evaluate my functions but all the time not. 

Hereby a piece of my code:

psiplusCN::usage = "psiplusCN[cn] evaluate Psi+";
psimoinsCN::usage = " psimoinsCN[cn,c]evaluate Psi-";


Off[General::spell, General::spell1, General::precw];
WorkingPrecision -> 40;

(*** ** *** Module Psi + *******)
psiplusCN[cn_] := Module[{i}, psiplus = Table[If[i == 1, 1, 0], {i, 1, cn}];

(*** ** *** Module ksi *******)
ksi[x_] := Module[{ξ, ksinum},
    ksinum = FindRoot[1.0 - (x* ArcTanh[ξ])/ξ == 0.0, { ξ, 0.01}, \
WorkingPrecision -> 20];
     ξ = ξ /. ksinum; 
    Return[ξ] ;];

(*** ** *** Module Psi - *******)
psimoinsCN[cn_, c_] := Module[{Zplus, 
    Zmoins, DomP, GlnP, GlnP2, Vp, Wn, delta, integpp, ...... M, A, Y, ξ},


Return[LinearSolve[M, Y]]];

When I load my package:
psimoinsCN[1, 0.8]

I get this error message:
Get::noopen, Cannot open "METHODECN.m  

and this ouptput:
psimoinsCN[1, 0.8]

Please help me to load my own package and evaluate my public function psimoinsCN and psiplusCN and to get numerical values.

Thanks for all who take time to read this topic and to reply for help.


Link to the forum page for this post:
Posted through [[postId=11465]]

  • Prev by Date: Re: Limit of an expression?
  • Next by Date: Re: Piping commands to gnuplot through the shell
  • Previous by thread: Re: Bugs--Bugs Report in List Operation
  • Next by thread: Re: Packages--Problem in evaluating functions from my own package!!!