MathGroup Archive 2003

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

Search the Archive

Re: Package creation


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