Answer the question
In order to leave comments, you need to log in
How to evaluate fractional expressions in Assembler?
For example, given the following example. Can you show how to do this with an example?
Answer the question
In order to leave comments, you need to log in
In your case, these are cycles, cycles and more cycles with multiplication, division and addition.
And if for an adult these are extended FPU commands and SIMD operations.
I didn’t write on Asma for 15 years. But the basis of this code should be some numerical method that counts a certain series in a cycle. In a generalized development language, it would look like this
double func(double x) {
double sum = 0.0;
for(int i=1 ; i <= 11 ; i+=2) {
sum += pow(x,i) / i;
}
return sum;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question