Variance and Standard Deviation

Find the variance and standard deviation from a sample dataset:

4.2    6.7     7.3     7.5     8.0     8.5     8.7     8.8     9.2     9.3

using x86 assembly.


Formula for variance and standard deviation:
Figure 1: Variance formula
Figure 2: Standard Deviation formula

The output of the program, using GNU GDB debugger:
Figure 3: Output of the program



Source code: https://github.com/nikAizuddin/research_x86asm/blob/master/sample_var_std_deviation/src/sample_var_std_deviation.asm

Project file: https://github.com/nikAizuddin/research_x86asm/tree/master/sample_var_std_deviation

2 comments:

  1. Good night!

    Thanks for the blog! It is difficult to find material on assembly.

    Keep up the blog, very nice!

    Stay with God.

    ReplyDelete
    Replies
    1. Hi, thanks!

      The semester break has just begun. I have more asm tutorials to post, and also will add more explanation on my existing posts

      Delete

Author

My photo
Kota Bharu, Kelantan, Malaysia
Studied Computer Graphics