MathGroup Archive 2003

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

Search the Archive

Re: Package creation

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

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


instead of


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

  • 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