Current location - Training Enrollment Network - Mathematics courses - How to use the basic mathematical input in mathematica
How to use the basic mathematical input in mathematica
MathMatica(MMA) software has four functions, namely, numerical calculation, symbolic operation, drawing graphics and programming. When using, first open MMA software, then open File/New/Notebook in the menu bar, give the unnamed notebook file a file name, such as "Numerical Calculation", and then enter the content to be calculated in the notebook interface. Using MMA for numerical calculation is just like using a calculator, but MMA is more powerful than any calculator. For example, enter a numerical calculation

In[ 15]: 64∧( 1/3)

Out[ 16] =4

Another example is the factorization factor x ∧ 2+3x+2.

In[2 1]: factor [x∧2+3x+2]

Out[22] (x+ 1)(x+2)

You can use the computer keyboard to input mathematical symbols. If there is no symbolic keyboard, you need to use the "Mathematics Panel" in MMA software. Especially imaginary units, you must use the empty I in the Math Panel.

Now let's look at solving linear equations.

Methods ① elementary row transformation was performed on the augmented matrix, and the function command was RowReduce.

Methods ② Find the inverse matrix of the coefficient matrix. It is known that the matrix form of linear equations is AX = B. If the inverse of coefficient matrix A is found, there is X = A ∧ (- 1) B, and the function command to find the inverse matrix is inverse.

Method ③ Use the solution command. This function is a general command to solve algebraic equations, and can be used to solve univariate higher order equations and multivariate linear equations. The equal sign of an equation must use a double equal sign "= =". Input format Solve[{eqns 1, eqns2,}, {vars}].

Methods (4) Using the command of finding special solution to find linear equations. The function command to find the special solution is LinearSolve.

As long as you often use MMA software and concentrate on your research, I believe you will be more skilled in a year or so.