Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old June 26th, 2007, 08:46 PM
keantoken keantoken is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: devshed, datarealms, ngemu, kubuntuforums, here, there, and wherever my heart throws me.
Posts: 12 keantoken User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 58 m
Reputation Power: 0
Square root assembly algorithms?

Hello.

I'm working on a new game, which I'm gonna call FlopNinja until my brother finds a better name. Right now I'm working on the include file that holds all the mathematical calculations needed, such as sqrt, sine, cosine, etc.

I'm thinking the trick would be to make a good 'guessing algorithm' to get real near the actual value, and then keep bumping values until things snap in place. I'm writing my own algorithm, which I'll post soon, but until then I'll gladly be listening for comments. Keep in mind that my internet connection is down 90% of the time except for during thunderstorms. As you guessed, it's thundering.

About guessing algorithms, I've got one that gets it accurate to about two hundredths, and I'm building my sqrt algorithm on that. The accuracy is so important because

1: I'm going to be using this algorithm in other things I program.

2: I'm doing this for a physics engine.

please remember that these algorithms are in 386 assembly. If you have some mathematical equations that are simple and will calculate the square root, then I or someone else can probably translate them into assembly.

So, that said, I'll yield to the repliers.

- keantoken

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Square root assembly algorithms?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway