| | |
square root?
![]() |
> 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
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
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
--
If your code lacks code tags, you will be IGNORED
--
If your code lacks code tags, you will be IGNORED
•
•
Join Date: Jan 2009
Posts: 62
Reputation:
Solved Threads: 0
I tried looking for an algorithm to do so. however, the only ones I came upon requires me to split the number being rooted by 2's. Not possible.
> 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?
Are there more restrictions on the answer that you're not telling us?
What does "split the number by 2" mean anyway - divide?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
--
If your code lacks code tags, you will be IGNORED
--
If your code lacks code tags, you will be IGNORED
•
•
Join Date: Jan 2009
Posts: 62
Reputation:
Solved Threads: 0
the instruction just says, find the hypotenuse of 2 user input leg of a right triangle. the 2 input are floating points.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
--
If your code lacks code tags, you will be IGNORED
--
If your code lacks code tags, you will be IGNORED
What were the rules your teacher gave you?
Which flavor of MIPS are you using?
There are scalar and vector square root functions and estimated reciprocal square root vector functions, dependent upon which MIPS family chipset you're using!
There are also algorithmic guesstimation formulas for integer only processors.
Which flavor of MIPS are you using?
There are scalar and vector square root functions and estimated reciprocal square root vector functions, dependent upon which MIPS family chipset you're using!
There are also algorithmic guesstimation formulas for integer only processors.
![]() |
Similar Threads
- Square root program without sqrt or pwr (C++)
- C++ Square Root Problem (C++)
- simple problem with square root (C)
- help with square root finder (C++)
- Trying To Find The Square Root Of Each Number Of A Array (C++)
- Displaying Square root symbol in output (C)
Other Threads in the Assembly Forum
- Previous Thread: Calculate Hexamal Numbers
- Next Thread: simple problem help
Views: 1222 | Replies: 11
| Thread Tools | Search this Thread |
Tag cloud for Assembly
80386 :( adress array asm assembler assembly boot bootloader buffer call compression cursor directory display div division docs dos endtask error exceptions file int10h integer intel interrupt interrupts language loop main mmx multiple newbie osdevelopment print program range read remainder string text theory tsr x86






