انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Matrices: part 1

الكلية كلية هندسة المواد     القسم قسم هندسة السيراميك ومواد البناء     المرحلة 1
أستاذ المادة رلا سامي خضير عباس العيسى       14/03/2017 17:20:58
Matrices:
Is the style solution provided by a lot of programming languages and different forms ... which provide variables (locations memory) which have the unified name called matrices .
Each variable (matrix) constant of numbers of items which have the same name of (matrix) ; but they differ in their locations in the memory ;that store their value within the list of item in the matrix which called (index).

















One-dimensional matrix
The general formula to write a one-dimensional matrix is:
Array name (Index)
Ex: A(10), b(100), G$(6)
Where :
Array name = name of matrix
Index= element sequence in the order of the matrix
We can handle the matrix values by reference to its location


-The index of the matrix must be integer number.
- In the case of the index as real number must be
-In the case of definition the index as a real number then must be rounded to the nearest integer.


The index may be result of arithmetic operation





Declaring arrays
Declaring array done by using the statement (Dimension) ; which used to define matrix and reservation the suitable size in the computer memory .
Ex:
DIM B(20) ? DIM B(0 TO 20)
DIM A$(14) ? M=2:N=10
DIM A$(M-2 TO 2*M+N)
The index can be negative ; must be within the rang (32768_-32768)
DIM B (-5 To 10)


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .