Current location - Training Enrollment Network - Mathematics courses - How to express ln function in MatLab?
How to express ln function in MatLab?
1. First of all, we should know that in matlab, Ln(x) is expressed as log(x) and lg(x) as log 10(x).

2. Enter "help log" in the matlab command line window, and you can see the introduction of the log function, the logarithmic function with E as the base.

3. Enter exp( 1) in the command line window, indicating that E is about 2.7 183, and then enter log(2.7 183).

4. After pressing Enter, you can see that the value of log(2.7 183) is 1.

5. You can also look at the introduction of the log 10 function. Enter log 10( 10), and the return value is 1.