مقرر الحوسبة العلمیة عال ٤١٢ scientific computing cs 412

12
رر مق ة ی م ل ع ل ا ة ی س و ح ل ا عال٤١٢ scientific computing CS 412 LECTURE NO .3 BY : Ms. BUSHRA F. AL-HARBI

Upload: ardith

Post on 23-Feb-2016

45 views

Category:

Documents


0 download

DESCRIPTION

مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412. LECTURE NO .3 BY : Ms. BUSHRA F. AL-HARBI. Maple. Maple provides an interactive problem-solving environment, complete with procedures for performing symbolic, numeric, and graphical computations. Maple Statements. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

مقررالعلمیة الحوسبة

٤١٢عال scientific computingCS 412

LECTURE NO .3BY : Ms. BUSHRA F. AL-HARBI

Page 2: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

MapleMaple provides an interactive problem-solving environment, completewith procedures for performing symbolic, numeric, and graphical computations

Page 3: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

Maple StatementsMost Maple statements must have a trailing

semicolon (;) or colon.):( If you enter a statement with a trailing semicolon, for most statements,the result is displayed. However, if you enter a statement with a trailingcolon, the result is computed but not displayed.

>2+3; 5

>2+3:

Page 4: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

Displaying a Text StringThe following statement returns a string. The text that forms the stringis enclosed in double quotes, and the result (the text string) is displayedbecause the statement has a trailing semicolon. In the second example,no result is displayed because the statement has a trailing colon.

" >Hello World;"“ Hello World”" >Hello World:"

Page 5: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

Performing an Arithmetic Operation

The arithmetic operators in Maple are + (addition), - (subtraction)* ,

(multiplication( / ,)division ,)and ^ (exponentiation). A statement can bean arithmetic operation that contains any combination of these operators.The standard rules of precedence apply.

>103993/33102;

Page 6: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

what if we do this.…

>8/>4

;>2

Page 7: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

Assigning to a NameTo assign to a name , use the

assignment operator ,

Page 8: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412
Page 9: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412
Page 10: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

Can you tell me what’s the error with the followings

Page 11: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

Defined the Error

Page 12: مقرر الحوسبة العلمیة عال ٤١٢ scientific computing CS 412

Defined the Error