On 10/23/2015 02:57 PM, Thomas Baruchel wrote:
> it: https://github.com/baruchel/numerical-routines/tree/master/spad and 
> tell me how I can create a package containing this single function by 
> adding the relevant header lines?

That's easy.

======= pslq.spad =======
)abbrev package PSLQ PslqPackage

Z ==> Integer
F ==> Float
Arr ==> OneDimensionalArray Z

PslqPackage(): with
  pslq: (Arr F, F) -> Arr Z  -- exported function
 == add -- implementation part follows
  pslq: Arr F, prec F): Arr Z ==
     ...
     -- your code goes here
     ...
======= end pslq.spad ===

Inside FriCAS say

)compile pslq.spad

or

)lib PSLQ

depending on whether or not you have already compiled your code.

That's it.

Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to