tailieunhanh - Engineering Matlab Problem Solving phần 2

Như vậy, mỗi vị trí bit đại diện cho một sức mạnh ngày càng tăng của 2, bắt đầu với 20 trên đúng. Floating-điểm số đại diện cho các số không nguyên, một số đại diện gọi là dấu chấm động phải được xác định. Floating-điểm số được sử dụng trên các máy tính gần đúng một tập hợp con của các số thực. | Fixed-Point Numbers All computer instructions and data are represented and stored in binary base 2 form. In the representation of fixed-point numbers the value of each digit in the number depends on its position relative to the fixed decimal point. For example the integer value 53 in base 10 is represented by the binary or base 2 value 00110101 denoted by 5310 001101012 In base 10 this means 5310 5 X 101 3 X 100 Similarly 001101012 0 X 27 0 X 26 1 X 25 1 X 24 0 X 23 1 X 22 0 X 21 1 X 20 3210 1610 410 110 Thus each bit position represents an increasing power of 2 beginning with 20 on the right. Floating-Point Numbers To represent non-integer numbers a number representation known as floating-point must be defined. Floating-point numbers are used on computers to approximate a subset of the real numbers. While there are many possible floating-point number systems all such systems consist of zero a set of positive numbers and the corresponding set of negative numbers. The set of base 10 floating-point numbers consists of every number that can be written in the form m X 10e where m the mantissa is in the range 0 m 10 and contains p digits p is called the precision . e the exponent is an integer that lies between emin the minimum exponent and emax the maximum exponent . Our definition is for base 10 floating-point numbers since you either are or will become accustomed to base 10. However computers use base 2 numbers of the form m X 2e. In Matlab when you enter a number in base 10 it is converted to base 2. Similarly a base 2 result will converted to base 10 before being displayed. The essential properties of base 10 and base 2 number systems are the same so our discussion of floating-point numbers will focus on base 10 represntations. To represent a real number x with a floating-point number we first round x to the closest real number y that has a p-digit mantissa. There are then two possibilities If y is a member of the set of floating-point numbers we say that x is .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
19    228    0    25-04-2024
34    212    1    25-04-2024
20    249    2    25-04-2024
46    187    0    25-04-2024
20    198    2    25-04-2024
40    97    0    25-04-2024
11    100    0    25-04-2024
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.