MathGroup Archive 2003

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

Search the Archive

Re: Package creation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39227] Re: Package creation
  • From: Antti Penttilä <Antti.I.Penttila at helsinki.fi>
  • Date: Tue, 4 Feb 2003 02:23:26 -0500 (EST)
  • Organization: University of Helsinki
  • References: <b1l1l6$ia0$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Jan Schmedes wrote:
> Hello,
> 
> i have a problem by creating a package. I need routines from another
> package

I think that your second form of the package loading is correct:

 > BeginPackage["Seismo`Hazard`PSHA`",{"Statistics`ContinuousDistributions`"}]

but you should use the full context with symbols inside your own package which 
are from Statistics`ContinuousDistributions`, e.g. write

Statistics`ContinuousDistributions`NormalDistribution

instead of

NormalDistribution

That's why you get the error message like


> Random::"randt": Type specification
> Seismo`Hazard`PSHA`Private`NormalDistribution[<<19>>
> , 0.16] in Random[<< 1 >>]
> should be Real, Integer, or Complex.


-- 
    Antti Penttilä           Antti.I.Penttila at invalid.helsinki.fi



  • Prev by Date: Re: diffrence between ver 3.01 and 4.1 regarding N[]?
  • Next by Date: Simple Problem ??
  • Previous by thread: Package creation
  • Next by thread: Complex root finding