Question: MIPS programming in the MARS simulator. I'm trying to create a two functions in MIPS float power(float x, int n) and int factorial(int n) to
MIPS programming in the MARS simulator.
I'm trying to create a two functions in MIPS float power(float x, int n) and int factorial(int n) to help in finding the taylor series. power(x,n) will return
and factorial(n) will return n! We can assume
and
, so that overflow will never be an issue either with the single precision floating point format or the 32-bit integer format. For Computing factorial use a simple iterative program not a recursive version.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
