[Swift-user] two questions about Swift
Michael Wilde
wilde at mcs.anl.gov
Tue Feb 16 14:22:25 CST 2010
----- "Justin M Wozniak" <wozniak at mcs.anl.gov> wrote:
> I can quickly deliver sin() and cos() by adding to swiftscript.Misc.
> I
> definitely don't think he should call R for sin(). However:
>
> 1) What if we supported:
>
> x = 0.5;
> library("L", "org.my.lib");
> L:sin(x);
>
> where org.my.lib is in the classpath and extends FunctionsCollection?
> I
> think this might be easily doable.
That sounds pretty useful for general extensibility.
I'd also suggest (in addition) a similar extension interface, but which like the "ext" mapper lets you write Swift functions as shell scripts or arbitrary executables.
Note that you can do sin() and basic math functions in awk or bc, so the app() based extensions would be a good way to prototype things initially.
>
> 2) Is there any way to get to the Karajan library?
I don't know. Mihael or Ben?
- Mike
>
> On Tue, 16 Feb 2010, Hodgess, Erin wrote:
>
> > You can use R, the stat program. That works with Swift.
> >
> > There is a tutorial that Mike can point you to.
> >
> > Thanks,
> > Erin
> >
> >
> > Erin M. Hodgess, PhD
> > Associate Professor
> > Department of Computer and Mathematical Sciences
> > University of Houston - Downtown
> > mailto: hodgesse at uhd.edu
> >
> >
> >
> > -----Original Message-----
> > From: swift-user-bounces at ci.uchicago.edu on behalf of
> wilde at mcs.anl.gov
> > Sent: Tue 2/16/2010 11:12 AM
> > To: Yi Zhu
> > Cc: swift-user at ci.uchicago.edu
> > Subject: Re: [Swift-user] two questions about Swift
> >
> > Yi, sorry - I missed these questions from you; just saw them now.
> >
> > ----- "Yi Zhu" <yizhu at cs.uchicago.edu> wrote:
> >
> >> Hi all
> >>
> >> 2. In Matlab, there are some library which support some Math
> functions
> >> like "sin" "cos" "reshape" etc. Is there any similar library
> available
> >> for swift. If not, is there anyway to import external library?
> (e.g.
> >> from Java)
>
> --
> Justin M Wozniak
More information about the Swift-user
mailing list