مقرر الحوسبة العلمیة عال ٤١٢ scientific computing cs 412
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 PresentationTRANSCRIPT
مقررالعلمیة الحوسبة
٤١٢عال scientific computingCS 412
LECTURE NO .3BY : Ms. BUSHRA F. AL-HARBI
MapleMaple provides an interactive problem-solving environment, completewith procedures for performing symbolic, numeric, and graphical computations
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:
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:"
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;
what if we do this.…
>8/>4
;>2
Assigning to a NameTo assign to a name , use the
assignment operator ,
Can you tell me what’s the error with the followings
Defined the Error
Defined the Error