How to calculate Square root?

For general discussions related to SynthMaker.

Moderators: electrogear, exonerate

How to calculate Square root?

Postby rocko on Sat Mar 31, 2012 3:42 pm

Hi,

I need to calculate sqaure root. How can I do it with "green coding"?

Is there a way or just by "code" ?

Rocko
rocko
essemist
 
Posts: 59
Joined: Mon Dec 07, 2009 5:25 pm

Re: How to calculate Square root?

Postby MegaHurtz on Sat Mar 31, 2012 3:58 pm

Only assembler has a sqrtps function. If it doesnt exist outside i can only predict a lot of trouble doing this.
Numbers from 0-1 is quite doable but if you get outside that range.. It`s trouble.
Visit my website at: http://www.schlukhash.nl
User avatar
MegaHurtz
smaniac
 
Posts: 1511
Joined: Mon Aug 11, 2008 5:29 pm
Location: Eindhoven/Netherlands

Re: How to calculate Square root?

Postby rocko on Sat Mar 31, 2012 4:17 pm

Hi,

So, what is the most recommended way to do sqrt?

I need it for both 0-1 & higher than 1 as well.

Assembly? Code?

How do I write it in assembly (no knowldge in assembly unfortuantely).
with "code" the output is streaming, not "green'.

Thanks,
Rocko
rocko
essemist
 
Posts: 59
Joined: Mon Dec 07, 2009 5:25 pm

Re: How to calculate Square root?

Postby oddson on Sat Mar 31, 2012 4:57 pm

rocko wrote:I need to calculate sqaure root. How can I do it with "green coding"?
capture.png

Am I missing the question?
oddson
wiki guru
 
Posts: 3883
Joined: Sun Jul 03, 2005 6:44 pm

Re: How to calculate Square root?

Postby MegaHurtz on Sat Mar 31, 2012 7:21 pm

Not at all :) That is to say i would be in trouble going from square.
Visit my website at: http://www.schlukhash.nl
User avatar
MegaHurtz
smaniac
 
Posts: 1511
Joined: Mon Aug 11, 2008 5:29 pm
Location: Eindhoven/Netherlands


Return to General

Who is online

Users browsing this forum: Google [Bot] and 1 guest