now im doing a project of hybrid logarithmic number system for addition and multiplication arithmetic unit.
1. i have two input of real number. eg.: input A=1.342, input B=2.567
2. select the operation, which one to do either addition or multiplication.
3. if choose addition, the input must convert to floating-point number system (FLP).
4. if choose multiplication, the input convert to logarithmic number system (LNS).
5. once they converted, the input then must convert back to real number to produce an output. which the output must exactly same as normal calculation.
6. the operation of add or multiply must do before the input convert back to real number.
so my problem now, im not able to do the coding of floating point and logarithmic number system.
hope anyone can help me solve this problem..thanks
1. i have two input of real number. eg.: input A=1.342, input B=2.567
2. select the operation, which one to do either addition or multiplication.
3. if choose addition, the input must convert to floating-point number system (FLP).
4. if choose multiplication, the input convert to logarithmic number system (LNS).
5. once they converted, the input then must convert back to real number to produce an output. which the output must exactly same as normal calculation.
6. the operation of add or multiply must do before the input convert back to real number.
so my problem now, im not able to do the coding of floating point and logarithmic number system.
hope anyone can help me solve this problem..thanks