1、Mathematica Wolfram Windows Mathematica4.0 Windows “ ” “ ” Mathematica4.0 Notebook Untitled-1 1+1 Shif+Enter In1 Out1 In1 Shift+Enter In2 Out2. Mathematica Notebook C Mathematica built-in function , Absx Sinx Cosx e Logx a Loga,x Plotfx,x,xmin,xmax Solveeqn,x Dfx,x : Mathematica FindMinimumfx,x,x0 M
2、athematica “ ” “ ” -10 10 plotSinx,x,-10,10 “ plot Plot” “Plot” PlotSinx,x,-10,10 File-Exit “.nb” Notebook File-Open Mathematica . 1.1.2 Mathematica 1 Mathematic x/(2+3x)+y*(x-w) x C tr l+/ 2 n x C t r l + 2 n C tr l + 2 x x Ctr l +_ 2 Ctrl+SPACE ,x,+,1, ,Ctrl+, -, +,a,Ctrl+_,1,-,Ctrl+/,Ctrl+2,2,x,+
3、,y,-,- FILE Plaettes-Basic Input 2. MathemMatica FILE Complete Characters , 1.2.Mathematica Mathematica 1. Notebook ? Plot Plot Plot Plot “?” ? Plot* Plot 2.Help F1 Help Browser Bui lt- i n F un ct ion Add-ons Standard Packages MathLink Library The Mathematica Book Mathematica Getting Started/Demos
4、Other Information Master I nde x Mathematica Mahematica Mathematica “The Mathematica Book” “Contents” Goto Plot Plot Plot Mathematica Built-in Functions Built-in Functions -Graphics and Sound-2D Plots-Plot Plot Goto Plot Plot 1-5 Plot Mathematica Built-in Functions Built-in Functions -Graphics and S
5、ound-2D Plots-Plot Plot 2.1 1 Mathematic ,Mathemateic 2 100 31 ln1:=2100 Out1=1267650600228228229401496703205376 Mathematica Ln2:=12345/5555 Out2=2469/1111 Mathematica ln3:=0.239998 Out3=0.23998 ln4:=0.12*1011 Out4=0.12*1011 Ln5:=2+1/4+0.5 Out5=2.75 Mathematica i Ln6:=3+0.7i Out6:=3+0.7i 2. Mathemat
6、ica Outn lnn Mathematica Nx x Nx,n x n Rationalizex x Rationalizex,dx x dx ln1=N5.3,20 Out1=1.66666666666666666667 ln2:=N%,10 Out2=1.66666667 10 Ln3=Rationalize% Out3=5/3 3. Mathematica Pi 3.14159 E e=2.71828. Degree /180 i Infinity infinity GondenRatio 0.61803 n1:=Pi2 Out1= ln2:=Pi2/N Out2=9.8696l
7、4. NumberFormexpr,n n expr ScientificFormatexpr expr EngineergFormexpr expr ln1:=NPi30,30 ln2:=NumberForm%,10 Out2/NumberForm=8.212893304 3 Ln3=EngineeringForm% Out6/EngineeringForm= 1 Mathematica a12,ast,aST 12a z*a Mathematica Mathematica 2 Mathmatica Ln1:=x=3 Out1=3 Ln2:=x2+2x Out2=15 Ln3:=x=%+1
8、Out3=16 Ln4:=u,v,w=1,2,3 Out4=1,2,3Ln5:=2u+3v+w Out5=11 . Clearx ln6:=u=. ln7:=2u+v Out7=2+2u 3. expr/. Ln1:=f=x/2+1 Out1= Ln2:=f/.x-1 Out2= Ln3:=f/.-2 Out3=3 expr/.x-xval,y-val Ln4:=(x+y)(x-y)2/.x-3,y-1-a Out4= 2.3 1 Mathmatic Floorx x Ceilingx x Signx Roundx x Absx x Maxx1,x2,x3 x1 ,x2,x3. Minx1,x
9、2,x3 x1,x2,x3. Random 01 RandomReal,xmax 0xmax RandomReal,xmin,xmax xminxmax Expx Logx lnx Logb,x b Sinx,Cosx,Tanx,Cscx,Secx,Cotx Sinhx,Coshx,Tanhxx,Cschx,Sechx,Cothx ArcSechx,ArcCothx Modm,n m n n Quotientm,n m/n GCDn1,n2,n3 GCDs n1,n2, s LCMn1,n2 LCMs n1,n2. s N! n N! n Mathematica Mathematica Mat
10、hematica 2 01 1 fx_=expr f, x expr expr x f x( x_) f(x)=x*Sinx+x 2 Clearf Removef 2 fx_,y_,z_,=expr x,y,z., expr f(x,y)=xy+ycosxfx_ 3 . “=” “ =” fx_ =expr 4 . If x fx_:=expr/;condition condition expr f. If If If 1 2 “ 1” “ 2” If If g(x) f(x) If 2.4 Mathematica List a,b,c a,b,c,d 1 1,2,3 . Ln1:=1,2,3
11、 Out1=1,2,3 Ln2:=1+%x+x% Out2=1+2x,1+2x+x 2,1+3x+x2 x Ln3:=D%,x Out3=2,2+2x,3+2x Ln4:=%/.x-1 Out4=2,4,5 Tablef,I,min,max,step step f i min max Tablef,min,max f I min max 1 Tablef,max max f Tablef,I,imin,imax,j,jmin,jmax,. TableFormlist Rangen 1,2, Rangen1,n2,d n1,n1+d,n1+d,.,n2 x i i 2,6: Ln1:=Table
12、x*i,i,2,6 Out1=2x,3x,4x,5x,6x Ln2:=Tablex2,4 Out2=x2,x2,x2,x2 Range Ln3:=Range10 Out3=1,2,3,4,5,6,7,8,9,10 2 8 20 Ln4:=Range8,20,2 Out4=8,10,12,14,16,18,20 Ln5:=Table2i+j,i,1,3,j,3,5 Out5=5,6,7,7,8,9,9,10,11 TableForm Ln6:=%/TableForm Out6/TableForm=5 6 7 7 8 9 9 10 11 2 t ti t i t=1,2,a,b t3 “a” ln1:=t=TableI+2,jI,1,3,j,3,5 Out1=7,9,11,8,10,12,9,11,13 ln2:=t2 Out2=8,10,12 Mathematica 3.1 Mathematica Expandploy ploy Expandploy ploy ExpandAllploy ploy Factorploy poly