how do you do a square root in MIPS? I have to write a program to find the hypotenuse of a right triangle and I'm stuck on this part. Please help.
homeryansta
36
Junior Poster in Training
Recommended Answers
Jump to Post> how do you do a square root in MIPS?
Same as anywhere else, assuming you lack a library to do it
- research algorithms (you've got google, do some searches)
- write code
- test code
Jump to Post> the only ones I came upon requires me to split the number being rooted by 2's. Not possible.
Are there more restrictions on the answer that you're not telling us?What does "split the number by 2" mean anyway - divide?
All 11 Replies
Salem
5,138
Posting Sage
homeryansta
36
Junior Poster in Training
Salem
5,138
Posting Sage
homeryansta
36
Junior Poster in Training
homeryansta
36
Junior Poster in Training
Salem
5,138
Posting Sage
homeryansta
36
Junior Poster in Training
Salem
5,138
Posting Sage
wildgoose
420
Practically a Posting Shark
homeryansta
36
Junior Poster in Training
wildgoose
420
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.