Squareroot

103 views
Skip to first unread message

azzad

unread,
May 4, 2012, 1:10:41 AM5/4/12
to Sedona Framework
Is there an expression for squareroot in Sedona code?

I have access to a non standrad kit that contains a squareroot
function but I would like to know.

Thanks
Darren

Craig

unread,
May 4, 2012, 8:18:22 AM5/4/12
to sedo...@googlegroups.com
Hi Darren-

There is no square root function in the open source math kit.

Craig

Murat Egrikavuk

unread,
May 4, 2012, 8:21:50 AM5/4/12
to sedo...@googlegroups.com
Note that the non-standard kit might be dependent on native code, and so might not run on every platform.
--
You received this message because you are subscribed to the Google Groups "Sedona Framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sedonadev/-/nPi2ZXAu1FsJ.
To post to this group, send email to sedo...@googlegroups.com.
To unsubscribe from this group, send email to sedonadev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sedonadev?hl=en.



azzad

unread,
May 4, 2012, 6:18:23 PM5/4/12
to Sedona Framework
Thanks for the replies.

Once a kit has been compiled is there ant way of De-compiling it to
see how something like square root was achieved?

Dazza

On May 4, 9:21 pm, "Murat Egrikavuk" <murat.egrika...@ontrol.com.tr>
wrote:
> Note that the non-standard kit might be dependent on native code, and so might not run on every platform.
> On Fri, 04 May 2012 15:18:22 +0300, Craig <craig....@gmail.com> wrote:Hi Darren-
>
> There is no square root function in the open source math kit.
>
>
>
> Craig
> On Friday, May 4, 2012 1:10:41 AM UTC-4, azzad wrote:Is there an expression for squareroot in Sedona code?
> I have access to a non standrad kit that contains a squareroot
> function but I would like to know.
> Thanks
> Darren
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Sedona Framework" group.
> To view this discussion on the web visithttps://groups.google.com/d/msg/sedonadev/-/nPi2ZXAu1FsJ.

Patrick Cunningham

unread,
May 5, 2012, 10:04:03 AM5/5/12
to sedo...@googlegroups.com
To do square root function with native code, look at
http://niagara-central.com/ord?portal:/blog/BlogEntry/230

To do it with only Sedona code, look to wikipedia for approximation algorithms.

azzad

unread,
May 5, 2012, 6:36:28 PM5/5/12
to Sedona Framework
Thanks Patrick, I have been reading your blogs and intead on following
the Native method 1 today.

Dazza

On May 5, 11:04 pm, Patrick Cunningham <patrick.sed...@gmail.com>
wrote:
> To do square root function with native code, look athttp://niagara-central.com/ord?portal:/blog/BlogEntry/230

azzad

unread,
May 5, 2012, 11:43:05 PM5/5/12
to Sedona Framework
Do you have to create a seperate kit for the native method or can it
be contained and called within the same kit?

Dazza

Matthew

unread,
May 7, 2012, 9:11:01 AM5/7/12
to sedo...@googlegroups.com
Hi Dazza -

The native method should be implemented/packaged in the same kit as your "Sqrt" Component.  Check out the docs on writing native methods:

http://sedonadev.org/doc/nativeMethods.html

Also, look at some of the open source code, like the Sys kit, to see how native methods are used in the open source.  For example, there are a lot of native methods in the sys::Component object.  There are tons of native methods in the inet kit.

Regards,
matthew
Reply all
Reply to author
Forward
0 new messages