更改

《超越学科的认知基础》2015张世超学习报告第六周

添加921字节2015年10月27日 (二) 08:24
/* Mathematica 指令表 */
|Coefficient[poly,x²]
|-
|Solve the equation z=x²+1 for x (remember to use == not =)eeeeeeeeeeeeeeeeeee
|z==x²+1
|-
|Solve the system of equations:x+y+z=1 x-y=2
|Solve[x+y+z==1&&x-y==2,{x,y,z}] |-!colspan="8"|complex numbers |-|absolute value|Abs[z]|-|Argument value|Arg[z]|-|Complex conjugate|Conjugate[z]|-|Imaginary |Im[z]|-|real component|Re[z]|-!colspan="8"|Linear algebra|Define a 2*2 matrix A with elements 1,2,3,4 and a 2 element vector v with element v1 and v2.|A={[1,2],[3,4]} v={v1,v2} A//MatrixForm
|-
|Determinant
|-
|Change the font size and disale the mesh
|Plot3D[sin[x]cos[y],{x,0,5},{y,0,5}] BaseStyle→{FontSize→14}|-|Make a density plot|DensityPlot[sin[x]cos[y],{x,0,5}]|-|Make a parametric plot in 3D x=cos(t), y=sin(t) z=t {t,0,4π}]|ParametricPlot3D[{cos[t],sin[t],t]|-!colspan="8"|Calculus|-|Solving the differential equations|Dsolve[ ]|-|Derivatives |D[sin[x],x]|-|Take the indefinite integral|Integrate[sin[x],x]|-!colspan="8"|Sums|-|Add up number i² from 0≤i≤n|Sum[i²,{i,1,n}]|-!colspan="8"|Flow control|-|Step function,if x>0, +1,if x<0 -1,if x=0 ,1|d[x_]:=If[x>0,1,0] d[1],d[-1]|}
匿名用户